generator vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
generator by context-hub | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 321 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 50 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具本地文件系统 | 本地文件系统开发者工具效率工具 |
| 实现语言 | PHP | TypeScript |
| 最近提交 | 2 个月前 | 本月 |
generator · 概述
CTX 是一个 MCP 服务器,提供 AI 访问代码的读取、写入和分析功能,支持多项目和自定义工具。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
generator · 使用场景
- 让 AI 助手能够探索、理解和修改多个项目中的代码
- 自动化开发任务如运行测试、部署和代码分析
- 为代码审查和文档生成全面的上下文文档
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
generator · 安装
安装 CTX:
**Linux / WSL:**
curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sh**Windows:**
powershell -c "& ([ScriptBlock]::Create((irm 'https://raw.githubusercontent.com/context-hub/generator/main/download-latest.ps1'))) -AddToPath"连接到 Claude Desktop:
ctx mcp:config或手动添加到您的 MCP 客户端配置:
{
"mcpServers": {
"ctx": {
"command": "ctx",
"args": [
"server"
]
}
}
}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 中安装。