Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGY_BINNoPath or executable name for the Google Antigravity CLIagy
AGY_HUB_URLNoTarget daemon URL for CLI and MCP bridgehttp://127.0.0.1:4319
AGY_HUB_HOSTNoDaemon bind host127.0.0.1
AGY_HUB_PORTNoDaemon bind port4319
AGY_GEMINI_DIRNoGlobal Gemini/Antigravity config root (used for auth sharing & catalog discovery)~/.gemini
AGY_HUB_DATA_DIRNoSQLite WAL database, isolated profiles, and temporary upload directory~/.local/share/agy-hub
AGY_HUB_AUTO_UPDATENoCheck/run `agy update` in background on daemon startupfalse
AGY_UPDATE_TIMEOUT_SECNoTimeout (seconds) for `agy update` execution120.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).

  1. Uniform OP protocol: Call <tool>(op='<action>', params={...}); every tool supports op='help' (optional params={'op': '<action>'}) for exact schema.

  2. Strict project scope: Every tool is bound to your current project directory (cwd); cross-project agent_id calls fail with 403 PROJECT_SCOPE_VIOLATION.

  3. Start here: Call agent(op='list') ONCE first to inspect active project agents, defaults, presets, and selectable available_mcps; reuse idle agents before creating.

  4. Defaults: model='gemini-4-neon-xhigh', inherit_mcp=false. Global system_prompt_mode (GET/PUT /api/settings, default 'append') controls new sessions: 'append' layers system_prompt onto agy's native prompt at standard rate; 'replace' launches --agent to 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 in system_prompt (applied to every turn automatically).

  5. Async send & compact: agent(op='send') defaults to interrupt=true, wait=false and returns wait_command (agy-agent wait <agent_id> --turn <turn_id> — run in shell instead of polling). Use session(op='compact') to compress long sessions.

  6. 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 under inherit_mcp=true and rejected (400 RECURSIVE_MCP_FORBIDDEN) if explicitly mounted.

  7. 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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):

  • list(status?, created_by?, include_closed?): Return compact live snapshot of current project's active agents, defaults, presets, and selectable available_mcps.

  • create(name?, preset_id?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Create a persistent Agent strictly bound to the current project cwd.

  • update(agent_id, name?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Update an idle project Agent's model, prompt, or MCP config.

  • send(agent_id, prompt, interrupt?, wait?, timeout_sec?): Dispatch a prompt asynchronously (default interrupt=true, wait=false) and return turn_id + wait_command.

  • messages(agent_id, session_id?, turn_id?, limit?, include_trace?): Read turn history and optional trace records for a project Agent.

  • cancel(agent_id, reason?): Cancel a project Agent's currently running turn.

  • close(agent_id): Close a project Agent (stops agy process & profile, preserves history).

  • reopen(agent_id): Reopen a closed project Agent (rebuilds isolated profile & marks idle).

  • delete(agent_id): Permanently delete a project Agent, its isolated profile, and history.

  • help(op?): Return single-source parameter specs and examples for agent ops.

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):

  • list(agent_id, q?): List an Agent's Hub-scoped conversation sessions (optional keyword q).

  • create(agent_id, title?): Create and activate a new blank conversation session for an idle Agent.

  • switch(agent_id, session_id): Switch an idle Agent's active conversation session.

  • compact(agent_id, focus?, wait?, timeout_sec?): Compact an idle Agent's active session context in-place into a durable checkpoint summary.

  • help(op?): Return single-source parameter specs and examples for session ops.

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):

  • catalog: Discover read-only MCP servers across 5 config files for the current project (marking self-referencing servers with blocked_reason).

  • status(agent_id?, name?): Inspect mounted MCP status: pass agent_id (optional name) for one Agent, or omit agent_id (optional name) for current-project runtime groups.

  • start(agent_id, name, interrupt?): Start a stopped mounted MCP on an Agent, rebuild profile from latest disk config, and immediately prewarm fresh agy acp.

  • stop(agent_id, name, interrupt?): Stop a mounted MCP on an Agent (preserving config), write disabled shadow, and immediately prewarm fresh agy acp.

  • reconnect(agent_id?, name?, interrupt?): Reconnect MCPs with latest disk config & immediate agy acp prewarm: (agent_id, name?) for one Agent, or (name) to batch-reconnect current project.

  • help(op?): Return single-source parameter specs and examples for mcp ops.

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):

  • guide: Return the full AI & human usage guide Markdown and tool_count.

  • usage(refresh?): Query real-time Antigravity quota usage (5h & Weekly remaining %).

  • models(refresh?): List available Antigravity models and the configured default model.

  • preset_list(created_by?, include_prompt?): List reusable Agent role presets (compact summaries by default).

  • preset_create(name, description?, model?, system_prompt?, inherit_mcp?, catalog_refs?, mcp_servers?, mcp_server_names?): Create a reusable Agent role preset in the current project.

  • help(op?): Return single-source parameter specs and examples for hub ops.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 4 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityNo data
ResponsivenessOutdated data