filesystem vs cursor-rust-tools
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | cursor-rust-tools by terhechte | |
|---|---|---|
| Stars | ★ 85,748 | ★ 83 |
| 30天用量 | — | — |
| 综合分 | 77 | 40 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具AI / LLM 工具 |
| 实现语言 | TypeScript | Rust |
| 最近提交 | 本月 | 12 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
cursor-rust-tools · 概述
一个能让 Cursor 中的 Rust LLM 访问 Rust 分析器、Crate 文档和 Cargo 命令的 MCP 服务器。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
cursor-rust-tools · 使用场景
- 使 AI 编码助手在 Cursor 中提供准确的 Rust 类型信息和文档
- 允许 AI 代理运行 cargo check 和 test 命令进行实时验证
- 将最新的依赖文档集成到 AI 编码工作流中
filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。
cursor-rust-tools · 安装
安装
cargo install --git https://github.com/terhechte/cursor-rust-tools带 UI 运行
cursor-rust-tools无 UI 运行
cursor-rust-tools --no-ui配置
创建一个 ~/.cursor-rust-tools 配置文件,使用 TOML 格式:
[[projects]]
root = "/path/to/your/rust/project"
ignore_crates = []Claude Desktop 配置
将以下内容添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"cursor-rust-tools": {
"command": "cursor-rust-tools",
"args": []
}
}
}然后为您的项目配置 .cursor/mcp.json 文件,以在特定项目中启用服务器。