Filesystem
MCP
Utility
14 tools
Read, write, search, and manage files and directories
Installation
Install the typed integration package for your language:
Terminal
$ npm install @leash/integration-filesystem
Authentication
This integration does not require authentication.
Usage
import { LeashIntegrations } from '@leash/sdk'import { createFilesystemClient } from '@leash/integration-filesystem'const leash = new LeashIntegrations()const client = createFilesystemClient(leash)const result = await client.readTextFile()
Available Tools
| Tool | Description |
|---|---|
read_text_file | Read a text file |
read_file | Read a file as raw bytes |
read_multiple_files | Read multiple files at once |
read_media_file | Read a media file as base64 |
write_file | Write content to a file |
edit_file | Edit a file with search and replace |
create_directory | Create a new directory |
list_directory | List files in a directory |
list_directory_with_sizes | List files with sizes |
directory_tree | Get a recursive directory tree |
move_file | Move or rename a file |
search_files | Search for files by pattern |
get_file_info | Get file metadata |
list_allowed_directories | List directories the server can access |