agy-relay
Invokes the Google Antigravity CLI (agy) as a configurable subagent on the user's authenticated Antigravity subscription: live agy models discovery with caching, named model presets and effort levels (low..max), read-only/write sandbox modes with git-worktree fingerprint verification, quota-aware fallback chains, and per-run skill/MCP/blackboard injection.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agy-relay
MCP + HTTP relay server that lets Claude Code invoke Google Antigravity (agy) as a configurable subagent using your authenticated Antigravity subscription.
Prerequisites
Node.js
>= 20Google Antigravity CLI (
agy) installed onPATH(or in its default user install folder) and signed in (agy modelssucceeds)Claude Code (CLI or IDE extension)
Related MCP server: agy-mcp
Quick Install
Clone or copy agy-relay anywhere on disk, then run the installer from the checkout:
# macOS / Linux / Git Bash (installs MCP server + bundled skills in user scope)
./install.sh
# Include Orchestrator enforcement hooks and CLAUDE.md routing section
./install.sh --hooks --claude-md
# Project-scoped install (.mcp.json + .claude/skills + optional .claude/settings.local.json)
./install.sh --scope project --project /path/to/repo --hooks --claude-mdOn Windows PowerShell:
# Default user-scope install (MCP server + bundled skills)
.\install.ps1
# With optional hooks (enforce|advisory|off) and CLAUDE.md routing section
.\install.ps1 --hooks --hook-mode enforce --claude-md
# Project-scoped install
.\install.ps1 --scope project --project D:\work\my-appIf script execution is blocked, run it as powershell -ExecutionPolicy Bypass -File .\install.ps1 (arguments follow the file name).
The scripts do not change directory: relative --project, --claude-dir and --claude-json values (and the default project, your current directory) resolve against where you ran them. Dependencies are installed by the node installer itself (skipped for --dry-run).
Project scope notes:
.mcp.jsonholds an absolute path to this checkout (<agy-relay>/bin/agy-relay.mjs), so think twice before committing it; teammates need their own install.Hooks also contain machine-absolute paths, so project scope writes them to
.claude/settings.local.json(not the committed.claude/settings.json).
Re-running the installer is idempotent: unchanged files are neither rewritten nor backed up, and every file it does change is first copied to a never-overwritten <file>.bak-<timestamp> (a -1, -2 suffix is added on collisions). Uninstall removes only what install added: our hook commands (matched by path inside this checkout, or an old agy-relay copy), the MCP entry, the CLAUDE.md section, bundled SKILL.md files that are still unmodified (the skill dir only if then empty), and env.AGY_RELAY_HOOK_MODE only if install wrote it (tracked in <data dir>/install-state.json).
Note: when --hook-mode <enforce|advisory|off> is supplied with --hooks, agy-relay writes AGY_RELAY_HOOK_MODE into settings.json under "env" on both Windows and POSIX so hook commands stay shell-neutral.
Doctor, Uninstall & CLI Usage
# Verify Node, agy CLI + models, MCP wiring, hooks, and skills
npm run doctor
# or: node bin/agy-relay.mjs doctor [--scope project --project /path/to/repo]
# Preview changes without touching disk
node bin/agy-relay.mjs install --dry-run --hooks --claude-md
# Uninstall agy-relay entries (preserves unrelated MCP servers, hooks, and modified skills)
node bin/agy-relay.mjs uninstall
node bin/agy-relay.mjs uninstall --scope project --project /path/to/repo
# Run test suite
npm test
# Start standalone HTTP + Streamable HTTP MCP server
node bin/agy-relay.mjs serve --port 4788
# One-shot CLI dispatch
node bin/agy-relay.mjs dispatch --preset scout --cwd /path/to/repo --task "Summarize auth flow"Environment Variables
Variable | Default | Purpose |
|
| Directory for run logs, model/quota caches, preset overrides, and blackboards |
|
| Directory for base |
|
| Hook behavior in |
| (none) | Extra directories (separated by |
|
| Custom Claude Code config dir (when set, user MCP config defaults to |
Features
Dual Interface & Live Operations Dashboard:
MCP Server (stdio) registered directly in Claude Code (
agy-relay mcp), exposing typed tools withcompact: truelean return payloads andresponseStyle: "terse"default so Antigravity subagents never waste tokens writing human prose.Live Subagent Dashboard (
http://127.0.0.1:4788/) showing every active worker, the exact tool step it is executing right now, full step-by-step inside-work trace, MCP guard denials, shared context blackboards, and estimated Claude tokens saved in real time via SSE (/api/events).Companion Claude Skills & Enforced Hook: bundled in
claude/skills/agy-conserve/SKILL.md(token-conservation routing & compact dispatch workflow) andclaude/skills/agy-relay/SKILL.md(full relay reference), plus<agy-relay>/bin/claude-hook.mjswired intosettings.json(UserPromptSubmit+PreToolUsehard-blocking inline project edits, large unbounded reads >=12 KB, and >3 exploration calls/turn; per-turn bypass via#inlineor"do it yourself", orAGY_RELAY_HOOK_MODE=advisory|off).
Flexible Model Presets & Effort (
low | medium | high | xhigh | max):Live
agy modelsdiscovery with caching & refresh.Named presets (
quick,scout,review,implement,ui-craft,deep,architect,orchestrator) inconfig/presets.json, plus runtime CRUD (agy_presets) persisted indata/presets.user.json.Safe by default (
read-onlysandbox + git worktree fingerprint verification); write-enabled presets or explicitmode: "write"opt in intentionally.Quota-aware automatic fallback chains with cooldown tracking (
data/quota.json).
Hybrid Skill Auto-Router & Injector:
Indexes skills from
~/.claude/skills,~/.agents/skills,~/.gemini/config/skills,<repo>/.claude/skills, and<repo>/.agents/skills.Scores relevance against task prompt, target file extensions/names, and preset tag affinity while auto-excluding orchestrator meta-skills (
config/skills.json).Supports
auto,explicit,stage(copies into.agents/skills/for native Antigravity progressive disclosure), andnonemodes with configurablemaxSkills,tokenBudget, andinjectionStyle(auto | full | summary).
Per-Run MCP Selection, Hard Isolation Hook & Multiplexer Bridge:
Discovers MCP servers across
~/.gemini/config/mcp_config.json,~/.claude.json,<repo>/.mcp.json, andconfig/mcps.json(excludingagy-relayitself to prevent recursion).Supports
none,all,preset, allowlists/denylists, and per-server tool allow/deny filters (allowTools,denyTools).Stages a per-run plugin (
.agents/plugins/relay/) providing BOTH:Hard
PreToolUseMCP guard hook (hooks.json->node guard.mjs) that hard-denies disallowed global MCP servers (likefigmaorplaywright) and disallowed tools per run without mutating~/.gemini/config/mcp_config.jsonand with full audit logging (blockedMcpCallsinresult.json).Scoped Streamable HTTP MCP bridge (
ServerName="relay_hub"->/mcp/bridge/:runId), verified to work in bothread-only(--sandbox) andwritemodes, proxying allowed non-global or tool-filtered MCP servers (with automatic Antigravity 64-char tool-name compliance) AND exposing liveblackboard_*tools toagy.
Structured Shared Context Blackboard:
Persistent, versioned per-repo or custom-ID JSON store (
data/contexts/<id>.json) with optimistic revision concurrency (expectedRevision).Tracks
goal,architecture,conventions,decisions,pinnedFiles(with automatic line-range snippet hydration),findings,openQuestions, andrunHistory.Bidirectional: Claude updates via
agy_context_update;agyreceives a token-budgeted projection in its brief and writes back via bridgeblackboard_*tools or<blackboard_updates>blocks.
MCP Tools Exposed to Claude Code
Tool | Purpose |
| Run Antigravity synchronously or asynchronously with preset/model/effort/mode/skills/mcps/context/jsonSchema/conversationId |
| Poll live progress, usage tokens, touched files, and final output |
| List recent and active runs |
| Cancel an active run |
| List live |
|
|
|
|
| Discover configured MCP servers across Antigravity, Claude, workspace, and relay |
| Read shared blackboard ( |
| Update goal, architecture, conventions, decisions, pinned files, findings, questions |
| List all stored blackboards |
| Delete a blackboard |
HTTP API Endpoints
GET /api/healthGET /api/models?refresh=1,POST /api/quota/clearGET /api/presets,GET|POST|DELETE /api/presets/:nameGET /api/skills?cwd=...,POST /api/skills/matchGET /api/mcps?cwd=...GET /api/contexts,GET|PATCH|DELETE /api/contexts/:id,GET /api/contexts/:id/renderGET|POST /api/runs,GET /api/runs/:id,POST /api/runs/:id/cancel,GET /api/runs/:id/events(SSE)POST /mcp(Streamable HTTP MCP server)POST /mcp/bridge/:runId(Per-run scoped MCP bridge for Antigravity)
License
MIT, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Hosted MCP server and Agent Skills for specs, engineering threads, and project memory.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to delegate implementation tasks to Antigravity CLI and OpenCode, run them fully autonomously, and then review and gate the results.1MIT
- AlicenseAqualityBmaintenanceEnables Claude Code and Claude Desktop to delegate token-heavy tasks to Antigravity headless subagents, offloading file edits, test runs, and exploration while preserving Claude's context window.121MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to delegate tasks to Google Antigravity (Gemini) as an autonomous subagent, including codebase exploration, architecture analysis, multi-file code generation, and technical Q&A, without requiring external API keys.MIT
- AlicenseBqualityCmaintenanceEnables MCP clients such as Claude Code and Cursor to delegate long multi-step coding tasks to Google Antigravity CLI, generate read-only plans and code reviews, digest large codebases, and manage background sessions in isolated git worktrees.15152 npm2MIT