agy-mcp
Click on "Deploy 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., "@agy-mcp Ask agy to review my refactoring plan"
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.
agy-mcp
An MCP server that lets Claude Code drive agy (Google's Antigravity CLI) as a tool — for a second opinion, or to actually execute a plan.
Why
Claude Code writes the plan; agy (a separate model/agent) either reviews it (agy_ask) or executes it (agy_execute) in its own isolated git worktree. Session state (which agy conversation maps to which of our sessions) is kept in a small SQLite database, so both tools support multi-turn conversations.
Related MCP server: agy MCP Server
Tools
agy_ask(prompt, session_id?, conversation_id?, workspace?)— Read-only. Runsagyin--mode plan(it cannot edit files). Passsession_idto continue a conversation this server started, orconversation_idto adopt an existingagyCLI conversation (e.g. one you started in your own terminal — this does not work for Antigravity IDE conversations, which use a separate store).agy_execute(plan, session_id?, conversation_id?, workspace?)— Handsagyfull write access (--dangerously-skip-permissions) inside a fresh git worktree, never the real working tree. Changes are auto-committed to a branch (agy/<short-id>) so they survive even if the worktree is later removed — unless the pre-commit secret scan blocks it (see below). Disabled unlessAGY_MCP_ALLOW_EXECUTE=1is set in the server's environment.agy_list_sessions()— Lists all known sessions with status, workspace, and worktree path.agy_close_session(session_id, remove_worktree?)— Closes a session. By default the worktree/branch are left on disk for manual review;remove_worktree: truedeletes the worktree (irreversible for anything not committed).
Setup
npm install
npm run buildRegister it with Claude Code (e.g. in ~/.claude.json, alongside your other mcpServers):
"agy-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/agy_mcp/dist/index.js"],
"env": { "AGY_MCP_ALLOW_EXECUTE": "1" }
}Omit AGY_MCP_ALLOW_EXECUTE to keep agy_execute disabled and only allow agy_ask (read-only).
Safety notes
agy_execute isolates the git working tree (via a worktree) but does not sandbox the filesystem or network — see PILOT_TEST_REPORT.md for the audit that drove the current mitigations:
child process env is allowlisted (
PATH,HOME,TMPDIR,LANG,LC_ALLonly — no inherited secrets)a pre-commit scan blocks commits containing likely secrets (AWS/GitHub/Slack key shapes, private key headers,
.env-style filenames) and leaves the worktree untouched for manual reviewnew-conversation creation is serialized server-wide to avoid a conversation-id race
askandexecutesessions can't be resumed across each othera timed-out
agyprocess (and its subprocess tree) is killed, not left orphaned
None of this replaces running agy_execute in a disposable, credential-free, egress-restricted environment for anything beyond low-stakes local use — see the report's "Conditional pilot controls" for the full checklist.
Requirements
Node.js ≥ 22.5 (uses the built-in
node:sqlite)The
agyCLI onPATH(override withAGY_BIN), already authenticatedGit (for
agy_execute's worktree isolation)
Available Tools
4 toolsagy_askA
Ask agy (Antigravity CLI) a question or for a second opinion. Read-only: agy runs in --mode plan and cannot edit files. Pass session_id to continue a prior conversation with full context; omit it to start a new one. Alternatively pass conversation_id to adopt an existing agy CLI conversation (e.g. one you started in your own terminal) that this server didn't create — note this only works for agy CLI conversations, not Antigravity IDE ones.
Inputs: prompt (required), workspace, session_id, conversation_id.
agy_close_sessionA
Close a session. By default this only marks it closed and leaves any worktree/branch on disk for manual review; pass remove_worktree=true to also delete the worktree (irreversible, discards any uncommitted changes in it).
Inputs: session_id (required), remove_worktree.
agy_executeA
Hand a plan/sprint to agy (Antigravity CLI) to execute with full file-write permissions. Runs inside an isolated git worktree (never the real working tree) so changes can be reviewed before merging. Pass session_id to continue a prior execute session in its existing worktree; omit it to start a new one. Alternatively pass conversation_id to adopt an existing agy CLI conversation (e.g. one you started in your own terminal) into a fresh worktree — note this only works for agy CLI conversations, not Antigravity IDE ones. Requires AGY_MCP_ALLOW_EXECUTE=1 in the server's environment.
Inputs: plan (required), workspace, session_id, conversation_id.
agy_list_sessionsA
List known agy sessions (both ask and execute) with their status, workspace, and worktree path.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clear, distinct purpose: ask is read-only Q&A, execute is write-capable task execution in an isolated worktree, list_sessions enumerates sessions, and close_session terminates them. There is no meaningful overlap; even ask and execute are sharply differentiated by their mode and permissions.
All tools share the agy_ prefix and use imperative verbs, but agy_ask and agy_execute omit an explicit object while agy_list_sessions and agy_close_session include one. The pattern is predictable and readable, with only a minor inconsistency in verb-phrase structure.
Four tools is on the lean side but appropriate for a focused server that wraps agy CLI session management. Each tool covers a distinct operation (ask, execute, list, close), so none feel redundant or missing.
The tool set covers the full session lifecycle: start an ask or execute session, continue one via session_id, list all sessions, and close/delete them. Minor gaps exist (no dedicated 'get session details' tool, no way to modify a session's plan), but list_sessions provides sufficient visibility and the ask/execute tools accept session_id to continue, so agents can work around these.
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Lets coding agents check their own code for leaked secrets, risky dependencies and AI-code mistakes
Related MCP Servers
- AlicenseAqualityBmaintenanceWraps Google Antigravity CLI into 11 typed MCP tools, enabling any MCP client to invoke agy for code review, prototyping, execution, and long-running tasks.1173 PyPI26MIT
- AlicenseAqualityDmaintenanceEnables Claude to drive the Antigravity agent by running prompts through the agy CLI non-interactively, supporting session management and optional sandboxed execution.51ISC
- AlicenseAqualityDmaintenanceAllows Claude Code to request an independent code review from Google Antigravity (Gemini, Claude, or GPT-OSS) via the Antigravity CLI, providing a second opinion on plans or diffs.1145 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude Desktop to execute tasks via the Google Antigravity CLI (agy), exposing its models, skills, plugins, and background workers as native tools.13MIT