@ndcorder/codex-bridge
v1.1.0
Published
MCP server bridging Claude Code and GPT Codex for collaborative brainstorming and code review
Maintainers
Readme
codex-bridge
MCP server that bridges Claude Code to GPT Codex for:
codex_ask— adversarial brainstorming / tradeoff memoscodex_review— critical code review with optional evidence modecodex_plan— implementation planning with stop-ship checkscodex_risk_radar— diff risk scoring + recommended collaboration pathcodex_stats/codex_sessions/codex_reset— session telemetry and lifecycle controls
Quick start
Use from npm after publishing:
npx -y @ndcorder/codex-bridge initThat adds a codex-bridge MCP server entry to the current project's .mcp.json and appends Codex Bridge usage guidance to CLAUDE.md.
Prerequisite: install and authenticate the Codex CLI so codex --version works on your PATH.
For local development from this repository:
npm install
npm run build
npm startThe server runs over stdio (MCP transport).
Manual MCP config:
{
"mcpServers": {
"codex-bridge": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@ndcorder/codex-bridge"]
}
}
}Configuration
Environment variables:
CODEX_BRIDGE_MODEL(orCODEX_MODEL) — default model override (gpt-5.3-codex)CODEX_BRIDGE_RETRIES— default transient retry count (default1)CODEX_BRIDGE_RETRY_BACKOFF_MS— default retry backoff base in ms (default500)CODEX_BRIDGE_MAX_SESSIONS— max in-memory sessions before LRU-style eviction (default200)CODEX_BRIDGE_SESSION_TTL_MS— session inactivity TTL before auto-expiry (default86400000, 24h)
Per-request runtime options (ask/review/plan):
working_dir— project directory for Codex file accesstimeout— timeout in mssession_id— explicit context isolation keymodel— per-request model overrideretries— per-request retry overrideretry_backoff_ms— per-request retry backoff override
Scripts
Core
npm run build— compile TypeScriptnpm start— start MCP server on stdionpm test— build + unit testsnpm run test:bakeoff— build + bake-off black-box suitenpm run verify— unit tests + bake-off suite
Benchmark
npm run bench— run benchmark suitenpm run bench:avg— run 3 benchmark iterations and averagenpm run bench:hf— benchmark with HuggingFace-imported samplesnpm run bench:report— summarize latest benchmark JSON into markdown
Examples:
npm run bench:report -- --file=benchmark/results/2026-03-09-codex-averaged-3runs.json
npm run bench:report -- --out=benchmark/results/LATEST-SUMMARY.mdRelease helpers
npm run release:bump— bump patch version inpackage.json+package-lock.jsonnpm run release:bump:patch|minor|major— explicit semver bumpnpm run release:notes— generate.release/RELEASE_NOTES.mdfromCHANGELOG.mdnpm run release:pack-check— build +npm pack --dry-runnpm run release:prepare— full verify + pack check + release notes generation
Release process checklist:
Publishing
The package is published under the @ndcorder scope because npm rejected the unscoped codex-bridge name as too similar to an existing package. First publish:
npm login
npm run release:prepare
npm publish --access publicTool reference
Detailed MCP tool schemas and parameters:
Changelog
Bake-off notes API
benchmark/bakeoff contains a notes API + black-box test harness used for reliability/security bake-offs.
npm run test:bakeoff