
一款模型上下文协议(MCP)服务器,提供由谷歌Gemini AI驱动的高级代码分析和推理能力
概览
一台MCP服务器,将Claude Code与谷歌Gemini AI配对,用于互补的代码分析。该服务器支持多模型工作流程,Claude Code负责严格的终端集成和多文件重构,而Gemini则利用其庞大的上下文窗口(100万令牌)和代码执行能力进行分布式系统调试和长追踪分析。 Claude和Gemini都能处理深度语义推理和分布式系统漏洞。该服务器支持智能路由策略,能够:- 擅长本地上下文操作、增量补丁和CLI原生工作流 - 在大规模上下文扫描、合成测试执行以及跨日志+跟踪+代码的失败分析中表现出色 “升级”模型将大型语言模型视为异构微服务——路由到每个子任务中最有能力的那个。 - : 使用谷歌最新的Gemini 2.5 Pro预览版(05-06)型号,带有100万令牌上下文窗口 - : 全新!
概述(AI 翻译)
一台MCP服务器,将Claude Code与谷歌Gemini AI配对,用于互补的代码分析。该服务器支持多模型工作流程,Claude Code负责严格的终端集成和多文件重构,而Gemini则利用其庞大的上下文窗口(100万令牌)和代码执行能力进行分布式系统调试和长追踪分析。
核心价值
Claude 和 Gemini 都能处理深度语义推理和分布式系统漏洞。该服务器支持智能路由策略,其中:
- Claude Code 在本地上下文操作、增量补丁和 CLI 原生工作流程方面表现出色
- Gemini 2.5 Pro 以大规模上下文扫描、合成测试执行以及跨日志 + 跟踪 + 代码的失败分析表现出色
“升级”模型将大型语言模型视为异构微服务——路由到每个子任务中最有能力的那个。
特色
- Gemini 2.5 Pro 预览版:使用谷歌最新的 Gemini 2.5 Pro 预览版(05-06)型号,带有 1M 令牌上下文窗口
- 对话分析:新!Claude与Gemini之间的AI对AI对话,用于迭代问题解决
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Deep Code Reasoning MCP Server
An MCP server that pairs Claude Code with Google’s Gemini AI for complementary code analysis. This server enables a multi-model workflow where Claude Code handles tight terminal integration and multi-file refactoring, while Gemini leverages its massive context window (1M tokens) and code execution capabilities for distributed system debugging and long-trace analysis.
Core Value
Both Claude and Gemini can handle deep semantic reasoning and distributed system bugs. This server enables an intelligent routing strategy where:
- Claude Code excels at local-context operations, incremental patches, and CLI-native workflows
- Gemini 2.5 Pro shines with huge-context sweeps, synthetic test execution, and analyzing failures that span logs + traces + code
The “escalation” model treats LLMs like heterogeneous microservices - route to the one that’s most capable for each sub-task.
Features
- Gemini 2.5 Pro Preview: Uses Google’s latest Gemini 2.5 Pro Preview (05-06) model with 1M token context window
- Conversational Analysis: NEW! AI-to-AI dialogues between Claude and Gemini for iterative problem-solving
- Execution Flow Tracing: Understands data flow and state transformations, not just function calls
- Cross-System Impact Analysis: Models how changes propagate across service boundaries
- Performance Modeling: Identifies N+1 patterns, memory leaks, and algorithmic bottlenecks
- Hypothesis Testing: Tests theories about code behavior with evidence-based validation
- Long Context Support: Leverages Gemini 2.5 Pro Preview’s 1M token context for analyzing large codebases
Prerequisites
- Node.js 18 or later
- A Google Cloud account with Gemini API access
- Gemini API key from Google AI Studio
Key Dependencies
- @google/generative-ai: Google’s official SDK for Gemini API integration
- @modelcontextprotocol/sdk: MCP protocol implementation for Claude integration
- zod: Runtime type validation for tool parameters
- dotenv: Environment variable management
Installation
Quick Install for Cursor
Note: After installation, you’ll need to update the file path to your actual installation directory and set your GEMINI_API_KEY.
Manual Installation
- Clone the repository:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"deep-code-reasoning": {
"command": "node",
"args": ["/path/to/deep-code-reasoning-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}