Agent Workers MCP
Delegates read-only repository review and summarization to Gemini via the Antigravity CLI using Google AI subscription quota, with quota checks and a read-only guard.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agent-workers-mcp
English | 简体中文
An MCP server that lets Claude Code act as the lead and hand part of the work to "worker" models:
Gemini, through the Antigravity CLI (
agy), on your Google AI subscription quota only. It never falls back to the paid API. Good for summarising many files, second-opinion reviews, and read-only reviews of a whole repository.DeepSeek, through its OpenAI-compatible API, billed per token. Good for bulk text work: drafting, rewriting, translating.
Claude splits the task, writes the brief and verifies the result; a worker's answer is treated as a lead, not a fact.
Contents
File | Purpose |
| The MCP server (stdio) with three tools: |
| Calls agy; also usable from the command line |
| Calls the DeepSeek API; also usable from the command line |
| agy |
| Shared secret checks, size limit and call log |
| Two Claude Code subagents: |
| User manual: usage, model tiers, logs, troubleshooting (Chinese: |
| A section to add to |
| Registers the MCP server and installs the subagents |
| MIT license |
Related MCP server: multimodels-mcp
Security design
Gemini can only read. agy runs in plan mode (
--mode plan) in a fresh temporary directory. Every call writes a workspace-local hook (.agents/hooks.json) there, andagy_guard.pyrules on each action agy attempts:only
read_fileis allowed, and only for files inside the workspace that pass the secret checks below;running commands, writing files, web access and everything else are denied, and so is anything the hook fails on;
the hook applies only to calls made by this server; your own use of agy is unaffected.
Secrets stay local. Files are refused by name (
secrets.toml,.env*, certificates and private keys, cloud credentials…), by folder (.ssh,.aws…) and by content (sk-…,AIza…, GitHub/AWS/Slack/Stripe/Hugging Face/npm tokens, JWTs, private-key blocks, connection strings with passwords, hard-coded secret assignments). Errors report only the kind and line number, never the value.No accidental paid API use. Every variable holding a key or token is removed from agy's environment. Each call also passes
--settingsto turn off the paid fallback (useG1Credits) and direct Gemini API access (modelProvider), without touching your own agy settings.Quota protection. Quota is checked before each call (cached for 60 s). A call is refused when any bucket of the model's pool is below 10%;
neon-highandneon-xhighare refused when the Gemini five-hour bucket is below 25%.The call log stays on your machine.
logs/YYYY-MM.jsonlrecords every call actually sent (prompt, file fingerprints, answer, usage, every guard decision) and keeps 3 months. Requests refused by the security checks are not logged.logs/is git-ignored.
Requirements
Windows 10/11 (the installer and process handling use
tasklist,taskkilland.venv\Scripts)Python 3.10+
Google Antigravity CLI (
agy), signed in with a Google account that has a Gemini subscription (runagyonce in a terminal and follow the prompts)A DeepSeek API key (optional if you only use Gemini), set as the user environment variable
DEEPSEEK_API_KEYClaude Code (desktop app or CLI)
Installation
git clone https://github.com/Satleixn/agent-workers-mcp.gitcd agent-workers-mcppython -m venv .venv.\.venv\Scripts\pip install -r requirements.txtThen quit Claude completely and run:
python install.pyIf the folder holding the repository carries a low-integrity label (some tools' sandboxes put one on a whole working folder;
icaclsshowsLow Mandatory Level), programs started from the repository's.venvcannot read%LOCALAPPDATA%and so cannot find agy. Create the venv elsewhere, for examplepython -m venv $HOME\.venvs\agent-workers-mcp, and register it withpython install.py --python $HOME\.venvs\agent-workers-mcp\Scripts\python.exe.
The installer backs up and edits ~/.claude.json (adding mcpServers.workers) and copies the two subagents into ~/.claude/agents/. After you reopen Claude, new sessions have the three mcp__workers__* tools. Finally, add what you need from docs/claude-md-snippet.md to your ~/.claude/CLAUDE.md.
Check both workers from the command line first (if your venv is outside the repository, replace .\.venv\Scripts\python with that venv's python):
.\.venv\Scripts\python ask_gemini.py --prompt "Reply with exactly: OK" --model gemini-4-hydrogen-low.\.venv\Scripts\python ask_deepseek.py --prompt "Explain a moving average in one sentence"Usage
Just ask Claude, for example:
"Have Gemini review
D:\path\to\repoin repo mode, focusing on error handling""Have gemini-reviewer review
bar()insrc/foo.py""Use ask_deepseek to translate this into English"
"Check the Gemini quota"
For choosing models, reading the logs and handling common errors, see docs/manual.md.
Known limitations
Tested on Windows only.
Gemini and DeepSeek model names change. The default models are
DEFAULT_MODELat the top ofask_gemini.pyandask_deepseek.py; the tier table is in the tool descriptions inworkers_mcp.py.In repo mode agy cannot run commands, so it cannot search the code; it picks files to read from
FILES.txt(the output ofgit ls-files).Every Gemini call carries about 25k tokens of fixed agent overhead, so batch small questions into one call.
License
MIT. This project is only a tool that calls the Antigravity CLI and the DeepSeek API; your use of them is still subject to Google's and DeepSeek's terms of service.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Shared notes, logs, issues and secrets for Claude, ChatGPT and local models.
Multi-brand AI code review for Claude: up to 12 reviewers and a judge, no install.
Ask Claude, GPT, Grok, GLM, Kimi or DeepSeek from your client; token price plus a $0.001 call fee.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude Code to request independent code reviews and second opinions from other AI models (like Gemini, GPT-OSS) via the Antigravity CLI, directly from the chat.1MIT
- AlicenseAqualityDmaintenanceDelegate tasks from Claude Code to other models (Codex CLI, DeepSeek, OpenRouter, etc.) without leaving the app.221MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude Code to delegate tasks to Google Antigravity (Gemini) as an autonomous subagent, including codebase exploration, architecture analysis, multi-file code generation, and technical Q&A, without requiring external API keys.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to hand off prompts, research, and adversarial reviews to non-Claude models such as GPT-5.5 and Gemini 3.1 Pro through the pi CLI, billed to an existing flat-rate subscription. Delegates run read-only and web-capable, with evidence tracking, continuation threads, and file-based output to keep context small.MIT