拉希·麦克普
Claude code的多代理代码审查MCP服务器。
  
状态: ✅ 经过充分测试和运行(查看测试结果)
快速开始
只是想开始吗? 看 QUICKSTART.md 获取5分钟的设置指南。
文档:
概述
rahho mcp是一个模型上下文协议(mcp)服务器,为Claude code提供多供应商AI代码审查功能。在一次工具调用中获得多个AI提供商的独立代码审查。
为什么要进行多代理审核?
不同的AI模型有不同的优势:
- 谷歌双子座2.5 Pro:擅长性能分析和大型代码库理解
- OpenAI GPT-4.1:强烈的安全关注和威胁建模
- 局部推断(GB10):使用Qwen2.5-Coder进行免费的私有边缘案例分析
通过结合多个视角,您可以获得更全面的代码审查覆盖率。
特性
- 多供应商审查:Gemini、GPT-4和本地推理在一次通话中
- 注重安全:使用GPT-4.1进行专门的安全审计
- 成本效益高:边缘情况的局部推理(免费)
- MCP本地:专为Claude Code集成而构建
- 异步优先:快速、无阻塞执行
- 结构化输出:具有成本跟踪功能的丰富审核结果
安装
# Clone the repository
git clone https://github.com/cerebustech-dev/rahho-mcp.git
cd rahho-mcp
# Install dependencies
pip install -e .
# For development
pip install -e ".[dev]"配置
添加到您的Claude Code MCP配置中(.claude/mcp.json):
{
"mcpServers": {
"rahho-mcp": {
"command": "python",
"args": ["-m", "rahho_mcp.server"],
"cwd": "/path/to/rahho-mcp",
"env": {
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
"OPENAI_API_KEY": "${OPENAI_API_KEY}",
"GOOGLE_API_KEY": "${GOOGLE_API_KEY}",
"GB10_API_BASE": "http://localhost:30000/v1"
}
}
}
}用法
配置后,Claude Code可以调用多代理审查:
# Claude Code automatically calls this when you ask for multi-vendor review
result = multi_agent_review(
code="your code here",
context="what this code does",
focus_areas=["security", "performance", "edge_cases"]
)示例审核流程
User: "Implement AWS Secrets Manager rotation with security review"
Claude Code: [implements code]
Claude Code: Let me get multi-vendor security review...
Results:
- Gemini 2.5 Pro: Found performance issue in connection pooling
- GPT-4.1: Identified missing IAM permission and race condition
- GB10 Qwen: Caught edge case with partial rotation failure
Claude Code: [applies fixes based on all three reviews]建筑
┌─────────────────────────────────────┐
│ Claude Code (User Interface) │
├─────────────────────────────────────┤
│ MCP Server (rahho-mcp) │
│ ├─ ReviewOrchestrator │
│ ├─ Gemini Agent │
│ ├─ OpenAI Agent │
│ └─ Local Inference Agent │
└─────────────────────────────────────┘与rahho的关系
本项目的灵感来源于 拉霍,一个基于CLI的多代理编排工具。虽然rahho专注于通过CLI和JSON清单进行工作流编排,但rahho mcp是专门为Claude code中的实时代码审查而构建的mcp服务器。
发展
# Run tests
pytest
# Type checking
mypy src/
# Code formatting
black src/ tests/
ruff check src/ tests/许可证
Apache许可证2.0
作者
罗德·达文波特
