dynamic-shell-server vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
dynamic-shell-server by codelion | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 41 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 36 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具安全运维基建 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 15 个月前 | 本月 |
dynamic-shell-server · 概述
一个 Python MCP 服务器,通过动态批准和审计日志实现安全 shell 命令执行。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
dynamic-shell-server · 使用场景
- 通过 AI 助手安全执行 shell 命令,同时保持用户控制
- 为通过 AI 界面执行的所有系统管理任务创建审计跟踪
- 为开发人员提供受控方式执行构建和部署命令
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
dynamic-shell-server · 安装
安装
- 克隆此仓库:
git clone <repository-url>
cd dynamic-shell-server- 创建并激活虚拟环境:
python -m venv venv
source venv/bin/activate # 在 Windows 上使用:venv\Scripts\activate- 安装依赖:
pip install -r requirements.txtClaude Desktop 集成
- 打开 Claude Desktop 配置文件:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json - Windows: %APPDATA%\Claude\claude_desktop_config.json
- 添加服务器配置:
{
"mcpServers": {
"shell": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/dynamic_shell_server.py"]
}
}
}- 重启 Claude Desktop
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 中安装。