claude-science-codex-review
Provides a bridge to the official OpenAI Codex CLI for executing code review and implementation jobs, with polling and follow-up capabilities.
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., "@claude-science-codex-reviewreview the statistical analysis in my paper"
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.
Claude Science Codex Review
A privacy-conscious, asynchronous bridge that lets Claude Science delegate an independent review or implementation task to the official OpenAI Codex CLI.
Long Codex runs execute in a macOS user LaunchAgent, outside the Claude Science sandbox. Claude Science submits a job, receives a job ID immediately, and polls short MCP calls until the job reaches a terminal state. This avoids one-minute tool limits and prevents sandbox proxy variables from breaking Codex WebSocket TLS.
Community project. It is not an official OpenAI or Anthropic integration.
What It Installs
a Claude Science skill with reliable submit, poll, failure, and follow-up behavior;
an MCP server exposing
codex,codex-status,codex-reply,codex-list-jobs, andcodex-cancel;a durable local queue and host-side Codex runner;
a macOS LaunchAgent and a read-only diagnostic command.
flowchart LR
CS["Claude Science"] --> MCP["Queue-only MCP server"]
MCP --> Q["Private local job queue"]
Q --> R["Host LaunchAgent"]
R --> CLI["Official Codex CLI"]
CLI --> Q
CS -->|"poll until terminal"| MCPRelated MCP server: claude-code-codex-agents
Requirements
macOS 13 or newer (the tested installer platform)
Claude Science with a local org skill directory
Node.js 20 or newer; the installer prefers Claude Science's bundled Node
the official Codex CLI, already authenticated with
codex login
No OpenAI API key is accepted, copied, or stored.
Install
git clone https://github.com/gongchen0916/claude-science-codex-review.git
cd claude-science-codex-review
./install.shRestart Claude Science after installation. If macOS or Claude Science asks once for access to the local Codex state directory, grant that directory access, then verify:
claude-science-codex-doctorSee the Chinese quick start for a compact walkthrough.
Use
Ask Claude Science to have Codex independently review a paper figure, statistical analysis, source tree, reproducibility package, or proposed code change. Reviews default to the Codex read-only sandbox.
The critical lifecycle is:
codexreturns ajobIdimmediately.codex-statusis called repeatedly while the job isqueued,dispatching, orrunning.Only
completed,failed, orcanceledis a final state.A completed result may be followed up with
codex-replyon the returned thread.
A queued job is not a review. The included skill explicitly prevents Claude Science from inventing findings or stopping before Codex returns a final agent message.
Model Names
Omitting model uses the Codex CLI default. The bridge maps the unsupported request alias gpt-5.6-codex to gpt-5.6-sol for compatible ChatGPT subscription sessions and records both requestedModel and actual model. Callers must disclose the model that actually ran.
Security
Codex authentication remains owned by the official CLI.
The bridge never reads Codex auth files or Claude Science credentials.
Proxy variables are removed before the host runner starts Codex.
Job files are local, owner-only runtime data and are never uploaded by this project.
Installation backs up the MCP JSON and changes only the named
openai-codexentry.A release-blocking scanner checks for tokens, private keys, email addresses, local home paths, and Claude Science organization IDs.
Read SECURITY.md for the trust boundaries and ARCHITECTURE.md for the job state model.
Troubleshooting
Start with:
claude-science-codex-doctorExact errors, including UnknownIssuer, stale queued jobs, a missing codex-code-mode-host, missing final messages, and requested/actual model differences, are covered in TROUBLESHOOTING.md.
Uninstall
./uninstall.shThis preserves prior MCP backups and local job history. To remove the integration and its job data:
./uninstall.sh --purge-dataDevelopment
The runtime has no npm dependencies.
npm test
npm run test:slow
npm run securityThe default suite uses a fake Codex executable and requires no network credentials. The slow suite proves a job longer than 60 seconds survives after the submitting MCP process exits.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
No-data MCP handoff for local Claude Code to Codex harness moves. $49 lifetime.
Paid remote MCP for Claude Code skill update gate MCP, structured receipts, audit logs, and reviewer
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Codex to delegate tasks to Claude Code, allowing Claude to investigate, edit, and verify changes in the repository with background job management.6 npmMIT
- AlicenseAqualityDmaintenanceEnables Claude Code to delegate tasks to OpenAI's Codex CLI (GPT-5.4) with structured execution traces, parallel execution, session persistence, and adversarial code review.15MIT
- AlicenseNot gradedqualityDmaintenanceEnables Codex to offload expensive code reading, editing, and checking to a worker agent via Claude Code, supporting async jobs and long-running tasks.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex to delegate bounded engineering jobs to Claude Code CLI in isolated Git worktrees with strict security and allowance pacing.MIT