Claude代码的Cantina MCP服务器
允许Claude Code获取和分析Cantina安全发现的MCP服务器。
它做什么
- 粘贴查找链接 --Claude获取完整的查找细节(描述、严重性、相关代码)
- “查找并修复此漏洞” --Claude阅读发现,然后搜索您的代码库以定位并修复问题
- “查找类似实例” --Claude在存储库中搜索类似的结果
- “显示评论” --克劳德获取对某一发现的所有评论
- “添加评论” --Claude代表您对调查结果发表评论
设置
1.克隆此仓库
git clone https://github.com/cantinasec/cantina-claude-mcp.git ~/cantina-mcp2.添加到克劳德代码
claude mcp add cantina -s user -e CANTINA_API_KEY=your-key-here -- node ~/cantina-mcp/src/cantina-mcp.js就是这样。MCP服务器现在在每个Claude Code会话中都可用。
用法
在Claude Code中,粘贴Cantina查找URL或询问查找结果:
Look at this finding: https://cantina.xyz/code/abc123/findings/42List all critical findings in repo abc123Show me the comments on finding 42 in repo abc123Add a comment to finding 42: "This looks like a reentrancy issue in the withdraw function"工具
cantina_get_finding--通过URL或仓库ID+查找编号获取单个查找结果cantina_list_findings--按严重性、状态等列出并过滤存储库中的发现。cantina_list_finding_comments--列出对发现的所有评论(不包括状态更改和其他事件)cantina_add_finding_comment--使用可选的可见性控制和线程为发现添加注释
环境变量
| 变量 | 必填 | 默认 | 描述 |
|---|---|---|---|
CANTINA_API_KEY | 是 | - | 您的食堂API密钥 |
CANTINA_API_URL | 没有 | https://cantina.xyz | 食堂API基础URL |
管理MCP服务器
# Remove
claude mcp remove cantina -s user
# List all configured MCP servers
claude mcp list