Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity ACP silently drops largest tools from user-configured MCP servers (e.g. cua-driver loses all 19 core interactive tools) #46244

Openbirkskyum(GitHub profile, opens in a new tab) opened this issue 0 comments

Summary

#38123 fixed silent tool eviction for T3 Code's own built-in t3-code MCP server on Antigravity ACP by exposing a 5-tool deferred-proxy (orchestrator_capabilities, delegate_task, task_status, tool_search, tool_call in apps/server/src/mcp/McpToolExposure.ts).

However, user-configured MCP servers (added via Settings / t3_mcp_server_update) are still passed directly through ACP session/new mcpServers, where agy acp hardcodes ForceAllToolsEager = true and silently drops the largest tools once the ~20k-token (~53 KB) shared schema budget fills (google-antigravity/antigravity-cli#1530), without falling back to Lazy: / call_mcp_tool and without surfacing any warning in T3 Code.

Environment

  • T3 Code: 0.1.14-nightly.20261130.5479 (macOS arm64)
  • Antigravity CLI (agy): 1.5.20
  • User MCP server: cua-driver 0.69.0 (cua-driver mcp --embedded)

Steps to reproduce

  1. Register a large user MCP server such as cua-driver (0.69.0: 63 tools, 205,545 B wire tools/list, 141,926 B total {name, description, inputSchema}).
  2. Start a new Antigravity thread in T3 Code.
  3. Inspect the <mcp_servers> block exposed to the model.

Actual behavior

  • Under # cua-driver -> Eager:, only the 44 smallest tools (<= 2,651 B, cumulative 53,046 B, cutting off after verify_state) are registered.
  • Under Lazy:, 0 tools are registered.
  • All 19 largest tools (>= 2,696 B through 9,216 B) are silently dropped and uncallable: right_click, browser_click, set_value, health_report, launch_app, run_script, press_key, scroll, type_text, set_agent_cursor_motion, browser_prepare, click, hotkey, drag, start_session, start_recording, set_config, run_steps, get_window_state.
  • Because smaller schemas survive, the agent receives cosmetic/deprecated tools (set_agent_cursor_*, get_accessibility_tree, replay_trajectory, install_ffmpeg) while losing every core interactive tool, with no error or warning shown in T3 Code.

Expected behavior / suggested mitigations

Until google-antigravity/antigravity-cli#1530 lands upstream, T3 Code could mitigate this for user-configured MCP servers on the Antigravity provider in one of two ways:

  1. Extend T3's deferred-proxy pattern (or an opt-in/automatic gateway) to large user-configured MCP servers on Antigravity ACP (similar to apps/server/src/mcp/McpToolExposure.ts), or
  2. Write user-configured MCP servers into the isolated Antigravity profile's config/mcp_config.json (currently an empty 0-byte file in ~/.t3/userdata/providers/antigravity/<id>/config/mcp_config.json), where agy supports native lazy loading instead of ACP session/new's ForceAllToolsEager = true, and/or
  3. Warn in the MCP / thread tools UI when total configured MCP tool schemas exceed Antigravity's eager budget so dropped tools are not silent.

Workaround

Wrapping cua-driver in a local stdio proxy that compacts descriptions/schemas and filters unused tools down to ~33 KB (44 core tools) restores all core interactive tools in fresh Antigravity threads.

  1. tanstack-source added labelsbug

Sign in to join this conversation.