filesystem vs sub-agents-mcp
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | sub-agents-mcp by shinpr | |
|---|---|---|
| Stars | ★ 85,748 | ★ 83 |
| 30天用量 | — | — |
| 综合分 | 77 | 46 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具AI / LLM 工具效率工具 |
| 实现语言 | TypeScript | TypeScript |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
sub-agents-mcp · 概述
在 Markdown 中定义任务特定的 AI 子代理,可用于任何兼容 MCP 的工具。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
sub-agents-mcp · 使用场景
- 使用专门的代理进行代码审查和质量分析
- 通过自定义的测试编写代理为代码模块生成测试
- 使用专门构建的文档编写代理生成文档
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 中安装。
sub-agents-mcp · 安装
安装
- 安装执行引擎(cursor-agent、claude、gemini 或 codex CLI)
- 在您的 IDE 中配置 MCP:
- Cursor: ~/.cursor/mcp.json - Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"sub-agents": {
"command": "npx",
"args": ["-y", "sub-agents-mcp"],
"env": {
"AGENTS_DIR": "/absolute/path/to/your-agents-folder",
"AGENT_TYPE": "cursor" // 或 "claude", "gemini", 或 "codex"
}
}
}
}- 在您的代理文件夹中创建代理 markdown 文件