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

  • 📦 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

3 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 recent 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. Clarifying questions arrive as prose in result — resume with resumeSessionId to answer. 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.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool maps to a clearly distinct action in the delegation lifecycle: start/resume a delegation (delegate), abort one (cancel), and diagnose setup failures (doctor). The descriptions explicitly scope when to use each, including the 'never shell out to agy' guardrail, so an agent can select without ambiguity.

    Naming Consistency4/5

    All names are single lowercase words with no mixed casing or prefixes, so the set is predictable. The only deviation is that 'doctor' is a noun while 'delegate' and 'cancel' are verbs, a minor break in the verb pattern.

    Tool Count4/5

    Three tools is minimal but well-matched to a narrow proxy purpose: one action tool, one lifecycle-control tool, one diagnostic. Nothing extraneous is present, though the surface is thin enough that a fourth helper (e.g. list sessions) could be justified.

    Completeness4/5

    The core lifecycle is covered: start/resume delegation, cancel an in-flight run, and troubleshoot setup. The main gap is discoverability — there is no way to list or query active/recent session IDs, so an agent must track sessionIds itself, and resume is only reachable by re-invoking delegate.

    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
      B
      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
      287 npm
      2
      MIT