agy-mcp
Lets Claude Code use Google's Antigravity CLI (agy) to review plans or execute them in isolated git worktrees, with safety controls like secret scanning.
README
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.
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 build
Register 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 review - new-conversation creation is serialized server-wide to avoid a conversation-id race
askandexecutesessions can't be resumed across each other- a 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 authenticated - Git (for
agy_execute's worktree isolation)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.