Antigravity Codex MCP
Provides integration with Google Antigravity CLI, allowing Codex agents to delegate project reviews, ask and continue conversations, sync transcripts, and perform isolated implementations within an explicitly enabled project scope.
Click on "Install 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., "@Antigravity Codex MCPUse AGY to review the current project and summarize issues."
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.
Antigravity Codex MCP
A controlled Model Context Protocol bridge that lets OpenAI Codex delegate work to Google Antigravity CLI on demand.
The bridge stays idle until a user explicitly asks Codex to use AGY. It then authorizes only the exact current project, keeps a project-scoped conversation, synchronizes user-visible dialogue, and confines generated implementation changes to an isolated copy.
This is an independent community project. It is not affiliated with or endorsed by Google or OpenAI.
Highlights
Explicit opt-in: Codex cannot enable or call AGY unless the user asks for it.
Exact project scope: broad roots and system directories are rejected.
Read-only delegation by default: no AGY write, command, URL, or MCP permission is granted.
Project conversations: active conversation IDs and delegation history survive new Codex tasks.
Visible transcript sync: messages entered through AGY CLI become available to Codex on the next sync.
Private-reasoning filter: thinking/reasoning fields, system messages, and checkpoints are excluded before persistence or MCP return.
Isolated implementation: validated full-file replacements are applied only to a disposable project copy.
Auditable runs: responses, changed-file manifests, verification output, and sanitized tool events are retained locally.
Related MCP server: codex-agy-bridge
Requirements
Node.js 20 or newer
Authenticate Antigravity CLI and verify that agy is available:
agy --version
agy -p "Reply exactly: AGY_OK" --output-format jsonIf agy is not on PATH, set AGY_BIN to its executable path in the MCP configuration.
Installation
git clone https://github.com/ustc-fyk/antigravity-codex-mcp.git
cd antigravity-codex-mcp
npm ci
npm testAdd the server to your Codex config.toml. Replace the example paths with the absolute clone path on your machine:
Linux / macOS:
[mcp_servers.antigravity]
command = "node"
args = ["/path/to/antigravity-codex-mcp/src/index.js"]
cwd = "/path/to/antigravity-codex-mcp"
enabled = true
required = false
startup_timeout_sec = 20
tool_timeout_sec = 900
default_tools_approval_mode = "prompt"
enabled_tools = [
"antigravity_health",
"antigravity_project_status",
"antigravity_enable_project",
"antigravity_disable_project",
"antigravity_start_session",
"antigravity_get_active_session",
"antigravity_list_sessions",
"antigravity_sync_conversation",
"antigravity_get_transcript",
"antigravity_ask",
"antigravity_continue",
"antigravity_review",
"antigravity_execute",
"antigravity_list_runs",
"antigravity_get_run",
]
# Optional when agy is not available on PATH:
# [mcp_servers.antigravity.env]
# AGY_BIN = "/path/to/agy"Windows:
[mcp_servers.antigravity]
command = "node"
args = ['C:\path\to\antigravity-codex-mcp\src\index.js']
cwd = 'C:\path\to\antigravity-codex-mcp'
enabled = true
required = false
startup_timeout_sec = 20
tool_timeout_sec = 900
default_tools_approval_mode = "prompt"
enabled_tools = [
"antigravity_health",
"antigravity_project_status",
"antigravity_enable_project",
"antigravity_disable_project",
"antigravity_start_session",
"antigravity_get_active_session",
"antigravity_list_sessions",
"antigravity_sync_conversation",
"antigravity_get_transcript",
"antigravity_ask",
"antigravity_continue",
"antigravity_review",
"antigravity_execute",
"antigravity_list_runs",
"antigravity_get_run",
]
# Optional when agy is not available on PATH:
# [mcp_servers.antigravity.env]
# AGY_BIN = 'C:\path\to\agy.exe'Install the included Codex Skill so Codex follows the opt-in workflow:
Linux / macOS (Bash):
mkdir -p ~/.codex/skills/agy-project-assistant
cp ./skills/agy-project-assistant/SKILL.md ~/.codex/skills/agy-project-assistant/Windows (PowerShell):
$skillRoot = Join-Path $env:USERPROFILE ".codex\skills\agy-project-assistant"
New-Item -ItemType Directory -Force $skillRoot | Out-Null
Copy-Item ".\skills\agy-project-assistant\SKILL.md" $skillRootRestart Codex after changing MCP configuration or installing the Skill.
Usage
Open any project directory in Codex.
Work normally; the AGY bridge remains idle.
Explicitly ask:
Load AGY and review this project.Codex enables read access for that exact project and starts or reuses its AGY conversation.
Codex delegates analysis, review, continuation, or isolated implementation as appropriate.
Ask
Disable AGY for this projectto revoke the exact project permission while preserving local audit history.
To inspect or participate in the same conversation directly:
agy --conversation=<conversation_id>After sending messages through AGY CLI, ask Codex to sync the AGY conversation. antigravity_continue also synchronizes before and after every follow-up. Synchronization is on demand, not a live push channel, so avoid simultaneous sends from Codex and AGY CLI.
MCP tools
Area | Tools |
Health and lifecycle |
|
Conversations |
|
Visible transcripts |
|
Isolated implementation |
|
Model calls occur only through the start, ask, continue, review, and execute tools. Health, status, history, run inspection, and transcript synchronization do not consume an AGY model turn.
Project-local state
Each enabled project receives an ignored local state directory:
.antigravity-mcp/
├── project.json
├── sessions.jsonl
├── transcripts/
│ └── <conversation-id>.jsonl
└── runs/
└── <run-id>/
├── metadata.json
├── events.jsonl
├── response.md
└── workspace/project.jsonrecords opt-in state and the active conversation.sessions.jsonlrecords delegated calls and token usage.transcriptscontains only visible user/assistant records and sanitized tool traces.runscontains isolated implementation workspaces and audit results.
This directory is excluded from the source copy and ignored by Git. Do not commit it manually because it may contain private project or conversation data.
Safety model
Project enablement atomically adds only the exact root to Antigravity trustedWorkspaces and read_file(...) allow rules. Disablement removes only those exact entries.
Isolated implementation rejects:
absolute paths and parent traversal;
file deletion;
secret files, dependencies, build output, metadata, and symbolic links;
more than 50 changed files;
more than 2,000,000 replacement characters.
The transcript pipeline recursively removes private reasoning fields and excludes system/checkpoint records before writing the project mirror. See SECURITY.md for reporting guidance and limitations.
Development
npm ci
npm test
npm run smoke:mcpLive checks require an authenticated AGY CLI and consume model quota:
npm run smoke:live
npm run smoke:execute
npm run smoke:project -- "/absolute/path/to/disposable-project"
npm run smoke:continue -- "/absolute/path/to/enabled-project"
npm run smoke:transcript -- "/absolute/path/to/enabled-project"npm test is self-contained. smoke:mcp also checks the local AGY binary, while the remaining smoke tests may change project authorization or consume quota.
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceA lightweight MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI - saving context window and tokens for what matters.112MIT
- AlicenseBqualityAmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.135MIT
- AlicenseAqualityBmaintenanceEnables OpenAI Codex to consult Claude Code for co-analysis, adversarial second opinions, and read-only file review over the Model Context Protocol, with Claude remaining advisory and unable to modify files.954MIT
- FlicenseNot gradedqualityCmaintenanceEnables external agents like Gemini Spark to control Google Antigravity CLI (agy) via Model Context Protocol, supporting multimodal inputs and automatic session management.
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
A paid remote MCP for OpenAI Codex memory MCP, built to return verdicts, receipts, usage logs, and a
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ustc-fyk/antigravity-codex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server