@cyanheads/filesystem-mcp-server
Version:
A Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search and replace, and directory tree traversal
12 lines (11 loc) • 581 B
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
/**
* Registers the 'update_file' tool with the MCP server.
* This tool accepts a JSON object with 'path', 'blocks' (array of {search, replace}),
* and optional 'useRegex' and 'replaceAll' flags.
*
* @param {McpServer} server - The McpServer instance to register the tool with.
* @returns {Promise<void>} A promise that resolves when the tool is registered.
* @throws {McpError} Throws an error if registration fails.
*/
export declare const registerUpdateFileTool: (server: McpServer) => Promise<void>;