Claude To Agy
FreeNot checkedA lightweight MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI - saving context window and tokens for what matters.
About
A lightweight MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI - saving context window and tokens for what matters.
README
CI
CodeQL
codecov
PyPI version
A lightweight MCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI (agy) - saving context window and tokens for what matters.
What It Does
Registers a delegate_to_agy MCP tool that Claude automatically uses when it encounters:
- Large files (>200 lines) - logs, dumps, generated code
- Multi-file analysis (>3 files at once)
- Deep searches -
git log,git diff,grep - Web lookups - documentation, external knowledge
- Adversarial review / plan critique - always delegated
Claude sends a prompt + file paths → the bridge runs agy CLI → returns the result.
Requirements
- Python 3.10+
- agy CLI installed and authenticated
- Claude Code
Installation
Note: The command below uses uvx to run the server without manual installation. If you don't have
uvinstalled, you can substituteuvxwithnpx -yorpipx run.
# 1. Register the MCP server globally via uvx
claude mcp add -s user claude-to-agy uvx claude-to-agy
# 2. Download the delegation rules into your current project
curl -o CLAUDE.md https://raw.githubusercontent.com/rauls-kjarners/claude-to-agy/main/CLAUDE.md
That's it. Claude will now automatically delegate heavy tasks to Antigravity CLI in any project that has the CLAUDE.md file.
Tip: To enable globally without copying
CLAUDE.mdper project, add the rules to~/.claude/CLAUDE.mdinstead.
Using as a Skill
This project also includes a SKILL.md file, which is the standard format for reusable Claude Code skills. If your setup supports skills, you can use it instead of manually copying CLAUDE.md:
claude skill add https://raw.githubusercontent.com/rauls-kjarners/claude-to-agy/main/SKILL.md
Note: You still need the MCP server registered (step 1 above). The skill provides the rules, MCP provides the tool.
Configuration
All settings are optional environment variables:
| Variable | Default | Description |
|---|---|---|
AGY_CONNECT_TIMEOUT |
60 |
Seconds to start the agy process |
AGY_TOTAL_TIMEOUT |
1200 |
Hard timeout for entire execution |
How It Works
User → Claude Code → MCP bridge (FastMCP) → agy CLI → Gemini API
← ← ←
CLAUDE.mdinstructs Claude when to delegate- Claude calls
delegate_to_agy(prompt, cwd, files?)via MCP bridge.pyprepends file paths to the prompt- Runs
agy --dangerously-skip-permissions --add-dir <cwd> -p "<prompt>" - Returns the text output cleanly or raises an exception natively handled by FastMCP
Development
# Linting & Formatting
uv run ruff check .
uv run ruff format .
# Type Checking
uv run pyright
# Tests
uv run pytest
# Pre-commit Hooks (Run before committing)
uv run pre-commit install
License
MIT
Install Claude To Agy in Claude Desktop, Claude Code & Cursor
unyly install claude-to-agyInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add claude-to-agy -- uvx claude-to-agyFAQ
Is Claude To Agy MCP free?
Yes, Claude To Agy MCP is free — one-click install via Unyly at no cost.
Does Claude To Agy need an API key?
No, Claude To Agy runs without API keys or environment variables.
Is Claude To Agy hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Claude To Agy in Claude Desktop, Claude Code or Cursor?
Open Claude To Agy on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Claude To Agy with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
