deep-code-reasoning-mcp
by evalops·★ 105·综合分 49
结合 Claude Code 和 Google Gemini AI 的 MCP 服务器,提供高级代码分析和推理能力。
概述
该 MCP 服务器创建了一个多模型工作流,其中 Claude Code 处理终端集成和多文件重构,而 Gemini 则利用其巨大的上下文窗口(1M tokens)和代码执行能力进行分布式系统调试和长链分析。它根据两个 AI 系统的特定优势,在模型之间提供智能路由。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你的开发工作流程需要超越单文件上下文的深度代码分析时,特别是对于分布式系统、性能回归分析,或者需要跨多个服务和日志关联故障时,选择这个MCP服务器。
什么时候不要选它
如果你因为合规或供应商锁定问题无法使用Google的Gemini API,或者主要处理不需要大规模上下文能力的小型代码库,请避免使用此服务器。
此 server 暴露的工具
从 README 抽取出 9 个工具start_conversation{claude_context: {attempted_approaches: string[], partial_findings: any[], stuck_description: string, code_scope: {files: string[], entry_points?: CodeLocation[], service_names?: string[]}}, analysis_type: 'execution_trace' | 'cross_system'Initiates a conversational analysis session between Claude and Gemini.
continue_conversation{session_id: string, message: string, include_code_snippets?: boolean}Continues an active conversation with Claude's response or follow-up question.
finalize_conversation{session_id: string, summary_format: 'detailed' | 'concise' | 'actionable'}Completes the conversation and generates structured analysis results.
get_conversation_status{session_id: string}Checks the status and progress of an ongoing conversation.
escalate_analysis{claude_context: {attempted_approaches: string[], partial_findings: any[], stuck_description: string, code_scope: {files: string[], entry_points?: CodeLocation[], service_names?: string[]}}, analysis_type: 'execution_trace' | 'cross_system'Main tool for handing off complex analysis from Claude Code to Gemini.
trace_execution_path{entry_point: {file: string, line: number, function_name?: string}, max_depth?: number, include_data_flow?: boolean}Deep execution analysis with Gemini's semantic understanding.
cross_system_impact{change_scope: {files: string[], service_names?: string[]}, impact_types?: ('breaking' | 'performance' | 'behavioral')[]}Analyze impacts across service boundaries.
performance_bottleneck{code_path: {entry_point: {file: string, line: number, function_name?: string}, suspected_issues?: string[]}, profile_depth?: 1-5}Deep performance analysis beyond simple profiling.
hypothesis_test{hypothesis: string, code_scope: {files: string[], entry_points?: CodeLocation[]}, test_approach: string}Test specific theories about code behavior.
可对比工具
安装
快速安装(适用于 Cursor)
[](https://cursor.com/install-mcp?name=deep-code-reasoning&config=eyJjb21tYW5kIjoibm9kZSIsImFyZ3MiOlsiL3BhdGgvdG8vZGVlcC1jb2RlLXJlYXNvbmluZy1tY3AvZGlzdC9pbmRleC5qcyJdLCJlbnYiOnsiR0VNSU5JX0FQSV9LRVkiOiJ5b3VyLWdlbWluaS1hcGkta2V5In19)
手动安装
- 克隆仓库:
git clone https://github.com/Haasonsaas/deep-code-reasoning-mcp.git
cd deep-code-reasoning-mcp- 安装依赖:
npm install- 设置 Gemini API 密钥:
cp .env.example .env
# 编辑 .env 文件并添加您的 GEMINI_API_KEY- 构建项目:
npm run buildClaude Desktop 配置
在您的 Claude Desktop 配置文件中(~/Library/Application Support/Claude/claude_desktop_config.json)添加:
{
"mcpServers": {
"deep-code-reasoning": {
"command": "node",
"args": ["/path/to/deep-code-reasoning-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}FAQ
- 这个服务器与其他 AI 代码分析工具有什么不同?
- 它结合了两个 AI 模型的优势 - Claude Code 用于本地上下文操作和 CLI 原生工作流,以及 Gemini 凭借其 1M token 上下文窗口进行大规模代码库分析和分布式系统调试。
- 使用此 MCP 服务器需要什么先决条件?
- 您需要 Node.js 18 或更高版本、具有 Gemini API 访问权限的 Google Cloud 账户,以及来自 Google AI Studio 的 Gemini API 密钥。
deep-code-reasoning-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。