Antigravity Codex MCP
Antigravity Codex MCP
OpenAI Codex가 요청 시 Google Antigravity CLI에 작업을 위임할 수 있게 해주는 제어된 Model Context Protocol 브리지입니다.
이 브리지는 사용자가 Codex에게 AGY를 사용하도록 명시적으로 요청하기 전까지 유휴 상태를 유지합니다. 그런 다음 정확한 현재 프로젝트에만 권한을 부여하고, 프로젝트 범위의 대화를 유지하며, 사용자에게 표시되는 대화를 동기화하고, 생성된 구현 변경 사항을 격리된 복사본에 한정합니다.
이는 독립적인 커뮤니티 프로젝트입니다. Google 또는 OpenAI와 제휬하거나 보증하지 않습니다.
주요 기능
명시적 옵트인: 사용자가 요청하지 않는 한 Codex는 AGY를 활성화하거나 호출할 수 없습니다.
정확한 프로젝트 범위: 광범위한 루트 및 시스템 디렉터리는 거부됩니다.
기본적으로 읽기 전용 위임: AGY 쓰기, 명령, URL 또는 MCP 권한이 부여되지 않습니다.
프로젝트 대화: 활성 대화 ID와 위임 기록은 새 Codex 작업에서도 유지됩니다.
표시 가능한 대화록 동기화: AGY CLI를 통해 입력된 메시지는 다음 동기화 시 Codex에서 사용할 수 있습니다.
비공개 추론 필터: thinking/reasoning 필드, 시스템 메시지 및 체크포인트는 영구 저장 또는 MCP 반환 전에 제외됩니다.
격리된 구현: 검증된 전체 파일 교체는 일회용 프로젝트 복사본에만 적용됩니다.
감사 가능한 실행: 응답, 변경 파일 매니페스트, 검증 출력 및 정리된 도구 이벤트가 로컬에 보존됩니다.
Related MCP server: Antigravity Delegate MCP
요구 사항
Node.js 20 이상
Antigravity CLI를 인증하고 agy를 사용할 수 있는지 확인합니다.
agy --version
agy -p "Reply exactly: AGY_OK" --output-format jsonagy가 PATH에 없으면 MCP 구성에서 AGY_BIN을 실행 파일 경로로 설정합니다.
설치
git clone https://github.com/ustc-fyk/antigravity-codex-mcp.git
cd antigravity-codex-mcp
npm ci
npm testCodex config.toml에 서버를 추가합니다. 예제 경로를 사용자 컴퓨터의 절대 클론 경로로 바꿉니다.
[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'macOS 또는 Linux에서는 해당하는 절대 POSIX 경로를 사용하고, agy가 PATH에 있으면 일반적으로 AGY_BIN을 생략합니다.
포함된 Codex Skill을 설치하여 Codex가 옵트인 워크플로를 따르도록 합니다.
$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" $skillRootMCP 구성을 변경하거나 Skill을 설치한 후 Codex를 다시 시작합니다.
사용법
Codex에서 프로젝트 디렉터리를 엽니다.
정상적으로 작업합니다. AGY 브리지는 유휴 상태를 유지합니다.
명시적으로 요청합니다:
Load AGY and review this project.Codex는 해당 정확한 프로젝트에 대한 읽기 액세스를 활성화하고 AGY 대화를 시작하거나 재사용합니다.
Codex는 분석, 검토, 계속 또는 격리된 구현을 적절하게 위임합니다.
Disable AGY for this project를 요청하면 로컬 감사 기록을 유지하면서 정확한 프로젝트 권한을 취소합니다.
동일한 대화를 직접 검사하거나 참여하려면:
agy --conversation=<conversation_id>AGY CLI를 통해 메시지를 보낸 후 Codex에 sync the AGY conversation을 요청하세요. antigravity_continue는 모든 후속 작업 전후에도 동기화합니다. 동기화는 실시간 푸시 채널이 아닌 요청 시 수행되므로 Codex와 AGY CLI에서 동시에 보내지 마십시오.
MCP 도구
영역 | 도구 |
상태 및 수명 주기 |
|
대화 |
|
표시 가능한 대화록 |
|
격리된 구현 |
|
모델 호출은 시작, 요청, 계속, 검토 및 실행 도구를 통해서만 발생합니다. 상태, 기록, 실행 검사 및 대화록 동기화는 AGY 모델 턴을 소비하지 않습니다.
프로젝트 로컬 상태
활성화된 각 프로젝트는 무시되는 로컬 상태 디렉터리를 받습니다.
.antigravity-mcp/
├── project.json
├── sessions.jsonl
├── transcripts/
│ └── <conversation-id>.jsonl
└── runs/
└── <run-id>/
├── metadata.json
├── events.jsonl
├── response.md
└── workspace/project.json은 옵트인 상태와 활성 대화를 기록합니다.sessions.jsonl은 위임된 호출과 토큰 사용량을 기록합니다.transcripts에는 표시 가능한 사용자/어시스턴트 레코드와 정리된 도구 추적만 포함됩니다.runs에는 격리된 구현 작업 공간과 감사 결과가 포함됩니다.
이 디렉터리는 소스 복사본에서 제외되며 Git에서 무시됩니다. 개인 프로젝트 또는 대화 데이터가 포함될 수 있으므로 수동으로 커밋하지 마십시오.
안전 모델
프로젝트 활성화는 정확한 루트만 Antigravity trustedWorkspaces 및 read_file(...) 허용 규칙에 원자적으로 추가합니다. 비활성화는 정확한 항목만 제거합니다.
격리된 구현은 다음을 거부합니다.
절대 경로 및 상위 디렉터리 탐색
파일 삭제
비밀 파일, 종속성, 빌드 출력, 메타데이터 및 심볼릭 링크
50개 이상의 변경된 파일
2,000,000자를 초과하는 교체 문자
대화록 파이프라인은 프로젝트 미러를 작성하기 전에 비공개 추론 필드를 재귀적으로 제거하고 시스템/체크포인트 레코드를 제외합니다. 보고 지침 및 제한 사항은 SECURITY.md를 참조하십시오.
개발
npm ci
npm test
npm run smoke:mcp라이브 검사에는 인증된 AGY CLI가 필요하며 모델 할당량을 소비합니다.
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는 자체 포함됩니다. smoke:mcp는 로컬 AGY 바이너리도 확인하는 반면, 나머 스모크 테스트는 프로젝트 권한을 변경하거나 할당량을 소비할 수 있습니다.
라이선스
Available Tools
15 toolsantigravity_askDelegate a new analysis to AntigravityARead-only
Start a new read-only AGY analysis conversation for an enabled project and persist it as active.
Inputs: prompt (required), project_root (required), model, effort, +2 more.
antigravity_continueContinue a project AGY conversationBRead-only
Continue a specified conversation or the project's active AGY conversation and persist the result.
Inputs: prompt (required), project_root (required), model, effort, +3 more.
antigravity_disable_projectDisable AGY for one projectAIdempotent
Remove only one project's exact Antigravity trusted workspace and read_file rule, mark it disabled, and preserve all local session and run history.
Inputs: project_root (required).
antigravity_enable_projectEnable AGY for one projectAIdempotent
Initialize .antigravity-mcp in one exact project root and atomically add only that root to Antigravity trustedWorkspaces and read_file allow rules. Call only after the user explicitly requests AGY. Does not call a model.
Inputs: project_root (required).
antigravity_executeExecute a task in an isolated AGY workspaceA
For an enabled project, ask AGY for schema-validated file replacements, apply only validated paths to a disposable copy, optionally run one fixed verification, and never merge into source.
Inputs: task (required), project_root (required), model, effort, +4 more.
antigravity_get_active_sessionGet active project AGY sessionARead-onlyIdempotent
Return the active AGY conversation ID for a project without calling a model.
Inputs: project_root (required).
antigravity_get_runInspect an isolated AGY runARead-onlyIdempotent
Read one project's run response, token usage, verification output, changed-file manifest, and optional external events.
Inputs: run_id (required), project_root (required), max_events, include_events.
antigravity_get_transcriptRead a visible AGY transcriptAIdempotent
Refresh and return the bounded project-local user/assistant/tool transcript for a registered AGY conversation. Internal thinking, system messages, and checkpoints are never returned.
Inputs: project_root (required), refresh, max_chars, max_records, +1 more.
antigravity_healthCheck Antigravity bridgeARead-onlyIdempotent
Check the configured agy binary and bridge version without enabling a project or consuming a model turn.
Inputs: no named parameters.
antigravity_list_runsList isolated AGY runsARead-onlyIdempotent
List recent isolated execution runs for one project.
Inputs: project_root (required), limit.
antigravity_list_sessionsList project AGY session eventsARead-onlyIdempotent
List recent persisted AGY delegation and conversation events for one project without calling a model.
Inputs: project_root (required), limit.
antigravity_project_statusCheck AGY project statusARead-onlyIdempotent
Check whether one exact project root is initialized, trusted, read-authorized, and linked to an active AGY conversation. Does not call a model.
Inputs: project_root (required).
antigravity_reviewRequest an independent Antigravity reviewBRead-only
Start a read-only evidence-oriented review for an enabled project and persist the conversation.
Inputs: target (required), project_root (required), focus, model, +3 more.
antigravity_start_sessionStart a project AGY sessionBRead-only
Create a new AGY conversation for an enabled project, save it as active, and return its conversation ID. Consumes one Antigravity model turn.
Inputs: project_root (required), model, effort, prompt, +2 more.
antigravity_sync_conversationSync an AGY conversationAIdempotent
Read the official AGY transcript for a conversation registered to this project, filter internal thinking/system/checkpoint records, and update the project-local visible transcript mirror. Does not call a model.
Inputs: project_root (required), max_chars, include_all, max_records, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool has a clearly distinct purpose: project lifecycle (enable, disable, status), session management (start, get active, sync, transcript), conversation actions (ask, continue, review), and execution (execute, get run). No two tools appear to perform the same function; even the conversation-related tools are differentiated by mode (read-only analysis, continuation, review).
All tools follow a consistent verb_noun pattern with the 'antigravity_' prefix (e.g., list_sessions, enable_project, get_transcript). The naming is uniform and predictable, making it easy for an agent to infer tool purpose from the name alone.
15 tools is well-scoped for a server that manages AGY sessions, project configuration, transcripts, and executions. Each tool covers a distinct operational need without redundancy, and the count is within the ideal range for a feature-complete MCP server.
The tool surface covers the full lifecycle: project enable/disable/status, session creation and retrieval, transcript syncing and retrieval, conversation actions (ask, continue, review), and execution management (execute and get_run). No obvious gaps exist—both administrative and interactive workflows are supported.
Maintenance
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
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
A paid remote MCP for OpenAI Codex memory MCP, built to return verdicts, receipts, usage logs, and a
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.14249 PyPI17MIT
- AlicenseNot gradedqualityCmaintenanceA local-STDIO MCP server that lets Codex invoke the Antigravity CLI from any project, with project-owned routing guidance and enforceable policies.MIT
- AlicenseAqualityDmaintenanceEnables OpenAI Codex to delegate tasks to Google Antigravity CLI, running them headlessly and polling for results.41MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex users to delegate engineering, refactoring, auditing, and test execution tasks to Google Antigravity CLI as a persistent autonomous subagent, with tools for managing sessions and running prompts.1MIT