@junyjeon/claude-codex-orchestrator
v0.2.0
Published
MCP tool providing Claude Code access to Codex CLI (GPT-5) for code generation
Maintainers
Readme
claude-codex-orchestrator
MCP tool providing Claude Code access to Codex CLI (GPT-5) for code generation.
Overview
Simple MCP server that enables Claude Code to use Codex CLI for code generation tasks. Claude Code handles orchestration, analysis, and validation - this tool just calls Codex and returns results.
Architecture:
- Claude Code: Orchestration, analysis, validation
- This MCP server: Execute Codex CLI
- Codex CLI: Code generation
Prerequisites
- Node.js ≥20.0.0
- Codex CLI installed and authenticated
- ChatGPT Plus, Pro, Business, Edu, or Enterprise plan
Install Codex CLI
# Install (follow official guide)
npm install -g @openai/codex
# Authenticate
codex
# or
printenv OPENAI_API_KEY | codex login --with-api-keyVerify: codex exec "test prompt" should work.
Installation
npm (Recommended)
npm install -g @junyjeon/claude-codex-orchestratorLocal Development
git clone https://github.com/junyjeon/claude-codex-orchestrator.git
cd claude-codex-orchestrator
npm install
npm run build
npm linkClaude Code Integration
1. Register MCP Server
Add to ~/.claude.json:
{
"mcpServers": {
"codex": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@junyjeon/claude-codex-orchestrator"]
}
}
}For local development:
{
"mcpServers": {
"codex": {
"type": "stdio",
"command": "node",
"args": ["/path/to/claude-codex-orchestrator/dist/index.js"]
}
}
}2. Environment Variables (Optional)
Create .env file:
# Log level (default: info)
LOG_LEVEL=debug
# Codex CLI timeout (default: 30000ms)
CODEX_TIMEOUT=600003. Activate (If Needed)
Some environments require activation in ~/.claude/settings.json:
{
"enabledMcpjsonServers": [
"codex"
]
}Usage
Ask Claude Code to generate code:
"Create a binary search function in TypeScript"Claude Code will:
- Decide to use Codex
- Call generate_code tool
- Validate generated code
- Present results
Troubleshooting
Codex CLI not found
Codex CLI not found. Please install...Fix:
- Install Codex CLI
- Verify:
which codex - Restart Claude Code
Authentication failed
Codex authentication failed. Please run: codex loginFix:
- Run
codexorcodex login - Authenticate in browser
- Restart Claude Code
Timeout
Codex CLI timeout after 30000msFix:
- Increase CODEX_TIMEOUT in
.env - Check network connection
- Try simpler prompt
MCP server not detected
generate_code tool not in Claude Code.
Fix:
- Check
~/.claude.jsonconfiguration - Restart Claude Code completely
- Manual test:
npx @junyjeon/claude-codex-orchestrator
# or
node /path/to/dist/index.jsDocumentation
- 개요.md - Project overview
- 구조.md - Folder structure
- 흐름.md - Process flow
- 배포.md - Installation & deployment
Update
# npm package
npm update -g @junyjeon/claude-codex-orchestrator
# Local development
cd claude-codex-orchestrator
git pull
npm install
npm run buildUninstall
# npm package
npm uninstall -g @junyjeon/claude-codex-orchestrator
# Remove from ~/.claude.json
# Delete codex sectionLicense
MIT
Author
junyjeon
Repository
https://github.com/junyjeon/claude-codex-orchestrator
