UNPKG

@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

10 lines (9 loc) 441 B
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; /** * Registers the 'write_file' tool with the MCP server. * * @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 registerWriteFileTool: (server: McpServer) => Promise<void>;