claude-gemini-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CGM_CONFIG | No | Overrides the config file path (default is ~/.claude-gemini-mcp/config.toml). | |
| CGM_DATA_DIR | No | Overrides the data directory (default is ~/.claude-gemini-mcp). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Delegate implementation to Gemini (Antigravity CLI) as a worker. You are the architect: write a precise spec + acceptance criteria (prefer type 'command'), then create_task → run_task (or wait_task while running) → read the compact report → get_diff only for files you need → submit_review (approve|revise|reject) → finish_task (ask the user before 'merge').
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_taskB | Create a Gemini task in an isolated git worktree/branch (gemini/) from the repo's HEAD. seed_files {path: content} are your acceptance tests: committed first and protected from Gemini. copy_untracked (e.g. ['.env']) are copied but never committed. setup_command runs once (e.g. venv + deps). |
| run_taskB | Start the automatic inner loop (Gemini works → command checks → retry) and wait up to wait_seconds. Returns the compact report, or 'running' (then call wait_task). |
| wait_taskB | Keep waiting for a running task; returns the compact report when it stops. |
| get_diffC | Diff of Gemini's changes (optionally one file). Request only what you need to review. |
| get_logA | Tail of Gemini's raw transcript for one iteration. Use only to diagnose agent_error. |
| submit_reviewA | Your verdict. ac_results marks type=review ACs. approve requires every AC = pass. revise sends feedback to Gemini and runs a new round (returns its report). reject closes the task. |
| finish_taskA | merge: squash into the base branch (approved only; user's tree must be clean). keep: leave the branch. discard: delete worktree and branch. Ask the user before merge. |
| list_tasksC | List tasks (id, status, round, title). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool maps to a distinct phase of the task lifecycle: create, run, wait, inspect diff, inspect log, review, finish, list. The only borderline pair is run_task and wait_task, but descriptions make the boundary clear (run_task starts the loop and waits up to wait_seconds; wait_task resumes waiting on an already-running task). get_diff vs get_log are also clearly separated by purpose (review changes vs diagnose errors).
All eight tools follow a strict verb_noun snake_case pattern (create_task, run_task, wait_task, get_diff, get_log, submit_review, finish_task, list_tasks). Verbs are used consistently for their semantic class (create/run/wait/get/submit/finish/list), with no camelCase or stylistic mixing.
Eight tools is well within the ideal 3-15 range and each tool covers a necessary lifecycle stage with no filler. The set is tightly scoped to orchestration of Gemini tasks in git worktrees, with no redundant or trivial entries.
The surface covers the full lifecycle: create, execute, wait, inspect (diff and log), review with approve/revise/reject, finalize with merge/keep/discard, and list. Minor gaps exist, such as no explicit way to cancel/abort a running task or fetch full task details beyond the compact list entry, but agents can work around these via finish_task discard and wait_task.