-
securityF
license-
qualityA Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.
Last updated -
3
TypeScript
模型上下文协议 (MCP) 服务器实现通过标准化接口提供文件系统操作。
MCP 文件服务器使 AI 模型能够通过标准化 API 在本地文件系统上执行文件操作。它使用模型上下文协议SDK 构建,并提供用于读取、创建和列出文件的工具。
启动 MCP 文件服务器:
服务器使用 MCP 协议通过 stdin/stdout 进行通信。
使用提供的内容在指定路径创建一个新文件。
参数:
filePath
:应创建文件的路径content
:写入文件的内容返回:
读取指定路径下的文件内容。
参数:
filePath
:要读取的文件的路径返回:
列出指定路径下的文件和目录。
参数:
path
:列出内容的目录路径返回:
SENTRY_DSN
:用于错误跟踪的 Sentry 数据源名称(可选)@modelcontextprotocol/sdk
:MCP SDK 包zod
:模式验证@sentry/node
:错误跟踪和性能监控通过 MCP 协议调用这些工具的示例:
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
使 AI 模型能够通过标准化的模型上下文协议接口在本地文件系统上执行文件系统操作(读取、创建和列出文件)。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/codyde/mcp-file-tool'
If you have feedback or need assistance with the MCP directory API, please join our Discord server