loading…
Search for a command to run...
loading…
An MCP server that orchestrates a dual-model workflow using Claude Opus for high-level code generation and Codex for automated code review and bug fixing. It pr
An MCP server that orchestrates a dual-model workflow using Claude Opus for high-level code generation and Codex for automated code review and bug fixing. It provides tools for framework design, task classification, and quality assurance to optimize software development.
代码生成与质量保障系统:Claude Opus 4.6 生成代码,Codex 5.4 审查修复
┌─────────────────────┐
│ Claude Opus 4.6 │
│ 写复杂代码 + 设计框架 │
└──────────┬──────────┘
│
│ 生成代码
▼
┌──────────┐
│ 完成代码 │
└──────┬───┘
│
│ 审查代码
▼
┌─────────────────────┐
│ Codex 5.4 │
│ 代码审查 + 修复 bug │
└─────────────────────┘
| 工具 | 模型 | 说明 |
|---|---|---|
claude_codegen |
Claude Opus 4.6 | 生成代码和设计框架 |
codex_review |
Codex 5.4 | 审查代码并修复 bug |
classify_task |
- | 判断任务类型 |
claude_chat |
Claude Opus 4.6 | 与 Claude 对话 |
claude_codegen - Claude Opus 4.6 生成代码用途:复杂代码生成和框架设计
输入:
task (string): 任务描述context (string): 上下文信息language (string): 编程语言(默认 python)requirements (array): 额外需求列表输出:生成的代码和说明
codex_review - Codex 5.4 审查代码用途:代码审查和 bug 修复
输入:
code (string): 要审查的代码language (string): 编程语言(默认 python)focus (string): 审查重点(security/performance/bugs/all)输出:审查结果和修复后的代码
classify_task - 判断任务类型输出:
{
"type": "simple" | "complex",
"model": "glm-4.7" | "claude-opus-4-6",
"action": "use_local" | "use_claude",
"reason": "判断原因",
"confidence": "high" | "medium"
}
claude_chat - 与 Claude 对话输入:
message (string): 用户消息system_prompt (string): 系统提示词(可选)# Claude API 配置
ANTHROPIC_API_KEY=sk-xxxxx
ANTHROPIC_BASE_URL=https://subrouter.ai
CLAUDE_MODEL=claude-opus-4-6
# Codex API 配置
CODEX_API_KEY=sk-xxxxx
CODEX_BASE_URL=https://subrouter.ai
CODEX_MODEL=codex-5.4
{
"mcpServers": {
"dual-model": {
"command": "python",
"args": ["-u", "C:/skewliness/claude-mcp/server.py"],
"cwd": "C:/skewliness/claude-mcp",
"env": {
"ANTHROPIC_API_KEY": "sk-xxxxx",
"CLAUDE_MODEL": "claude-opus-4-6",
"CODEX_API_KEY": "sk-xxxxx",
"CODEX_MODEL": "codex-5.4"
}
}
}
}
1. 用户请求:"实现一个用户认证系统"
↓
2. 调用 claude_codegen (Claude Opus 4.6)
↓
3. 生成代码:
- FastAPI 框架
- JWT 认证
- 密码加密
↓
4. 调用 codex_review (Codex 5.4)
↓
5. 审查并修复:
- 检查安全漏洞
- 修复 bug
- 性能优化
↓
6. 输出最终代码
cd C:/skewliness/claude-mcp
pip install -r requirements.txt
python server.py
anthropic
python-dotenv
mcp
.env 文件提交到 GitДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"dual-model-mcp-server": {
"command": "npx",
"args": []
}
}
}