Agy Bridge logo

Agy Bridge

by sshahzaiib

Routes file analysis, repository searches, web lookups, reviews, and other heavy tasks from MCP clients to Antigravity CLI.

Install Agy Bridge

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sshahzaiib-agy-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "agy-bridge"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

sshahzaiib/agy-bridge connects MCP clients to the Antigravity CLI (`agy`), allowing Claude Code or another MCP client to delegate large analyses, repository archaeology, web lookups, and code reviews. It returns the delegated answer rather than bringing large files or search output into the calling model's context. Six purpose-built tools route requests across available models, support session continuation, and retry quota-exhausted models after cooldowns. Reach for it when tasks span many files, require external or current information, or benefit from a Gemini-based second opinion.

Use cases

  • Analyze large logs, dumps, or generated code
  • Investigate Git history and repository-wide usage
  • Look up current documentation and API details
  • Request adversarial plan or code reviews
  • Continue a delegated task without resending context

Key features

  • Six purpose-built MCP delegation tools
  • Model routing with quota-aware failover
  • Multi-turn session continuation
  • Per-tool and global timeout controls
  • Optional working-directory and model selection
  • Process-group cancellation handling

Tools6

What Agy Bridge lets your agent do. Expand a tool for its parameters.

Verified live~1.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

21/22 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · agy-bridge (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars61Stargazers on the source repository.
npm downloads391Package downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Agy Bridge works

What sshahzaiib/agy-bridge does

sshahzaiib/agy-bridge lets an MCP client send heavy work to the Antigravity CLI instead of handling every file read, search, or web lookup in the calling model's context. The bridge is designed for Claude Code, but its MCP tools can be invoked by other MCP clients.

Delegated work includes analyzing large files and multi-file sets, investigating a repository's history and usage patterns, looking up documentation or current external information, and reviewing plans or code from an adversarial perspective. A general-purpose delegation tool covers tasks that do not fit those categories.

How it works

The client starts the package with npx, and the bridge invokes the authenticated agy command in the requested working directory. Each call can provide an optional cwd and model selection. The bridge checks models reported by agy models, chooses the first available model in the relevant preference chain, and falls back through other candidates when needed.

Routing is Gemini-first. The tool-specific chains select different Gemini families and tiers for analysis, search, web lookup, reviews, and general delegation; Claude Opus and GPT-OSS are appended as fallback choices when no Gemini model is available. A configured default model and then agy's own default provide further fallback behavior.

Responses include the selected model and a session identifier. follow_up uses that identifier to continue an earlier Antigravity conversation without resending its context. When a model reports quota exhaustion, the bridge stops the process, records the reset period, marks the model as temporarily unavailable, and retries on the next candidate.

Setup and configuration

The runtime requires Node.js 18 or newer, an installed and authenticated Antigravity CLI, and an MCP client such as Claude Code. Claude Code can register the server with:

Terminal
claude mcp add-json -s user agy-bridge \
  '{"command":"npx","args":["-y","agy-bridge"],"timeout":600000}'

The client-side timeout should be long enough for delegated operations. The bridge also supports MCP_TOOL_TIMEOUT for clients that do not honor a per-server timeout. Its own operation budgets can be controlled globally with AGY_TIMEOUT or individually with AGY_TIMEOUT_ANALYZE_FILES, AGY_TIMEOUT_DEEP_SEARCH, AGY_TIMEOUT_WEB_LOOKUP, AGY_TIMEOUT_ADVERSARIAL_REVIEW, AGY_TIMEOUT_FOLLOW_UP, and AGY_TIMEOUT_DELEGATE. Per-tool values override the global value.

Tools and capabilities

  • analyze_files handles large files, file sets spanning more than three files, logs, database dumps, generated code, and cross-file comparisons.
  • deep_search performs repository-wide searches and investigates Git history through log, diff, and blame information.
  • web_lookup retrieves library documentation, API references, explanations for errors, and other external or current information.
  • adversarial_review asks for a second opinion on plans, designs, and code, focusing on edge cases, security concerns, flaws, and assumptions.
  • follow_up continues a prior delegation using its session_id.
  • delegate sends other heavy tasks directly to Antigravity with access to the supplied working directory.

All tools accept optional working-directory and model parameters. Model names are validated before execution, and responses identify the model and session used.

Limitations and notes

The Antigravity CLI must be installed and authenticated before the bridge can perform delegated work. The MCP client's tool-call deadline is separate from the bridge's own execution timeout; if the client deadline is shorter, it can stop waiting first. Cancelling a tool call terminates the Antigravity process group, and timed-out or cancelled work can be continued through the returned session when a session identifier is available.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agy Bridge

sshahzaiib/agy-bridge is an MCP server that connects MCP clients to the Antigravity CLI (`agy`) for delegated work. Its main tools analyze files, search repositories, perform web lookups, review plans or code adversarially, continue sessions, and handle other heavy tasks through a general delegation tool.

Install it by registering `npx -y agy-bridge` as an MCP server with Claude Code. The Antigravity CLI must already be installed and authenticated, and Node.js 18 or newer is required. A 600000-millisecond client timeout is recommended for long-running calls.

Set `AGY_TIMEOUT` to change the default budget for every tool, or set a tool-specific variable such as `AGY_TIMEOUT_DEEP_SEARCH=300`. Per-tool settings take precedence. Set `MCP_TOOL_TIMEOUT=600000` when the MCP client cannot apply a per-server tool-call timeout.

Use the `follow_up` tool with the `session_id` returned by an earlier delegation. The Antigravity side retains the prior session context, so the follow-up does not need the original request or delegated content to be sent again.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgy Bridge AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sshahzaiib-agy-bridge?style=directory)](https://allmcps.com/mcp/sshahzaiib-agy-bridge)
HTML Embed
<a href="https://allmcps.com/mcp/sshahzaiib-agy-bridge"><img src="https://allmcps.com/api/badge/sshahzaiib-agy-bridge?style=directory" alt="Agy Bridge on AllMCPs" /></a>