MCP tools
The tools exposed by the agb MCP server, generated from the TOOLS array in mcp/server.mjs.
The plugin registers an MCP server named agb (see Plugin layout). It speaks JSON-RPC over stdio (tools, resources, and Antigravity ui:// MCP App resources) and exposes 15 tools: 10 CLI-backed workflow tools that invoke the matching CLI subcommand, plus 5 in-process UI/control/sign-off tools (agb_flight_deck, agb_mission_control, agb_plan_viewer, agb_control, agb_accept) paired with 6 interactive ui://agb/*.html resources.
Server
The server answers initialize with protocol version 2024-11-05 and serverInfo.name antigravity-booster-mcp. serverInfo.version is read from the plugin's package.json, the same source agb --version uses (v1.0.0 hard-coded 0.7.0 instead: C6).
Child processes inherit the ambient environment from the host agent harness. Unknown tools return JSON-RPC error -32602, unknown methods -32601.
Tools
The list below is generated from the TOOLS array in mcp/server.mjs.
agb_run concurrency cap
agb_run tool accepts plan and an optional positive integer concurrency parameter, which is validated and forwarded as -c <n> to agb run to cap total concurrent workers (v1.0.0 previously forwarded an unsupported flag that agb run ignored: C33). Per-pool runtime concurrency is also governed by the plan's caps field (while concurrencyCap is an advisory fan-out forecast written by adlc merge-forecast).agb_accept: Inspect candidate diff hunks, external-caller blast radius, and gate manifest evidence for ADLC P6 human sign-off
| Parameter | Type | Required | Description |
|---|---|---|---|
| base | string | no | Optional git base ref (defaults to HEAD) |
| repo | string | no | Optional path to target repository (defaults to cwd) |
| saveVerdicts | boolean | no | Persist hunk verdicts to .booster/accept-state.json |
| verdicts | object | no | Optional map of 64-char SHA-256 hunk fingerprints to accepted, flagged, or pending |
agb_control: Send authenticated control IPC or snapshot/diff/stream telemetry queries to an AGB run
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | yes | Control or telemetry action |
| lines | integer | no | Max stream lines to return (default 40) |
| repo | string | no | Path to target repository (defaults to cwd) |
| ticketId | string | no | Target ticket ID for abort, diff, or stream |
agb_distill: Scan repository review and prosecution logs for recurring finding patterns and stage or apply learned ADLC defenses
| Parameter | Type | Required | Description |
|---|---|---|---|
| apply | boolean | no | Write compacted defenses to .agents/rules/adlc-learned.md |
| compileChecks | boolean | no | Compile recurring findings into declarative .adlc/learned-checks.json invariants |
| repo | string | yes | Path to target repository |
agb_doctor: Run diagnostic health check for tools, auth, and sandbox setup
| Parameter | Type | Required | Description |
|---|---|---|---|
| fix | boolean | no | Automatically repair missing .adlc store, .gitignore, or companion plugin |
| repo | string | no | Optional path to target repository |
agb_flight_deck: Open the live AGB Flight Deck auxiliary pane to monitor and control active fleet runs
| Parameter | Type | Required | Description |
|---|---|---|---|
| repo | string | no | Path to target repository (defaults to cwd) |
agb_holdout: List metadata, execute sanitized P5 checks, or clean sealed Dark-Factory holdout scenarios
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | yes | Holdout operation to perform |
| repo | string | yes | Path to target repository |
| runId | string | no | Optional run ID filter |
| ticketId | string | no | Optional ticket ID filter |
agb_init: Initialize a target repository for ADLC and Antigravity Booster (.adlc/config.json, specs/feature-template.md, .gitignore)
| Parameter | Type | Required | Description |
|---|---|---|---|
| decisionProvider | string | no | Configure opt-in System-1 decision engine provider in .adlc/config.json |
| repo | string | yes | Path to target repository |
| withCodegraph | boolean | no | Add .codegraph/ to .gitignore, run codegraph init if available, and enable accelerators.codegraph in .adlc/config.json |
agb_manifest_viewer: Inspect an ADLC gate-manifest JSONL audit trail (.agbmanifest or .adlc/manifest.jsonl) and verify chain integrity
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | no | Optional path to .agbmanifest or .adlc/manifest.jsonl (defaults to .adlc/manifest.jsonl) |
| repo | string | no | Optional repository path |
agb_mission_control: Open the global AGB Mission Control dashboard for 4-window quota gauges and model telemetry
| Parameter | Type | Required | Description |
|---|---|---|---|
| repo | string | no | Optional path to target repository |
agb_plan: Compile an Antigravity brain plan or spec file into plan.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| decompose | boolean | no | Automatically split wide tickets exceeding maxTicketScope |
| emitWorkflow | string | no | Optional output path for compiled run_workflow Python script |
| estimate | boolean | no | Forecast wave-by-wave quota burn without writing plan.json or running Stage B LLM gates |
| force | boolean | no | Force overwrite the output file if it exists |
| maxTicketScope | number | no | Maximum files per ticket when decompose is enabled (default 3) |
| noColdstart | boolean | no | Skip coldstart plan gate |
| noFastPath | boolean | no | Disable zero-LLM structured Markdown fast-path and force LLM conversion |
| noParallax | boolean | no | Skip parallax spec ambiguity check |
| noPremortem | boolean | no | Skip premortem advisory risk gate |
| out | string | no | Custom output file path (default plan.json) |
| repo | string | yes | Absolute path to the target repository |
| spec | string | yes | Brain ID, prefix, or spec.md path to compile |
agb_plan_viewer: Inspect, validate, and edit a .agbplan or plan.json ticket DAG file
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Path to .agbplan or plan.json file |
| repo | string | no | Optional repository path |
agb_preflight: Run plan-level coldstart probes and forecast scope overlaps
| Parameter | Type | Required | Description |
|---|---|---|---|
| forceColdstart | boolean | no | Ignore cached coldstart provenance hashes and re-run coldstart probes |
| noColdstart | boolean | no | Skip coldstart plan gate |
| plan | string | yes | Path to plan.json file |
agb_review: Deploy a read-only fleet of models to audit changes or a plan specification
| Parameter | Type | Required | Description |
|---|---|---|---|
| arbiter | boolean | no | Enable neutral arbiter triage (default true; pass false for --no-arbiter) |
| codegraph | boolean | no | Enable CodeGraph context slicing (default true; pass false for --no-codegraph) |
| decisionEngine | boolean | no | Enable System-1 decision engine (default true; pass false for --no-decision-engine) |
| delta | string | no | Base git ref for delta fix-round review |
| dryRounds | integer | no | Consecutive dry rounds required for convergence |
| fiveLens | boolean | no | Run 5-lens Code ARL (Correctness, Simplicity, Security, Evidence, Anti-Slop) |
| loop | boolean | no | Run iterative Plan ARL up to 3 rounds |
| plan | string | no | Optional spec.md path to run 5-lens Plan ARL instead of diff review |
| planFile | string | no | Optional path to plan.json used to load ticketScopes for seamsOnly review |
| priorFindings | string | no | Optional path to persisted prior findings JSON file |
| ref | string | no | Optional diff reference range (e.g. main...HEAD) |
| repo | string | yes | Path to target repository |
| seamsOnly | boolean | no | Review cross-ticket integration seams only |
| thorough | boolean | no | Enable multi-dry convergence over static diffs |
agb_run: Execute a compiled ticket DAG plan.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| concurrency | integer | no | Optional maximum concurrent workers cap (-c <n>) |
| plan | string | yes | Path to plan.json file |
| resetRescue | boolean | no | Clear active or preserved rescue locks before running |
| resume | boolean | no | Resume from previously merged tickets |
agb_shape: Pre-analyze a structured spec or brain plan for DAG validity, scope overlaps, rails, and static import coupling before agb plan
| Parameter | Type | Required | Description |
|---|---|---|---|
| maxTicketScope | number | no | Maximum recommended file scope per ticket before emitting a scope warning (default 12) |
| repo | string | yes | Absolute path to the target repository |
| spec | string | yes | Path to spec.md or brain conversation ID/prefix |
| strict | boolean | no | Fail closed on coupling or scope warnings |
| syncBrain | boolean | no | Sync formatted plan artifact to .booster/agb_plan_artifact.md and active brain session |
agb_status: Get execution status of a booster run in the target repository
| Parameter | Type | Required | Description |
|---|---|---|---|
| repo | string | yes | Path to target repository |
agb_ticket_viewer: Inspect an ADLC ticket shard (.agbticket or .adlc/tickets/*.json) with scope, rails, and DAG edges
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | string | yes | Path to .agbticket or .adlc/tickets/*.json shard file |
| repo | string | no | Optional repository path |
Mapping to the CLI
| Tool | Runs / Mode |
|---|---|
agb_shape | agb shape <spec> [repo] --json plus --sync-brain, --max-ticket-scope, --strict |
agb_plan | agb plan <spec> <repo> plus --out, --emit-workflow (emitWorkflow), --estimate, --force, --decompose, --max-ticket-scope, --no-fast-path, --no-coldstart, --no-parallax, --no-premortem |
agb_distill | agb distill <repo> --json plus --apply, --compile-checks (compileChecks) |
agb_run | agb run <plan> plus -c <n> (concurrency), --resume, --reset-rescue (resetRescue) |
agb_preflight | agb preflight <plan> plus --no-coldstart |
agb_status | agb status <repo> |
agb_doctor | agb doctor [repo] plus --fix |
agb_init | agb init <repo> |
agb_review | agb review <repo> [ref] plus --plan, --loop, --five-lens, --no-arbiter |
agb_holdout | agb holdout <list|run|clean> [repo] plus --ticket (ticketId), --run-id (runId) |
agb_control | In-process control.sock IPC / diff / stream telemetry (action, repo, ticketId, lines) |
agb_accept | In-process P6 sign-off dossier & hunk verdict persistence (repo, base, verdicts, saveVerdicts, ui://agb/accept-workbench.html) |
agb_flight_deck | In-process UI resource (ui://agb/flight-deck.html) + live control.sock snapshot (repo) |
agb_mission_control | In-process UI resource (ui://agb/mission-control.html) + Factory Economics Ledger & quota telemetry (repo) |
agb_plan_viewer | In-process UI resource (ui://agb/plan-viewer.html) for inspecting and saving .agbplan / plan.json (path, repo) |
Evidence: tool dispatch. The server resolves the CLI to the sibling dist/agb.mjs in the bundled plugin, bin/agb.mjs in a source checkout, or agb on PATH (resolveAgbEntry). See Headless and MCP.