mcp-guardian vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
mcp-guardian by eqtylab | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 199 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 46 | 77 |
| 官方 | — | ✓ |
| 分类 | 安全开发者工具可观测性 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Rust | TypeScript |
| 最近提交 | 9 个月前 | 本月 |
mcp-guardian · 概述
MCP Guardian 是一个用于 MCP 服务器的安全和管理代理,提供实时控制和监控功能。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-guardian · 使用场景
- 监控和批准 MCP 工具调用在执行前的安全性
- 管理和切换多个 MCP 服务器配置
- 记录和审计所有 MCP 服务器活动以实现合规性和调试
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-guardian · 安装
安装
Linux/macOS
- 安装 nix:https://nixos.org/download/
- 启用 nix flakes:
``bash sudo sh -c 'echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf' ``
- 进入开发环境:
``bash nix develop ``
- 构建项目:
``bash just build-release ``
Windows
- 安装支持符号链接的 git
- 安装 rustup:https://www.rust-lang.org/tools/install
- 安装 nodejs
- 安装 yarn:
npm install --global yarn - 安装 Visual Studio 并安装 C++ 开发包
- 安装 just:
cargo install just - 构建项目:
``bash just build-release ``
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 中安装。