antigravity-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGY_BIN | No | Path or executable name for the Google Antigravity CLI | agy |
| AGY_HUB_URL | No | Target daemon URL for CLI and MCP bridge | http://127.0.0.1:4319 |
| AGY_HUB_HOST | No | Daemon bind host | 127.0.0.1 |
| AGY_HUB_PORT | No | Daemon bind port | 4319 |
| AGY_GEMINI_DIR | No | Global Gemini/Antigravity config root (used for auth sharing & catalog discovery) | ~/.gemini |
| AGY_HUB_DATA_DIR | No | SQLite WAL database, isolated profiles, and temporary upload directory | ~/.local/share/agy-hub |
| AGY_HUB_AUTO_UPDATE | No | Check/run `agy update` in background on daemon startup | false |
| AGY_UPDATE_TIMEOUT_SEC | No | Timeout (seconds) for `agy update` execution | 120.0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Antigravity Agent Hub (project-scoped stdio MCP, 4 domain OP tools: agent / session / mcp / hub).
Uniform OP protocol: Call
<tool>(op='<action>', params={...}); every tool supportsop='help'(optionalparams={'op': '<action>'}) for exact schema.Strict project scope: Every tool is bound to your current project directory (cwd); cross-project agent_id calls fail with 403 PROJECT_SCOPE_VIOLATION.
Start here: Call
agent(op='list')ONCE first to inspect active project agents, defaults, presets, and selectable available_mcps; reuse idle agents before creating.Defaults: model='gemini-4-neon-xhigh', inherit_mcp=false. Global
system_prompt_mode(GET/PUT /api/settings, default 'append') controls new sessions: 'append' layerssystem_promptonto agy's native prompt at standard rate; 'replace' launches--agentto replace the full prompt at higher quota rate (new sessions only). Built-in tools have no per-agent whitelist: express read-only or no-tool limits once insystem_prompt(applied to every turn automatically).Async send & compact:
agent(op='send')defaults to interrupt=true, wait=false and returnswait_command(agy-agent wait <agent_id> --turn <turn_id>— run in shell instead of polling). Usesession(op='compact')to compress long sessions.External MCP control: Use
mcp(op='catalog|status|start|stop|reconnect')to toggle or hot-reconnect Agent MCPs with immediate agy acp prewarm (running agents stay protected with 409 AGENT_BUSY / skipped_running_ids unless interrupt=true). Anti-recursion: self-referencing agy-hub/agy-mcp servers are auto-skipped underinherit_mcp=trueand rejected (400 RECURSIVE_MCP_FORBIDDEN) if explicitly mounted.Full reference: Call
hub(op='guide')or open http://127.0.0.1:4319/help (http://127.0.0.1:4319/help?format=md).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| agentA | Manage persistent project-scoped Agents: inspect project overview, create/update configs, dispatch async prompts, inspect turns, and control Agent lifecycle. Call with op=, params={...} (use op='help' for full schema):
|
| sessionA | Manage multi-session conversation history and in-place context compaction for Agents in the current project. Call with op=, params={...} (use op='help' for full schema):
|
| mcpA | Inspect and control external MCP servers mounted on current-project Agents: 5-file catalog discovery, per-MCP start/stop (config preserved), single-Agent or batch reconnect with immediate agy acp prewarm. Call with op=, params={...} (use op='help' for full schema):
|
| hubA | Query Hub guide, real-time Antigravity quota usage, available models, and reusable Agent role presets. Call with op=, params={...} (use op='help' for full schema):
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The four top-level tools cover distinct domains: sessions, agents, MCP servers, and hub metadata/presets. Some overlap remains between session management and agent turn history (agent.messages accepts session_id), and MCP config appears both in agent updates and mcp operations, but the boundaries are mostly clear.
All four tool names are lowercase single-noun domain labels (session, agent, mcp, hub), giving a highly predictable top-level naming pattern. The sub-operations also mostly follow lowercase snake_case, with only minor noun/verb variation inside each dispatcher.
Four tools is a sensible top-level grouping for a meta-server, but each tool multiplexes 6-10 operations, so the effective surface is around 28 actions. This is appropriate but quite heavily bundled, making individual operations less discoverable than separate tools would be.
The set covers the core lifecycle well: session list/create/switch/compact, agent create/update/send/cancel/close/reopen/delete, MCP catalog/status/start/stop/reconnect, and hub guide/usage/models/presets. Minor gaps remain, such as session rename/delete and preset update/delete/get beyond preset_list and preset_create.