Skip to main content
Glama

Antigravity Delegate

Delegate edits to Google Antigravity's CLI agent (agy) — your agent writes the brief and reviews the diff.

npm version npm downloads MCP Registry agy-delegate-mcp MCP server node license: MIT tests

Antigravity Delegate is the MCP bridge that lets Claude Code, ChatGPT/Codex, Copilot — or any MCP client — hand implementation to agy over the Agent Client Protocol, then get a structured result back for review.

You and your agent plan and review; the MCP delegate tool hands the brief to agy, which implements with Gemini models and edits your workspace; a clean result comes back with what changed, which files, and the plan, for your agent to review

Delegate result payload

Features

  • 🤝 Native plugins — install into Claude Code, ChatGPT/Codex, or GitHub Copilot CLI and say "delegate this to Antigravity". The shared skill teaches your agent how to delegate well.

  • 💬 No stalled runs — if agy needs to clarify, it ends the turn and returns the question as a normal result. Your agent answers by resuming the same session.

  • ⏳ Runs in the background in Claude Code — in an interactive Claude Code CLI session, delegate runs as an MCP task: the call returns once agy has the prompt, and the result arrives as a task notification when agy finishes.

  • 📦 Named results — final answer, changed files, session id, model and thinking level, returned as one compact JSON payload.

  • 📋 Plan first — plan mode: agy writes a plan, returned in full as plan; you review it, then the same session implements it.

  • 🔍 Ask anything — ask mode: Q&A over your codebase.

  • 🩺 Self-diagnosing — a doctor tool that reports what is missing, the models agy offers, and the account tier.

plan and ask are instructions to the agent, and workspace is its working directory — Security and the delegate reference spell out what the bridge enforces and what it reports back.

Related MCP server: agy-mcp

Install

You need Node.js 20+ and the Antigravity CLI (agy), signed in — run agy once and sign in.

Claude Code

/plugin marketplace add andreilungeanu/agy-delegate-mcp
/plugin install agy-delegate@agy-delegate-mcp

Then ask:

Delegate to Antigravity: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.

Cursor

Add to Cursor

Or add it under Customize → MCPs in the sidebar, or in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project):

{
  "mcpServers": {
    "agy-delegate": {
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

ChatGPT desktop / Codex

codex plugin marketplace add andreilungeanu/agy-delegate-mcp
codex plugin add agy-delegate@agy-delegate-mcp

GitHub Copilot CLI

copilot plugin marketplace add andreilungeanu/agy-delegate-mcp
copilot plugin install agy-delegate@agy-delegate-mcp

The server alone, without the skill: copilot mcp add agy-delegate -- npx -y agy-delegate-mcp.

More clients

Install in VS Code Install in VS Code Insiders

{
  "servers": {
    "agy-delegate": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

Under Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add and paste this JSON:

{
  "mcpServers": {
    "agy-delegate": {
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

This config is for Devin Local, the default agent (Local 3.6+). On Windows the file is %APPDATA%\devin\mcp_config.json. Legacy Cascade and older Windsurf builds read ~/.codeium/windsurf/mcp_config.json.

{
  "mcpServers": {
    "agy-delegate": {
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

Heads-up: Devin Desktop's Cascade agent caps you at 100 tools across all servers.

{
  "servers": {
    "agy-delegate": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

Visual Studio 2022 needs 17.14+. Note the top-level key is servers, not mcpServers. A .mcp.json in the solution directory scopes it to that solution.

OpenCode does not use mcpServers. Local servers go under mcp, with type: "local" and command as one array:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "agy-delegate": {
      "type": "local",
      "command": ["npx", "-y", "agy-delegate-mcp"],
      "enabled": true
    }
  }
}

This is the v1 shape, which OpenCode v2 still reads (v2's native form is mcp.servers).

Same shape as OpenCode: type: "local" and command as one array.

{
  "mcp": {
    "agy-delegate": {
      "type": "local",
      "command": ["npx", "-y", "agy-delegate-mcp"],
      "enabled": true
    }
  }
}

In the VS Code extension: Settings → MCP → Add Server → Local (stdio). On Windows, if npx is not found, use command cmd with arguments /c, npx, -y, agy-delegate-mcp.

Kiro and any other MCP client

Add the following server to the client's MCP config — for Kiro, ~/.kiro/settings/mcp.json (user) or .kiro/settings/mcp.json (workspace):

{
  "mcpServers": {
    "agy-delegate": {
      "command": "npx",
      "args": ["-y", "agy-delegate-mcp"]
    }
  }
}

License

MIT © Andrei Lungeanu

Technical reference · Security · Privacy · Terms · Changelog

Available Tools

4 tools
cancelA
DestructiveIdempotent

Best-effort cancel of an in-flight delegation by sessionId. session/cancel is advisory — the agent may finish the turn anyway, and the delegate result then carries cancelRequested. Status: cancelled, killed (agent process observed to exit), not-running (turn already ended, still resumable), not-found (id not in this process's session history).

Inputs: sessionId (required), force.

delegateA
Destructive

Delegate a coding task to Antigravity's agy over ACP. Never shell out to agy — use this tool only. Auto-approves every permission the agent requests, in any mode and anywhere on disk. agy's clarifying questions arrive in questions — resume with resumeSessionId and the answers in spec. Leave model and effort unset unless the user explicitly asks. See the delegate skill.

Inputs: spec (required), workspace (required), mode, model, +3 more.

doctorA
Read-onlyIdempotent

Setup diagnostics: plugin version, MCP client capabilities, agy launcher resolution. Run when delegation fails or agent.found is false.

Inputs: deep.

steerA
Destructive

Redirect an in-flight delegation by sessionId: message goes to agy as a new instruction for the running turn, and the delegate call returns the redirected turn's result. Status: steered (sent), not-ready (prompt not sent yet; retry), not-running (turn already ended — resume instead), not-found (id not in this process's session history).

Inputs: message (required), sessionId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool maps to a distinct action in the delegation lifecycle: delegate starts/resumes, cancel stops, steer redirects, doctor diagnoses. The only mild overlap is cancel vs steer (both target an in-flight sessionId) and steer vs delegate-with-resumeSessionId, but the descriptions clearly separate in-flight redirect from post-turn resume.

    Naming Consistency4/5

    All four names are single lowercase words with no style mixing. Three are action verbs (delegate, cancel, steer) while doctor is a noun-style diagnostic, a minor deviation in verb convention but still predictable and readable.

    Tool Count4/5

    Four tools is a tight, well-scoped set for a delegation plugin — each covers a real lifecycle need. It sits at the low end of the comfortable range, with no filler tools.

    Completeness4/5

    The surface covers start, resume, cancel, redirect, and diagnostics, so core workflows are closed. The main gap is the absence of a status/list-sessions tool, so an agent cannot inspect an existing session without acting on it.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      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.
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Lets MCP clients such as Claude Code, Claude Desktop, Cursor, or Codex hand tasks to the Antigravity CLI (agy) so the work runs on the user's Antigravity plan instead of the client's. Exposes tools for delegated coding tasks and reviews, web search with sources, image/PDF analysis, shell command generation or execution, brainstorming, and model/quota checks.
      7
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables 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.
      15
      162 npm
      2
      MIT