Codex MCP Bridge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEX_BIN | No | Explicit path to the `codex` / `codex.exe` binary. Default: auto-discovered. | |
| CODEX_HOME | No | Directory containing Codex's `config.toml` and `models_cache.json`. | ~/.codex |
| CODEX_BRIDGE_DATA_DIR | No | Directory storing `settings.json`, `goals.json`, `jobs.json`, and `history.json`. | ~/.gemini/antigravity/plugin_data/codex-bridge |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use codex_goal to create and track persistent multi-step goals & milestones, codex_run/codex_resume/codex_review for synchronous tasks, codex_start/codex_status/codex_cancel for persistent background workers with auto-callback support, and codex_config/codex_info to inspect or update active preferences shared with the Codex Bridge sidecar panel.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codex_runA | Run a task synchronously with local OpenAI Codex CLI ( |
| codex_resumeA | Continue a previous Codex session synchronously by session_id (or 'last' for the most recent session) with follow-up instructions, preserving Codex's full conversation context. |
| codex_reviewC | Run Codex's built-in non-interactive code review ( |
| codex_startA | Launch a Codex task asynchronously in the background and immediately return a job_id. Persisted to disk; when progression mode is 'notify' or 'autonomous', the Sidecar automatically sends a callback message back to Antigravity upon completion so verification and milestone progression continue seamlessly. |
| codex_statusA | Check status, live progress events, session_id, or final output of a background Codex job started with codex_start (also inspects jobs persisted across restarts). Optionally waits up to wait_seconds. |
| codex_cancelB | Cancel a running background Codex job by job_id. |
| codex_goalB | Manage persistent multi-step Goals & Milestones shared with the Codex Bridge Sidecar panel (survives restarts and conversation compaction). Use this for ongoing backend debugging, refactors, or meta-analysis pipelines that require iterative verification. |
| codex_configB | Read or update persistent Codex Bridge preferences (model, reasoning_effort, sandbox, workflow_mode, progression_mode, max_auto_iterations) shared with the Codex Bridge UI panel, and list available local Codex models. |
| codex_infoB | Check Codex Bridge health: shows resolved codex.exe path & version, active UI panel preferences (model, reasoning effort, sandbox, workflow mode, progression mode), active goal progress, and tracked background jobs. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
The async/sync split is clearly labeled (codex_start vs codex_run), and job-scoped status is separated from health-check info (codex_status vs codex_info). The main seam is codex_info vs codex_config, which both surface current preferences (model, sandbox, workflow mode) and could be confused about which is the right tool to inspect settings.
All tools share a clean codex_ prefix, so the namespace is predictable and easy to scan. The action segments are slightly mixed in style—verbs (start, cancel, run, resume, review) versus nouns (info, status, goal, config)—but each remains readable and there's no case-style mixing.
Nine tools is well within the ideal range for a Codex bridge and each one maps to a distinct operation: async lifecycle, sync execution, session continuation, review, goal tracking, config, and info. Nothing looks redundant or missing from the set.
The surface covers the full async lifecycle (start, status, cancel), synchronous run/resume, code review, persistent goals, configuration, and health inspection—no obvious dead ends for the core workflow. Minor gaps exist around enumerating all tracked jobs/sessions or fetching raw logs, which currently must be inferred via codex_status/codex_info.