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

ToolDescription
read_text_fileRead a text file
read_fileRead a file as raw bytes
read_multiple_filesRead multiple files at once
read_media_fileRead a media file as base64
write_fileWrite content to a file
edit_fileEdit a file with search and replace
create_directoryCreate a new directory
list_directoryList files in a directory
list_directory_with_sizesList files with sizes
directory_treeGet a recursive directory tree
move_fileMove or rename a file
search_filesSearch for files by pattern
get_file_infoGet file metadata
list_allowed_directoriesList directories the server can access