← Back to Leaderboard
Apoliucode

poliucode/antigravity-codex-mcp

Local Python MCP bridge for delegating and monitoring Codex jobs in Antigravity

View on GitHub ↗
Engineering Health (Methodology)
A+ · 89/100
Maintenance Activity
● Updated today
Latest Release
v2.2.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption14/25
Release Cadence20/20
License Clarity20/20
MCPCLILocal AI
Total Stars
★ 63
24h Growth
+7
7d Growth
+63
Forks
10

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

poliucode/antigravity-codex-mcp Star History (2026-11-27 - 2026-12-04) DAILY STAR HISTORY (8-DAY D1 TELEMETRY) +62 in 7d · avg +9/day 67 34 0 2026-11-27: ★ 12026-11-28: ★ 12026-11-29: ★ 62026-11-30: ★ 252026-12-01: ★ 482026-12-02: ★ 542026-12-03: ★ 632026-12-04: ★ 63 ★ 63 11-27 11-30 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

run_server.py is the Python 3.11+ MCP stdio entry point; pyproject.toml declares no third-party runtime dependencies. The codex_mcp/ package separates the Codex client, executable discovery, Git auditing and telemetry. Antigravity's Executor calls the MCP tools, and the bridge launches the local codex app-server --stdio subprocess and exchanges JSON-RPC messages with it. The Planner/Executor split remains in Antigravity, guided by the optional Rule and Skill templates.

The MCP surface separates model-facing tools from app-only polling and exposes the monitor as ui://dashboard.html. This split keeps dashboard refresh traffic out of the model conversation while giving the host UI access to task progress, telemetry, health and quota. The local Codex process owns authentication and upstream network communication; the Python process is a protocol bridge, not a model runtime or an HTTP proxy.

Key Capabilities & Differentiators

The tools cover read-only questions and review, serial coding tasks in a specified working directory, model discovery, and thread inspection, closure and reset. Coding results include changed_files and diff_stat. Model discovery returns the models, reasoning levels and defaults available through the installed Codex client rather than a fixed model catalog or a separate provider backend.

Long work can start asynchronously or continue after the synchronous wait expires. codex_ask and codex_run_task default to a 120-second wait, capped at 150 seconds, and return status="running" plus a job_id before the documented 180-second MCP timeout. Status calls support long polling, and running jobs can be cancelled. The dashboard reads five-hour and weekly quota windows through account/rateLimits/read with a 60-second cache, alongside seven-day telemetry. The execution sidebar shows progress, steps and changed-file chips without bringing the full dashboard into the task view.

Trade-offs & Limitations

Compared with running Codex directly in a terminal, this bridge adds structured job control, change summaries and host-side visibility, but also adds a subprocess and makes compatibility depend on both the installed Codex app-server protocol and the host's MCP App support. App rendering, sidebar placement and tool-only polling should be validated in the intended host rather than assumed from MCP tool support alone. A multi-provider integration is a better fit when backend switching matters more than Codex-specific thread and quota controls.

The bridge runs locally, but inference still uses OpenAI through Codex. A local JSONL history and direct protocol access do not imply offline operation or exemption from service terms and quotas. For write-capable tasks, review the sample approval settings, constrain the working directory, and verify the effective Codex permissions before enabling automatic delegation. Protect the telemetry file as local operational data; its location is configurable independently of Codex authentication.

Hardware & Deployment Guide

Install Python 3.11+ and an official Codex client with working login, then register the absolute path to run_server.py under mcpServers in ~/.gemini/config/mcp_config.json. Run python run_server.py --doctor to check the environment; set CODEX_BIN if discovery does not find the intended executable. Copy the optional Orchestrator Rule and Skill into the corresponding directories under ~/.gemini/config/, then refresh or restart the host's MCP servers.

Standard launch from the checkout does not require pip install. UI changes under ui/src/ use cd ui && npm install && npm run build; the Python tests use python -m unittest discover -s tests -v. CODEX_ALLOW_API_KEY=1 enables the official API-key billing path. Operationally, v2.0.0 added live protocol-health verification, v2.1.0 separated the execution sidebar from the global dashboard, and v2.2.0 expanded the visual status indicator to seven execution phases.

Protocol: run_server.py bridges MCP over stdio to the local Codex app-server over JSON-RPC with no third-party Python runtime dependencies.
Job lifecycle: The 120-second default synchronous wait is capped at 150 seconds; jobs that outlast it return a job_id for polling or cancellation.
Change reporting: codex_run_task accepts a working directory and returns structured changed_files and diff_stat fields.
Quota visibility: account/rateLimits/read supplies five-hour and weekly quota windows through an app-only tool with a 60-second in-memory cache.
Host UI: The execution sidebar stays focused on the current or most recent task, while the dashboard shows quota, seven-day telemetry and thread controls.
Operations: --doctor checks the environment, CODEX_BIN selects the executable explicitly, and CODEX_TELEMETRY_FILE overrides the local JSONL path.
Best For

Antigravity Orchestrator users who already run official Codex and want structured delegation, reviewable change summaries and in-host monitoring for long coding jobs.

Skip If

You need offline inference, interchangeable model providers, or only a manually supervised terminal session.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLILocal AI
flowchart LR
    subgraph AGY["Google Antigravity (Orchestrator)"]
        P["Planner (强推理规划)<br/>读取 codex-orchestrator Rule"]
        E["Executor (轻量执行/验收)<br/>遵循 codex-orchestration Skill"]
        UI["右侧辅助面板<br/>Codex Monitor (3D 粒子球 · 中英切换)"]
    end

    subgraph MCP["antigravity-codex-mcp (零依赖 Python)"]
        SRV["run_server.py<br/>MCP Tools + ui://dashboard.html"]
        PKG["codex_mcp/ 模块包<br/>client · discovery · git_audit · telemetry"]
    end

    CODEX["本机 OpenAI 官方 Codex<br/>codex app-server --stdio<br/>(官方进程直连,零代理)"]

    P -->|"拆解并委派复杂编码 / 评审"| E
    E <-->|"MCP stdio (精简 JSON 省 Token)"| SRV
    SRV <--> UI
    SRV <--> PKG
    PKG <-->|"官方本地 JSON-RPC"| CODEX

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
antigravity-codex-mcp ★63+63TypeScriptMITLocal Python MCP bridge for delegating and monitoring Codex jobs in Antigravity
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
context765.8k+333TypeScriptMITA hosted documentation index with MCP and CLI access for coding agents
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/poliucode/antigravity-codex-mcp.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

poliucode/antigravity-codex-mcp Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about antigravity-codex-mcp

What runs between Antigravity and Codex, and where is authentication handled?

Antigravity launches run_server.py as an MCP stdio server. The Python bridge starts the installed codex app-server --stdio process and exchanges JSON-RPC messages with it. Codex manages authentication and communication with OpenAI. The optional Rule and Skill guide Orchestrator delegation; the bridge does not independently schedule the Planner and Executor.

Does the bridge need a GPU, and what should I measure to size it?

The bridge uses Python 3.11+ with no third-party runtime dependencies and does not host model weights. No local GPU or VRAM requirement is specified for the bridge. For capacity planning, measure the Python process, the Codex child process, and whatever builds or tests your tasks invoke. The repository provides no resource benchmarks or throughput targets.

Can we use it commercially and keep all processing on our own machines?

The bridge is MIT-licensed and can run locally for commercial use, subject to the license terms. That license does not cover Codex access, subscription entitlements, API billing, or permission to send organizational code to an external service. Telemetry is stored locally by default, but local telemetry is not the same as offline execution or local-only processing of task data.

When is the bridge preferable to running Codex directly?

Use the Codex CLI directly for interactive work when an operator can supervise the session and does not need MCP integration. Add the bridge when Antigravity needs structured task results, background job polling and cancellation, or an in-host monitor. If switching among providers is a hard requirement, choose a multi-provider integration instead: this bridge discovers models through Codex, not through interchangeable backend adapters.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining poliucode/antigravity-codex-mcp? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature poliucode/antigravity-codex-mcp on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare