filesystem vs sonarqube-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | sonarqube-mcp-server by SonarSource | |
|---|---|---|
| Stars | ★ 85,748 | ★ 554 |
| 30天用量 | — | — |
| 综合分 | 77 | 53 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具可观测性安全 |
| 实现语言 | TypeScript | Java |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
sonarqube-mcp-server · 概述
SonarQube MCP 服务器通过 MCP 协议使 AI 代理能够进行代码质量和安全分析。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
sonarqube-mcp-server · 使用场景
- AI 辅助的代码质量分析
- 代码审查中的自动化安全问题检测
- 将 SonarQube 指标集成到 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 中安装。
sonarqube-mcp-server · 安装
安装
SonarQube MCP 服务器以 Docker 容器镜像的形式分发。最简单的安装方法是使用提供的容器镜像 mcp/sonarqube:
docker run --init --pull=always -i --rm -e SONARQUBE_TOKEN -e SONARQUBE_ORG mcp/sonarqube对于 Claude Desktop,请添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"sonarqube": {
"command": "docker",
"args": ["run", "--init", "--pull=always", "-i", "--rm", "-e", "SONARQUBE_TOKEN", "-e", "SONARQUBE_ORG", "mcp/sonarqube"],
"env": {
"SONARQUBE_TOKEN": "<您的令牌>",
"SONARQUBE_ORG": "<您的组织>"
}
}
}
}[配置生成器](https://mcp.sonarqube.com/config-generator.html)提供了各种 AI 客户端的交互式设置工具。