codex-antigravity-mcp
Allows delegating engineering tasks, refactoring, auditing, and test execution to Google Antigravity CLI (powered by Google Gemini), providing tools for managing persistent sessions, sending prompts, and running isolated tasks with selectable Gemini models.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Codex Antigravity MCP (codex-antigravity-mcp)
Plugin and MCP server for Codex (Desktop & CLI) that delegates software engineering, refactoring, architectural auditing, git branch management, and test execution to Google Antigravity CLI (agy) as a persistent autonomous coding subagent with a real-time Live Activity Channel.
What's New in v2.1.0
Sessions now explicitly select
gemini-3.8-flash-highwhen no model is provided, rather than inheriting the CLI's last model.Set
ANTIGRAVITY_DEFAULT_MODELin the MCP server environment to change the default; an explicitmodeltakes precedence.Status responses include
defaultModel(underlimits.defaultModelin verbose JSON).
Related MCP server: Codex Antigravity Subagent MCP
Compact Output (v2.0.0)
Compact text output is now the default for tools. Running turns show
[RUNNING],stateDetail, up to eight recent new steps, andcursor; each live preview is capped at 300 characters on one line. Omitted steps are counted.Completed turns show an
activity:summary followed by the final Markdown response. Partial responses and cumulative workspace activity are not repeated on each live poll.Pass
verbose: trueto status, create, prompt, watch, interrupt, list, or run to get the full JSON payload. The live resourceantigravity://sessions/livenow returns a compacttext/plainsession list.
Migrating from 1.2.0
This release changes the default output format. Clients that parse tool text with JSON.parse must send verbose: true; JSON turn responses retain status, events, timeline, workspaceActivity, cumulativeUsage, and nextCursor. Close confirmations and handler exceptions now return text even when other requests use verbose mode.
For compact live monitoring, pass the returned cursor to the next watch call. To inspect omitted events, repeat the watch with verbose: true and the previous input cursor before advancing. The session retains at most 500 events, so older events can expire from the buffer.
Session and Media Features
Live Activity Channel (
antigravity_session_watch+waitMs): Codex observes whatagyis doing step by step in real time (reasoning thoughts, intermediate messages, files read/modified viaview_file/replace_file_content, shell commands executed viarun_command, and spawned subagents) with a default 20-second observation window that returns[RUNNING]updates without interrupting the turn.Hot Interrupt & Steering (
antigravity_session_interrupt): Stop or redirect an active turn mid-flight while automatically reconnecting to the sameconversationIdvia--conversation.Workspace Impact, Media & Token Tracking (
workspaceActivity&cumulativeUsage): Completed compact responses summarize files read/modified, commands, and generated media (photos, icons, screenshots, WebM/MP4 videos). Verbose JSON includesworkspaceActivityand cumulative token consumption, plus on-demand context compaction (compact: truevia/compact).Photo, Image, Screenshot & Video Generation Support: Full support for
agy's built-inimage-generatorsubagent (generate_image), browser screenshot/video capture (capture_browser_screenshot,browser_subagent,webm_encoder), andffmpeg/sips/goPATH injection (buildSpawnEnv).Native MCP Real-Time Notifications & Eager Tool Loading: Emits
notifications/progressandnotifications/messageon everystep_update, exposesantigravity://sessions/live, and marks all tools with_meta: { "antigravity/alwaysLoad": true }.Full
agy 1.4.0Compatibility:Supports
mode: "auto"(in addition to"plan"and"accept-edits").Supports reasoning
effort: "low" | "medium" | "high" | "xhigh" | "max".Supports multi-directory workspaces (
addDirsvia--add-dir), conversation resumption (conversationIdvia--conversation), and clean model catalog parsing (modelDetails).
๐ Step-by-Step Setup Guide
Step 1: Install Node.js (v18+)
macOS (Homebrew):
brew install nodeOr download the official installer from nodejs.org.
Step 2: Install and Authenticate Google Antigravity CLI (agy)
Install
agyfollowing the official Antigravity CLI documentation.Open your terminal, update to the latest version (
1.4.0+), and sign in:agy --version agy update agy agy models
๐ก Note: If
agyis installed in a custom path outsidePATH, setexport ANTIGRAVITY_AGY_PATH="/path/to/agy".
Step 3: Clone, Build, and Install the Plugin Locally
git clone https://github.com/Lucemz/codex-antigravity-mcp.git
cd codex-antigravity-mcp
npm install
npm run build
npm run install:pluginStep 4: Enable in Codex Desktop
Open Codex Desktop.
Go to Plugins / Marketplace.
Click Add Marketplace / Add Repository and enter:
https://github.com/Lucemz/codex-antigravity-mcpClick Install.
Restart Codex Desktop (
Cmd + Q) or open a New Chat to load the MCP tools.
๐ ๏ธ Available MCP Tools
Tool | Description |
| Checks the local |
| Starts a persistent multi-turn session in |
| Sends a prompt with a default |
| Reads the open live channel from |
| Interrupts an active turn without destroying the session (reconnects via |
| Lists active sessions, state ( |
| Closes and releases a persistent session. |
| Runs a single isolated turn (returning an activity summary and final response) and closes the session automatically. |
Key Parameters
mode:"plan": Read-only inspection and architectural analysis (no file edits)."auto": Automatically approves file edits and safe workspace commands while reviewing external actions."accept-edits": Full write and terminal execution authorization for code changes, git branches, and tests.
waitMs: Live observation window in milliseconds (default20000). If the turn is still running whenwaitMselapses, returns a compact live update ([RUNNING],stateDetail, recent steps,cursor) without stoppingagy.verbose: Settruefor full JSON on status, create, prompt, watch, interrupt, list, and run.compact: Settrueto prefix the turn with/compactand summarize conversation history before executing the prompt.effort:"low" | "medium" | "high" | "xhigh" | "max".skipPermissions:true(default) for autonomous non-blocking execution inside the workspace.subagents:"auto"(default),"required", or"off".model: Defaults toANTIGRAVITY_DEFAULT_MODELorgemini-3.8-flash-high; an explicit model overrides the default. Optional model ID inagy 1.4.0(e.g.,gemini-4-argon-medium,gemini-4-argon-high,gemini-3.8-flash-high,gemini-3.8-flash-medium,claude-sonnet-5-5-high,claude-opus-5-5-high,gpt-oss-120b-medium).conversationId: Optional conversation ID to resume a prior conversation (--conversation).
๐ก Usage Examples in Codex
1. Check Status and Available Models
@Codex Antigravity run antigravity_status and list the available models.2. Full Feature Implementation with Live Channel Supervision (accept-edits)
@Codex Antigravity in /Users/user/projects/my-app:
Create a persistent session in mode "accept-edits".
1. Create a git branch 'feature/live-channel'.
2. Implement the requested code changes.
3. Run the test suite and report live progress as Antigravity works.3. Architectural Audit (plan)
@Codex Antigravity in /Users/user/projects/my-app:
Create a session in mode "plan".
Audit the repository architecture, identify bottlenecks, and return a structured improvement plan without modifying files.๐งช Automated Tests & Validation
npm test
npm run validate:plugin๐ Refreshing the Plugin in Codex
If you update the repository and want to refresh Codex's marketplace cache from scratch:
CODEX=/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex
REPO=/Users/fitzgeraldbendezu/projects/codex-antigravity-mcp
"$CODEX" plugin remove codex-antigravity@codex-antigravity-marketplace
"$CODEX" plugin marketplace remove codex-antigravity-marketplace
git -C "$REPO" fetch --tags origin
git -C "$REPO" checkout main
git -C "$REPO" pull --ff-only origin main
"$CODEX" plugin marketplace add https://github.com/Lucemz/codex-antigravity-mcp --ref main
"$CODEX" plugin add codex-antigravity@codex-antigravity-marketplace๐ License
Released under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Persistent cross-session memory shared by Codex, Claude Code, ChatGPT, and other AI agents.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Related MCP Servers
- AlicenseAqualityBmaintenanceA controlled Model Context Protocol bridge that lets OpenAI Codex delegate work to Google Antigravity CLI on demand, with project-scoped opt-in and read-only delegation.151MIT
- AlicenseAqualityAmaintenanceLets Codex delegate tasks to the Google Antigravity CLI (agy) with background job execution, live progress tracking, a visual dashboard, and structured error diagnostics.8MIT
- AlicenseAqualityCmaintenanceEnables OpenAI Codex to delegate tasks to Google Antigravity CLI, running them headlessly and polling for results.4MIT
- AlicenseAqualityBmaintenanceEnables AI agents to delegate complex coding tasks, refactorings, and automated code reviews to OpenAI Codex and Google Antigravity CLIs, running them autonomously in YOLO mode with process supervision.6MIT