Antigravity Codex MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --codex | No | Path to the Codex executable when Codex is not available on PATH. | |
| --state-dir | No | Directory for session state files such as runtime.json, sessions.json, and daemon.log; use a directory accessible only to the current user. | |
| --allow-root | No | Project root directory that the MCP server is allowed to operate on; projects must be inside an explicitly allowed root. | |
| CODEX_PROJECT_ROOT | No | Absolute project directory allowed when installing the Antigravity plugin (method B). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Delegate with codex_start and preserve conversation_id. Immediately call codex_open with that conversation_id so the user sees the Codex conversation. Use codex_wait/read until completed/failed/cancelled, then inspect results and continue with codex_send if acceptance criteria are unmet. Never claim completion while running. Resolve approvals only within user authorization. Codex uses a separate context; send task scope and acceptance criteria. Do not run competing writers in the same project.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| codex_openA | Open the embedded Codex conversation side panel. Pass a conversation_id or omit it for the session list. On IDE, the companion extension opens the same conversation. |
| codex_startA | Delegate a coding task to Codex and open its conversation. Returns immediately; MUST use codex_read/wait until a terminal status before reporting completion. One active turn per project. Uses the local Codex login. |
| codex_sendA | Send a follow-up in the SAME Codex conversation, preserving context. mode=next starts a new turn after completion; mode=steer adds instructions to a running turn. Do not retry unknown mutations with a new request_id. |
| codex_listB | List bridge-managed Codex conversations, their states and configured project roots. |
| codex_readB | Read bounded conversation messages, execution events and pending approvals. after is an event cursor; follow next_cursor when has_more is true. |
| codex_waitA | Wait up to 20 seconds for new events or completion, then return conversation state. Continue waiting if status remains running/starting. waiting_approval requires attention. |
| codex_resumeA | Import/resume an existing Codex thread by its exact thread_id and open the panel. Never attach to a conversation being controlled by another client. |
| codex_cancelA | Request interruption of the current Codex turn. File edits already made are retained. Query state until cancelled/completed. |
| codex_respondA | Answer a pending Codex approval or user-input request. Only accept actions within user authorization. Read pending_requests first; approvals are never auto-accepted. |
| codex_modelsA | List available models from the configured Codex account. |
| codex_diagnoseA | Check the bridge and app-server handshake without starting a model turn. Never returns auth tokens. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Codex Conversations | Interactive Codex session panel |
TDQS
Scored across 11 tools
Each tool maps to a distinct lifecycle action (start, send, read, wait, cancel, respond, resume, list, open), and descriptions clarify the boundaries. A few pairs are still easy to mix up: codex_open vs codex_start vs codex_resume all open a conversation, and codex_read vs codex_wait both surface events and state.
Every tool uses the same codex_ prefix plus a short lowercase verb/noun in snake_case, with no deviations in casing or style. The pattern is predictable enough that an agent can guess related tool names.
Eleven tools is well within the ideal band and each one covers a specific step of the conversation lifecycle rather than duplicating functionality. Nothing feels padded or conspicuously thin.
The surface covers the full turn lifecycle: start, follow-up/steer, read, wait, approve, cancel, resume, list, and open, plus diagnostics and model listing. Minor gaps remain, such as deleting or archiving conversations and changing project/model configuration for an existing thread.