Claude-to-Antigravity MCP Bridge.
Project description
claude-to-agy
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+
agyCLI installed and authenticated- Claude Code
Installation
Note: The command below uses
uvxto run the server without manual installation. If you don't haveuvinstalled, 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_to_agy-1.1.1.tar.gz.
File metadata
- Download URL: claude_to_agy-1.1.1.tar.gz
- Upload date:
- Size: 123.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d7b60dcedced0da0498622250014e6d002a9ea6cebb7a2fd0de3c647ab2cf8a
|
|
| MD5 |
e4589e782a7c85d5c50a42076332372f
|
|
| BLAKE2b-256 |
6f35efb5a1de897295aca23ca92eab25bacb83cf2a27a65d28fa8c454fe5a76f
|
Provenance
The following attestation bundles were made for claude_to_agy-1.1.1.tar.gz:
Publisher:
publish-pypi.yml on rauls-kjarners/claude-to-agy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_to_agy-1.1.1.tar.gz -
Subject digest:
3d7b60dcedced0da0498622250014e6d002a9ea6cebb7a2fd0de3c647ab2cf8a - Sigstore transparency entry: 1789620584
- Sigstore integration time:
-
Permalink:
rauls-kjarners/claude-to-agy@dcda9bcd96e4c43cd3407b936d1ca63807f6d218 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/rauls-kjarners
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@dcda9bcd96e4c43cd3407b936d1ca63807f6d218 -
Trigger Event:
release
-
Statement type:
File details
Details for the file claude_to_agy-1.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_to_agy-1.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2f0ced77aaa90f6ef443dc58add18f97b4bf4bb0a4b3099cc718054ea713402
|
|
| MD5 |
3051d49808f143dbdc4bf4ed290616a1
|
|
| BLAKE2b-256 |
2732c8857e495dededf67c86939ab85121d824ede35f58d9b3ac1f1ea95c99fd
|
Provenance
The following attestation bundles were made for claude_to_agy-1.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on rauls-kjarners/claude-to-agy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_to_agy-1.1.1-py3-none-any.whl -
Subject digest:
d2f0ced77aaa90f6ef443dc58add18f97b4bf4bb0a4b3099cc718054ea713402 - Sigstore transparency entry: 1789620592
- Sigstore integration time:
-
Permalink:
rauls-kjarners/claude-to-agy@dcda9bcd96e4c43cd3407b936d1ca63807f6d218 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/rauls-kjarners
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@dcda9bcd96e4c43cd3407b936d1ca63807f6d218 -
Trigger Event:
release
-
Statement type: