Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): MCP calls through call_mcp_tool show the tool, not "Ran command" #39474

Mergedhh36000(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/39474/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 30 additions and 0 deletions.

x
0 of 2 viewed, 2 left
22 additions and 0 deletionspackages/provider-acp/src/server/runtimeModel.test.tsModified
View file
@@ -1381,6 +1381,28 @@
+ it("recovers server, tool, and arguments from Antigravity call_mcp_tool calls", () => {
+ // agy 1.5.12 reaches MCP tools its context budget left out through call_mcp_tool.
+ const toolCall = toolCallFromUpdate({
+ sessionUpdate: "tool_call",
+ toolCallId: "call_13347576314095519317",
+ kind: "execute",
+ title: "MCP Tool navigate_page",
+ status: "in_progress",
+ rawInput: {
+ ServerName: "chrome-devtools",
+ ToolName: "navigate_page",
+ Arguments: { url: "https://example.com" },
+ },
+ });
+​
+ expect(extractMcpToolCallIdentity(toolCall)).toEqual({
+ server: "chrome-devtools",
+ tool: "navigate_page",
+ input: { url: "https://example.com" },
+ });
+ });
+​
it("recovers T3 identity from acp-mcp-call fallback commands", () => {
const toolCall = toolCallFromUpdate({
sessionUpdate: "tool_call",