[Bug]: Antigravity ACP silently drops largest tools from user-configured MCP servers (e.g. cua-driver loses all 19 core interactive tools) #46244
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#
- Register a large user MCP server such as
cua-driver(0.69.0: 63 tools,205,545 Bwiretools/list,141,926 Btotal{name, description, inputSchema}). - Start a new Antigravity thread in T3 Code.
- Inspect the
<mcp_servers>block exposed to the model.
Actual behavior#
- Under
# cua-driver -> Eager:, only the 44 smallest tools (<= 2,651 B, cumulative53,046 B, cutting off afterverify_state) are registered. - Under
Lazy:, 0 tools are registered. - All 19 largest tools (
>= 2,696 Bthrough9,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:
- Extend T3's
deferred-proxypattern (or an opt-in/automatic gateway) to large user-configured MCP servers on Antigravity ACP (similar toapps/server/src/mcp/McpToolExposure.ts), or - 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), whereagysupports native lazy loading instead of ACPsession/new'sForceAllToolsEager = true, and/or - 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.
tanstack-source added labelsbug
Sign in to join this conversation.