Dual-Model MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dual-Model MCP ServerGenerate a secure JWT auth system in Python and review it for bugs."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dual-Model MCP Server
代码生成与质量保障系统:Claude Opus 4.6 生成代码,Codex 5.4 审查修复
工作流程
┌─────────────────────┐
│ Claude Opus 4.6 │
│ 写复杂代码 + 设计框架 │
└──────────┬──────────┘
│
│ 生成代码
▼
┌──────────┐
│ 完成代码 │
└──────┬───┘
│
│ 审查代码
▼
┌─────────────────────┐
│ Codex 5.4 │
│ 代码审查 + 修复 bug │
└─────────────────────┘Related MCP server: Multi-MCP
MCP 工具
工具 | 模型 | 说明 |
| Claude Opus 4.6 | 生成代码和设计框架 |
| Codex 5.4 | 审查代码并修复 bug |
| - | 判断任务类型 |
| Claude Opus 4.6 | 与 Claude 对话 |
工具详情
1. claude_codegen - Claude Opus 4.6 生成代码
用途:复杂代码生成和框架设计
输入:
task(string): 任务描述context(string): 上下文信息language(string): 编程语言(默认 python)requirements(array): 额外需求列表
输出:生成的代码和说明
2. codex_review - Codex 5.4 审查代码
用途:代码审查和 bug 修复
输入:
code(string): 要审查的代码language(string): 编程语言(默认 python)focus(string): 审查重点(security/performance/bugs/all)
输出:审查结果和修复后的代码
3. classify_task - 判断任务类型
输出:
{
"type": "simple" | "complex",
"model": "glm-4.7" | "claude-opus-4-6",
"action": "use_local" | "use_claude",
"reason": "判断原因",
"confidence": "high" | "medium"
}4. claude_chat - 与 Claude 对话
输入:
message(string): 用户消息system_prompt(string): 系统提示词(可选)
配置
环境变量 (.env)
# 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.4MCP 配置 (.mcp.json)
{
"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注意事项
API Key 安全:不要把
.env文件提交到 Git成本控制:Claude Opus 4.6 和 Codex 5.4 按使用量计费
网络要求:需要能访问 API 代理 (https://subrouter.ai/register?aff=dRgW)
This server cannot be deployed
Maintenance
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseAqualityFmaintenanceAn MCP server that integrates Codex CLI into Claude Code workflows for code writing, execution, and review with session management. It features real-time progress monitoring via a local HTTP dashboard and supports detailed configuration for various coding tools.615166MIT
- AlicenseAqualityAmaintenanceA multi-model AI orchestration MCP server for automated code review and LLM-powered analysis, integrating with Claude Code and OpenCode to orchestrate multiple AI models for code quality checks, security analysis, and multi-agent consensus.636MIT
- AlicenseNot gradedqualityCmaintenanceA MCP server that enables Claude Code to delegate coding tasks to Codex via the MCP protocol, with task management, security checks, and result verification.44MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables Claude to orchestrate multiple autonomous Claude Code agents working in parallel across different projects, with tools to dispatch, monitor, and manage their progress.6481MIT