Skip to content

Antigravity ACP drops 11 T3 MCP tools and omits T3_ACP_MCP_NODE fallback #37884

Closed as not planned

Description

@adi-IL

What happened

In an Antigravity thread on T3 Code, 11 T3 Code MCP tools are missing from the model tool list, including delegate_task, t3_thread_launch, schedule_task, preview_open, and html_render.

The documented terminal fallback using T3_ACP_MCP_NODE and acp-mcp-call also fails because T3_ACP_MCP_NODE and related environment variables are unset in Antigravity's shell.

Diagnosis

  1. AntigravityAdapterV2 (apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts) sets mcpOverHttp: true without deferMcpTools: true. T3 Code sends all 71 MCP tool schemas (47,907 minified bytes) on session start instead of deferring them behind tool_search.

  2. Antigravity writes all 71 JSON schema files to <T3CODE_HOME>/userdata/providers/antigravity//antigravity-acp/mcp/t3-code/, then caps eager registration at 60 tools (29,006 bytes). Antigravity ACP does not emit a Lazy section or register call_mcp_tool, so the 11 largest schemas (>= 955 bytes each) are dropped: request_secret, t3_project_create, create_threads, preview_navigate, preview_open, t3_project_update, preview_act, html_render, delegate_task, t3_thread_launch, and schedule_task.

  3. AntigravityDriver.makeRuntime (apps/server/src/provider/Drivers/AntigravityDriver.ts) passes baseEnv: processEnvironment to buildAntigravityAcpSpawnInput without merging input.processEnvironment. Because Antigravity runs shell commands inside its own Go process instead of ACP terminal/create, T3_ACP_MCP_NODE, T3_ACP_MCP_ENDPOINT, T3_ACP_MCP_AUTHORIZATION, and T3CODE_THREAD_ID never reach the shell.

Steps to reproduce

  1. Start T3 Code Desktop 0.1.10-nightly.20261116.4800 with Antigravity enabled.
  2. Open an Antigravity thread (for example gemini-4-hydrogen in full-access mode).
  3. Check <T3CODE_HOME>/userdata/providers/antigravity//antigravity-acp/mcp/t3-code/ (71 JSON files exist) against the tools exposed to the model (60 tools; delegate_task, t3_thread_launch, schedule_task, preview_open, and html_render are absent).
  4. Run env | grep -i T3 in Antigravity's shell; T3_ACP_MCP_NODE and T3_ACP_MCP_ENDPOINT are absent.

Version

0.1.10-nightly.20261116.4800 (commit 7d32075)

Environment

Linux x64 (7.2.11-arch1-1), Node v24.22.1, T3 Code Desktop 0.1.10-nightly.20261116.4800

Evidence

Schema files on disk: 71 files, 47,907 minified bytes.
Loaded eager tools: 60 tools, 29,006 minified bytes (largest loaded: t3_thread_read at 942 bytes).
Dropped tools: 11 tools, 955 to 3,318 bytes (request_secret, t3_project_create, create_threads, preview_navigate, preview_open, t3_project_update, preview_act, html_render, delegate_task, t3_thread_launch, schedule_task).
Shell env check: T3_ACP_MCP_NODE, T3_ACP_MCP_ENDPOINT, T3_ACP_MCP_AUTHORIZATION, and T3CODE_THREAD_ID are unset.

Related issues

Closed issues #36088 and #36172 reported the same failure on 0.1.10-nightly.20261113.4616 and were closed as NOT_PLANNED. Both bugs still reproduce on 0.1.10-nightly.20261116.4800.

Fix applied or workaround

None in Antigravity for the 11 dropped tools. Switch the thread provider to Claude or Codex when those tools are needed.

Filed by

antigravity (Gemini 4 Hydrogen) via t3 triage

Activity

  1. juliusmarminge commented on Nov 17, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    Antigravity cannot run on the VM, so there was no live session. On origin/main f39ecd3 I checked the code paths and added one test to apps/server/src/provider/Drivers/AntigravityDriver.test.ts. The test registers an MCP provider session for a thread, sets the mock ACP agent to advertise HTTP MCP (T3_ACP_MCP_HTTP=1), opens a full-access session through AntigravityDriver's orchestrationAdapter, then inspects the spawned agent's env and the session/new mcpServers. On main it fails: T3CODE_THREAD_ID is undefined in the agent env ('expected undefined to be thread-antigravity-mcp'), so T3_ACP_MCP_NODE, ENDPOINT and AUTHORIZATION are missing too. Applying only baseEnv: { ...processEnvironment, ...input.processEnvironment } still fails, because the t3-code http server carries only the Authorization header and no 't3-tool-exposure: deferred'. Adding deferMcpTools: true to AntigravityAdapterV2 as well makes all 7 driver tests pass. I reverted both fixes; only the test is committed. I did not observe the 60-tool eager cap, which is inside Antigravity's binary.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  2. adi-IL commented on Nov 17, 2026

    @adi-IL
    Author

    Reopening request: the triage test above reproduced both bugs on origin/main (f39ecd3df8).

    1. T3CODE_THREAD_ID, T3_ACP_MCP_NODE, T3_ACP_MCP_ENDPOINT, and T3_ACP_MCP_AUTHORIZATION were missing from the spawned agent environment (expected undefined to be thread-antigravity-mcp).
    2. t3-tool-exposure: deferred was missing from the t3-code HTTP MCP headers, causing all 71 tool schemas to be sent upfront instead of deferred via tool_search.

    As noted in the triage comment, forwarding input.processEnvironment in AntigravityDriver and setting deferMcpTools: true in AntigravityAdapterV2 made all 7 driver tests pass.

    I opened #37886 with both fixes and unit tests. Please reopen this issue and review #37886.

  3. Aohan-Zhang commented on Nov 17, 2026

    @Aohan-Zhang

    I have encountered the same problem, please fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions