-
securityA
license-
qualityA Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.
Last updated -
1
TypeScript
MIT License
模型上下文协议 (MCP) 服务器,通过流式传输、修补和更改跟踪支持提供增强的文件操作功能。
要通过Smithery自动安装 Claude Desktop 的文件操作服务器:
对于自动重新加载的开发:
copy_file
:将文件复制到新位置read_file
:从文件读取内容write_file
:将内容写入文件move_file
:移动/重命名文件delete_file
:删除文件append_file
:将内容附加到文件make_directory
:创建目录remove_directory
:删除目录copy_directory
:递归复制目录(带进度报告)watch_directory
:开始监视目录的变化unwatch_directory
:停止监视目录get_changes
:获取已记录更改的列表clear_changes
:清除所有记录的更改file:///recent-changes
:最近文件系统更改的列表file://{path}
:访问文件内容metadata://{path}
:访问文件元数据directory://{path}
:列出目录内容服务器实施速率限制以防止滥用:
速率限制错误在错误消息中包含一个重试期。
所有文件路径都经过验证,以防止目录遍历攻击:
../
)目录复制等长时间运行的操作提供进度更新:
可以通过操作结果中返回的进度令牌来跟踪进度。
可以通过各种设置来配置服务器:
服务器通过FileOperationError
类和 MCP 错误代码提供详细的错误信息:
InvalidRequest
:无效的参数或请求格式MethodNotFound
:请求的未知工具或资源InvalidParams
:无效参数(例如路径验证失败)InternalError
:服务器端错误每个错误包括:
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsmi021/mcp-file-operations-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server