gemini-mcp-tool
v2.4.0MCP server for asking Gemini through Antigravity CLI (agy)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ask-gemini
Ask Gemini through Antigravity CLI (`agy`) for plan review, implementation critique, code review, architecture feedback, debugging, and tradeoff analysis
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Analysis request for Gemini feedback. Use @ syntax to include files (e.g., '@largefile.js review this implementation') or ask for plan/code review feedback |
approvalMode | string | Legacy Gemini CLI option. Only 'yolo' is supported and maps to --dangerously-skip-permissions; other values return an explicit error. |
changeMode | boolean | Enable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly |
chunkCacheKey | string | Optional cache key for continuation |
chunkIndex | number | string | Which chunk to return (1-based) |
conversationId | string | Resume this exact agy conversation (--conversation <id>); wins over `resume`. The call errors when agy silently starts a different conversation instead of resuming this one. IDs come from the [GEMINI_… |
debug | boolean | Unsupported legacy Gemini CLI option. Use agy logs for troubleshooting. |
effort | string | agy --effort, only for models that accept it; tiered Gemini names encode effort in the name ('Gemini 3.8 Flash (High)') and agy rejects --effort for them. |
extensions | Unsupported legacy Gemini CLI option. Antigravity uses plugins instead of Gemini CLI extensions. | |
includeDirectories | Additional directories to include in the Antigravity workspace. Comma-separated string or array maps to repeated --add-dir flags. | |
jsonSchema | string | Inline JSON Schema passed to agy --json-schema, which constrains the answer to structured_output. Requires outputFormat: 'json'. |
model | string | Optional Antigravity model name. Verified options: 'Gemini 4 Carbon (Low)', 'Gemini 4 Carbon (Medium)', 'Gemini 4 Carbon (High)', 'Gemini 4 Argon (Low)', 'Gemini 4 Argon (Medium)', 'Gemini 4 Argon (Hi… |
outputFormat | string | 'text' (default) returns agy's plain answer. 'json' returns agy's JSON envelope rendered as the conversation ID line, the response (or structured_output when jsonSchema is set), and a usage line. 'str… |
printTimeout | string | agy --print-timeout duration, such as '5m', '90s', or '10m'. If omitted, agy uses its default. The server stops agy 2 minutes after this limit, or after 2 hours when no limit is given. |
promptInteractive | string | Unsupported in MCP request/response mode because it requires an interactive TTY. |
resume | boolean | string | Resume an agy conversation. true/latest/continue maps to --continue; any other string maps to --conversation <id>. |
sandbox | boolean | Use Antigravity sandbox mode (--sandbox) to restrict terminal access |
workingDirectory | string | Working directory to run agy from. Use drive root (e.g., 'C:/' or 'D:/') to access files on that drive. |
yolo | boolean | Map to agy --dangerously-skip-permissions. Auto-approves all tool permission requests without prompting. Use with caution. |
ping
Echo
| Parameter | Type | Description |
|---|---|---|
prompt | string | Message to echo |
Help
receive help information
brainstorm
Generate novel ideas with dynamic context gathering. --> Creative frameworks (SCAMPER, Design Thinking, etc.), domain context integration, idea clustering, feasibility analysis, and iterative refinement.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Primary brainstorming challenge or question to explore |
constraints | string | Known limitations, requirements, or boundaries (budget, time, technical, legal, etc.) |
domain | string | Domain context for specialized brainstorming (e.g., 'software', 'business', 'creative', 'research', 'product', 'marketing') |
existingContext | string | Background information, previous attempts, or current state to build upon |
ideaCount | integer | Target number of ideas to generate (default: 10-15) |
includeAnalysis | boolean | Include feasibility, impact, and implementation analysis for generated ideas |
methodology | string | Brainstorming framework: 'divergent' (generate many ideas), 'convergent' (refine existing), 'scamper' (systematic triggers), 'design-thinking' (human-centered), 'lateral' (unexpected connections), 'au… |
model | string | Optional Antigravity model name. Verified options: 'Gemini 4 Carbon (Low)', 'Gemini 4 Carbon (Medium)', 'Gemini 4 Carbon (High)', 'Gemini 4 Argon (Low)', 'Gemini 4 Argon (Medium)', 'Gemini 4 Argon (Hi… |
workingDirectory | string | Working directory to run agy from. |
fetch-chunk
Retrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
| Parameter | Type | Description |
|---|---|---|
cacheKey * | string | The cache key provided in the initial changeMode response |
chunkIndex * | number | Which chunk to retrieve (1-based index) |
timeout-test
Test timeout prevention by running for a specified duration
| Parameter | Type | Description |
|---|---|---|
duration * | number | Duration in milliseconds (minimum 10ms) |
live-pass
Delegate a live UI pass to Gemini: it drives its own Playwright or Maestro MCP server, captures screenshots into a worktree-local artifact directory, looks at them itself, and returns a text verdict with per-frame observations. No image ever reaches the caller's context.
| Parameter | Type | Description |
|---|---|---|
brief * | string | Every fact Gemini needs, because it may not read code to find one: the app's start URL or app id, any link a user arrives by (an invite, email or share link) with where it comes from, the served-branc… |
driver * | string | Which MCP server Gemini drives: 'playwright' for web, 'maestro' for a booted simulator. |
targets * | array | Every frame the pass must produce. The verdict is derived from this list: a target that produced no frame fails the pass, whether Gemini skipped it with a reason or never reported it at all — a skip… |
workingDirectory * | string | Absolute path to the worktree under test. Used as the agy cwd and workspace root; must exist and must not be a filesystem root. |
artifactDir | string | Absolute directory for the captured PNGs and manifest.json. Must be strictly inside workingDirectory. Defaults to <workingDirectory>/.live-pass/<timestamp>. |
conversationId | string | Resume a previous pass so Gemini can report deltas (resolved / regressions / changes) against what it saw then. The browser or simulator still starts fresh. |
model | string | Optional Antigravity model name. Verified options: 'Gemini 4 Carbon (Low)', 'Gemini 4 Carbon (Medium)', 'Gemini 4 Carbon (High)', 'Gemini 4 Argon (Low)', 'Gemini 4 Argon (Medium)', 'Gemini 4 Argon (Hi… |
printTimeout | string | agy --print-timeout for the whole walk. A full pass takes minutes. The server stops agy 2 minutes after this limit, or after 2 hours when no limit is given. |
publishCommand | string | Optional shell command run in code after validation, with {files} replaced by the shell-quoted paths of the frames that validated OK. Its stdout is returned as PR markdown. Never run on a BLOCKED pass… |
yolo | boolean | Pass --dangerously-skip-permissions so Gemini may drive its MCP servers unattended. Without it agy denies the tool calls and the pass is BLOCKED. Refused when workingDirectory is a filesystem root. |
screen-review
Delegate screen review to Gemini: in 'review' mode it opens the given PNGs, inventories what each shows, and returns findings with an APPROVE / REQUEST_CHANGES verdict; in 'plan' mode it inventories the controls of a route file before anything is built. Text only — no image reaches the caller's context.
| Parameter | Type | Description |
|---|---|---|
instructions * | string | The caller's reviewer prompt, verbatim. Passed through unchanged so rule citations stay exact. |
mode * | string | 'review' judges screenshots after a live pass. 'plan' inventories a route file before any screenshot exists and returns no verdict. |
workingDirectory * | string | Absolute path to the checkout the instructions cite. Used as the agy cwd and workspace root, so repository-relative rule paths resolve. |
baseRef | string | review mode only: the git ref the diff under review is based on, such as 'origin/main'. Resolved in code to its merge base with HEAD (the call fails when it does not resolve); Gemini may then run read… |
changedRoutes | array | review mode: repo-relative route/component files the diff touched (from `git diff --name-only`). Every changed screen file (under an `app/` directory) that no image shows makes the review REQUEST_CHAN… |
context | string | Optional extra context: composition contract, changed-file list, issue text. |
conversationId | string | Resume a previous review so round 2 keeps round 1's visual analysis. |
images | array | review mode only: absolute paths to the PNG/JPEG frames to judge. Each must exist. |
model | string | Optional Antigravity model name. Verified options: 'Gemini 4 Carbon (Low)', 'Gemini 4 Carbon (Medium)', 'Gemini 4 Carbon (High)', 'Gemini 4 Argon (Low)', 'Gemini 4 Argon (Medium)', 'Gemini 4 Argon (Hi… |
printTimeout | string | agy --print-timeout for the review. The server stops agy 2 minutes after this limit, or after 2 hours when no limit is given. |
routeFile | string | plan mode only: absolute path to the route/screen source file to inventory. Must exist inside workingDirectory. |
yolo | boolean | Pass --dangerously-skip-permissions. Defaults to false because a review only reads. Set it to true when the instructions ask Gemini to read repository files that are not passed as images: it reaches f… |