Repository navigation
Allow user-configured MCP servers in ACP sessions (Antigravity & ACP providers) #13117
Replies: 2 comments
Update / Workaround for Antigravity UsersWhile investigating this further, we found a provider-level workaround that works today specifically for the Antigravity provider under T3 Code: Even though T3 Code's ACP adapter only sends ~/.t3/userdata/providers/antigravity/<provider-uuid>/config/mcp_config.jsonIf you symlink or write your standard MCP configuration (e.g. from for cfg in ~/.t3/userdata/providers/antigravity/*/config; do
ln -sfn ~/.gemini/config/mcp_config.json "$cfg/mcp_config.json"
doneThe Antigravity engine will automatically discover and load those servers, dynamically registering schemas and exposing all custom MCP tools alongside T3's built-in Why native T3 Code support is still needed:
|
|
Adding the workspace case here, as asked in #18112, which was a duplicate of this. Antigravity documents Measured on Oct 11 2026 (Linux; T3 Code nightly 0.0.46 of 2026-10-10; T3-managed Antigravity ACP server
Suggested fix:
The broader version (project-scoped MCP, rules, skills and subagents for every provider) is in #14118. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Currently, when T3 Code launches agent sessions via ACP (Agent Client Protocol) — such as the Antigravity provider using
agy_acp_server.par— themcpServersparameter passed duringsession/newis hardcoded to only register T3 Code's internalt3-codeHTTP server (preview, devices, link_pull_request).There is currently no mechanism for users or workspaces to declare custom external MCP servers (stdio, SSE, HTTP) to be passed into the ACP session lifecycle.
Code Investigation & Findings
ACP Protocol Capability:
The ACP specification implemented in T3 Code (
apps/server/src/provider/acp/and the underlying ACP types inbin.mjs) already supportshttp,sse, andstdio(command,args,env) inMcpServer:Current Hardcoded Injection:
In
apps/server/src/provider/Layers/AntigravityAdapter.ts(and corresponding ACP provider runtimes),mcpServersis hardcoded:Because ACP sessions rely entirely on the client handshake (
session/new) to declare tools, the underlying agent runtime (agy_acp_server.par) never discovers or loads the user's external MCP servers (e.g. from~/.gemini/antigravity/mcp_config.jsonor CLI registries).Proposed Solution
Configuration Schema:
Support an
mcpServersdictionary in user settings (~/.t3/userdata/settings.json) and/or workspace settings (.t3/settings.json):{ "mcpServers": { "context-gateway": { "command": "/usr/local/bin/my-mcp-gateway", "args": ["stdio"], "env": {} }, "remote-tools": { "type": "http", "url": "https://mcp.internal.net/sse", "headers": { "Authorization": "Bearer ..." } } } }ACP Session Setup:
When
AntigravityAdapter(and other ACP adapters) prepares thesession/newpayload, merge user-configured MCP servers alongside the internalt3-codeserver:Benefits
All reactions