From fb6e634cedc468c3bd50910b6904a38e49206c0f Mon Sep 17 00:00:00 2001 From: milind-soni Date: Tue, 25 Aug 2026 03:56:42 +0530 Subject: [PATCH 1/6] Let Antigravity models control computers (mount the computer MCP) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agy has no per-turn MCP flag and provably no project-level MCP config (1.1.19: embedded docs list only the global ~/.gemini/config/mcp_config.json and per-plugin files; agy mcp list ignores .gemini/{settings,mcp_config}.json in the cwd). So each turn upserts one key — openmausbot-computer — into the global file right before the spawn, preserving every other byte of the user's config and tolerating malformed JSON, and removes that key on the next computer-less turn so tools and box/control tokens cannot leak into later turns or the user's own agy sessions. Cloud boxes mount OpenMausBot's REST-to-MCP computer proxy (resolved via SPAWNED_PROXIES — never relative to the module, the 0.1.24 lesson); Local VM and VPS connections pass through as the stdio Cua command they already are. computerMcp is advertised only by full-auto instances: print mode has no interactive approval channel, and outside --dangerously-skip-permissions agy auto-denies tools that would prompt, so a non-fullAuto mount could never fire. localComputerMcp stays unset — the host desktop requires per-action human approval, which print mode cannot deliver in any mode. Co-Authored-By: Claude Fable 5 --- server/drivers/antigravity.test.ts | 191 ++++++++++++++++++++++++++++- server/drivers/antigravity.ts | 132 +++++++++++++++++++- 2 files changed, 318 insertions(+), 5 deletions(-) diff --git a/server/drivers/antigravity.test.ts b/server/drivers/antigravity.test.ts index 6b8e73c517..a2987b83a4 100644 --- a/server/drivers/antigravity.test.ts +++ b/server/drivers/antigravity.test.ts @@ -4,7 +4,7 @@ // // The fake CLI is a shebang script Windows cannot exec directly; // spawnCli resolves it to `node