
用 Rust 编写的 MCP 文件系统工具
概览
rs_filesystem:MCP Rust 文件系统工具============================= rs_filesystem 是一套简单的文件系统工具,可以在 Claude 桌面或其他 MCP 客户端中使用。 * --mcp: 启用MCP服务器 * --资源:显示资源 * --提示:显示提示符 * --工具:显示工具 1. 编辑claude_desktop_config.json:Claude Desktop ->设置 -> 开发者 -> 编辑配置 2.在服务器部分添加以下配置: 确保你使用了rs_filesystem二进制的实际路径。确保MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES环境变量设置为一个以冒号分隔的允许目录列表。这些工具只能在这些目录内工作。 如果你想查看MCP日志,请使用tail -n 20 -f ~/Library/Logs/Claude/rs_filesystem.logs.jsonl。 * MCP 规范:https://spec.modelcontextprotocol.io/ * 模型上下文协议(MCP):https://modelcontextprotocol.io/introduction * rpc-router:json-rpc 路由库 - https://github.
概述(AI 翻译)
rs_filesystem:MCP Rust 文件系统工具
rs_filesystem 是一套简单的文件系统工具,可以在 Claude 桌面或其他 MCP 客户端中使用。
CLI选项
--mcp:启用MCP服务器--resources:显示资源--prompts:显示提示--tools:显示工具
如何在 Claude Desktop 中使用 MCP CLI 服务器?
- 编辑
claude_desktop_config.json:Claude Desktop ->Settings->Developer->Edit Config - 在
servers部分添加以下配置:
确保你使用通往rs_filesystem二进制的实际路径。
确保 MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES env 变量设置为一个以冒号分隔的允许目录列表。
这些工具只能在这些目录内工作。
如果您想查看MCP日志,请使用tail -n 20 -f ~/Library/Logs/Claude/rs_filesystem.logs.jsonl。
参考文献
- MCP规范:https://spec.modelcontextprotocol.io/
- 模型上下文协议(MCP):https://modelcontextprotocol.io/introduction
- rpc-router:json-rpc 路由库 - https://github.com/jeremychone/rust-rpc-router/
- 劫context_server:https://github.
本页由 AI 翻译,技术细节请以原文为准。
README
rs_filesystem: MCP Rust Filesystem tools
rs_filesystem is a simple set of filesystem tools that can be used in Claude desktop or any other MCP client.
CLI options
--mcp: Enable MCP server--resources: display resources--prompts: display prompts--tools: display tools
How to use MCP CLI server in Claude Desktop?
- Edit
claude_desktop_config.json: Claude Desktop ->Settings->Developer->Edit Config - Add the following configuration to the
serverssection:
{
"mcpServers": {
"rs_filesystem": {
"command": "/path/to/rs_filesystem",
"args": [
"--mcp"
],
"env": {
"MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
}
}
}
}
Make sure you use the actual path to the rs_filesystem binary.
Make sure the MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES env variable is set to a colon-separated list of allowed directories.
The tools will only work inside those directories.
If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/rs_filesystem.logs.jsonl.
References
- MCP Specification: https://spec.modelcontextprotocol.io/
- Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction
- rpc-router: json-rpc routing library - https://github.com/jeremychone/rust-rpc-router/
- Zed context_server: https://github.com/zed-industries/zed/tree/main/crates/context_server
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"rs_filesystem": {
"command": "/path/to/rs_filesystem",
"args": [
"--mcp"
],
"env": {
"MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
}
}
}
}