agyforclaude
agyforclaude
Universal MCP server + Claude skill for delegating tasks to the Antigravity (Gemini) CLI.
agyforclaude installs an MCP server and a Claude skill into ~/.claude/, making it work with any AI client that supports Model Context Protocol — Claude Code, OpenCode, Cursor, Codex, and more.
Prerequisites
Node.js >= 18
Antigravity CLI (
agy) — install it first
Install
npm install -g agyforclaude@latestThe postinstall hook automatically:
Checks if
agyis installedConfigures the MCP server in
~/.claude/mcp.json(Claude Code)Configures the MCP server in
~/.config/opencode/opencode.json(OpenCode)Copies the
agyskill to~/.claude/skills/agy/SKILL.md
Then restart your AI agent to pick up the new MCP server.
Other agents (Cursor, Codex, Windsurf, etc.): MCP config is not automated. You'll need to manually add the server entry per your agent's docs. The server binary is at
dist/mcp-server.jsinside the agyforclaude package — find it withnpm root -g.
Usage
Your AI agent now has an agy_delegation tool:
Param | Type | Default | Description |
|
| (required) | The task to delegate to Gemini |
|
|
| Model tier |
|
|
| Workspace directories to include |
|
|
| Auto-approve agy tool permissions |
|
|
| Run agy in sandbox mode |
|
|
| Max seconds for agy to complete (30-600). Default matches agy's built-in timeout. Increase for very large tasks. |
Example prompts
"Use agy to scaffold a Next.js app with TypeScript and Tailwind"
"Delegate to Gemini: generate unit tests for
src/utils.ts""Use agy (pro tier) to review this PR for security issues"
The skill
The installed ~/.claude/skills/agy/SKILL.md reminds your agent:
When to delegate (user asks, bulk work, cheap work)
Always verify agy's output
Never auto-merge
CLI Commands
After install, you also get agyforclaude on your PATH:
agyforclaude setup # Re-run setup (e.g. after moving node_modules)
agyforclaude uninstall # Remove from ~/.claude/ (also runs on npm uninstall)
agyforclaude status # Check if everything is properly installed
agyforclaude -p "prompt" [options] # Delegate a task directly from the command lineOptions for Prompt Delegation:
-p,--prompt <string>: The task prompt to send to Gemini (required)-t,--tier <tier>: Model tier:flash(default),flash-lo,pro-d,--dir <dir>: Additional workspace directory to include (can be repeated)-y,--yolo: Auto-approve tool permissions (dangerous)-s,--sandbox: Run agy in sandbox mode--timeout <seconds>: Max seconds to wait (default: 300)
How it works
MCP Server (
dist/mcp-server.js): Receives tool calls via stdio, spawnsagy --printwith the user's prompt, returns stdout.Skill (
~/.claude/skills/agy/SKILL.md): Tells the AI when and how to use theagy_delegationtool.CLI (
bin/agyforclaude): Manages installation/uninstallation of the above.
Dependencies
@modelcontextprotocol/sdk— MCP server SDKagy(external) — The Antigravity CLI (must be installed separately)
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theoreticalthread/agyforclaude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server