@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
11 lines (10 loc) • 503 B
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
/**
* Registers the 'list_files' tool with the MCP server.
* This tool lists files and directories at a specified path.
*
* @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 registerListFilesTool: (server: McpServer) => Promise<void>;