# agy-agent-mcp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/a4amk/agy-agent-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agy-agent-mcp

## Description
Zero-dependency MCP server for subagent-style task delegation to the Antigravity (agy) CLI: headless runs, live stream transcripts, git-audited file scope. Works with OpenCode, Claude Code, and any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **general_task** — Delegate a coding task that may edit files and wait for the report.
- **explore_task** — Delegate a read-only diagnosis or exploration task without editing files.
- **watch_task** — Inspect live transcripts, poll progress, collect results, or cancel runs.
- **list_models** — List model IDs accepted by the `model` argument.
- **list_agents** — List custom agent profiles accepted by the `agent` argument.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agy-agent-mcp": {
    "command": "npx",
    "args": ["-y","agy-agent-follow"],
    "env": {
      "AGY_BIN": "",
      "AGY_MCP_STATE_DIR": ""
    }
  }
}
```

**Requires environment variables:** `AGY_BIN`, `AGY_MCP_STATE_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What agy-agent-mcp does

agy-agent-mcp turns an authenticated Antigravity CLI installation into five MCP tools for delegating work to subagents. `general_task` handles coding tasks in edit-enabled mode, while `explore_task` performs read-only diagnosis or investigation. Both accept a self-contained prompt and can target a project directory, model, effort tier, agent profile, timeout, workspace additions, and other Antigravity options.

The server returns a task report with status, usage information, touched files, conversation details, and paths to the stream and machine-readable transcript. Failed, timed-out, quota-limited, or refused operations are represented in the tool response.

## How it works

A normal delegation blocks until the child process finishes and returns the subagent’s final report. For detached work, set `background` to `true`; the call returns a task handle immediately. `watch_task` can then show recent transcript lines and progress, wait for the complete result, or cancel a running task.

Each run has its own stream and transcript files under the configured state directory. The default location is `/tmp/agy-agent-mcp/tasks`. Multiple delegations may run concurrently. `list_models` reports model IDs accepted by the `model` argument, and `list_agents` reports configured custom profiles accepted by `agent`.

Headless runs do not ask for interactive confirmation. Actions requiring approval are denied unless corresponding rules are added under `permissions.allow` in Antigravity’s `settings.json`. `general_task` uses `accept-edits` mode by default; `explore_task` uses read-only `plan` mode.

## Setup and configuration

Install the package globally with npm and make sure Node.js 22.6 or newer is available:

```sh
npm install -g agy-agent-mcp
```

The `agy` CLI must already be authenticated. Register the command with a compatible MCP client, for example:

```sh
claude mcp add agy -- agy-agent-mcp
```

If the CLI is not on `PATH`, set `AGY_BIN` to its absolute path when registering the server. `AGY_MCP_STATE_DIR` changes where task streams and transcripts are stored. OpenCode can register the server globally with its `--global` option. After upgrading the package, restart the MCP client or reload its MCP catalog so new sessions use the updated installation.

A local checkout can be registered by pointing the client at `bin/mcp.mjs` after installing project dependencies. The package also includes `agy-agent-follow`, a companion command-line interface that prints mirrored transcript lines and the final JSON result.

## Tools and capabilities

- `general_task`: delegate a task that may modify files and wait for its report.
- `explore_task`: delegate a read-only investigation.
- `watch_task`: inspect progress, read transcripts, collect results, or cancel runs.
- `list_models`: discover valid model identifiers.
- `list_agents`: discover configured Antigravity agent profiles.

Edit boundaries can be supplied through `edit_scope`, and `files_touched` plus `scope_violations` provide audit information in results. `sandbox` enables Antigravity terminal sandboxing, while `auto_approve` passes the CLI option intended to avoid headless permission denials. Existing Antigravity conversations can be resumed with `conversation_id`.

## Limitations and notes

The server depends on an authenticated Antigravity CLI and its configured permissions. A model identifier that already includes a reasoning tier must not be paired with a conflicting `effort` value. Client interfaces differ in whether they display live progress; `watch_task` provides an in-protocol alternative.

When concurrent runs share a git working tree, file and scope audit results can include changes from other runs. Such results include an audit note. A server process cannot wait for a run owned by another server process, and cancellation of that run is ignored; the task must instead be polled from the owning process.

_Full upstream README: https://allmcps.com/mcp/agy-agent-mcp/readme_

