Problem#
When agy reaches an MCP tool through its own call_mcp_tool, the thread shows a bare "Ran command" with no tool name and no arguments. agy uses call_mcp_tool for any MCP tool that its context budget left out of the declared tools (see #38123), so with a full skills folder this covers most calls to large MCP servers. In one day of my own use, all 88 call_mcp_tool calls in agy's transcripts (84 to chrome-devtools, 4 to t3-code) showed up in T3 as a bare "Ran command".
agy 1.5.12 reports the call like this (captured from agy acp):
{"sessionUpdate":"tool_call","kind":"execute","title":"MCP Tool list_pages",
"rawInput":{"ServerName":"chrome-devtools","ToolName":"list_pages","Arguments":{}}}
extractMcpToolCallIdentity doesn't know this rawInput shape. kind: "execute" then turns it into a command with no command text, so the summary falls back to "Ran command".
Change#
extractMcpToolCallIdentity now recognizes rawInput.ServerName + rawInput.ToolName and returns the server, the tool, and Arguments as input. The adapter then shows the call like any other MCP tool call: same title, same tool name, same input.
Scope#
Fixes #39473. It's related to #38123, which is why agy uses call_mcp_tool so often, but it doesn't change it.
Verification#
- Red, then green: the new case in
runtimeModel.test.ts failed on main (got undefined) and passes with the fix. vp run check:changed passes: format, lint, knip, typecheck (14 packages), tests.
- In the real app on macOS arm64: an isolated dev server (
--no-seed) with agy 1.5.12, Agent Platform sign-in and gemini-3.8-flash. The agy profile's mcp_config.json names a stub stdio MCP server chrome-devtools (tools list_pages and navigate_page, each answering ok <tool>), and the profile has enough skills that agy routes those calls through call_mcp_tool. Prompt: "Call the chrome-devtools tool list_pages once, then call navigate_page with url https://example.com once. Then say done."
- Before (
main ec275c7a19): both calls were stored as command_execution titled "Ran command", with no tool name.
- After: both are
dynamic_tool rows, chrome-devtools.list_pages and chrome-devtools.navigate_page, with input {"url":"https://example.com"} and the server's output. The work summary changes from "Ran 3 commands and read 2 files" to "Used chrome devtools integration, ran 1 command, and read 2 files".
Before:

After:

(Local paths in the ls and Read rows are blacked out.)
Not checked: a t3-code tool reached through call_mcp_tool. It now gets the t3-code.<tool> identity, so it uses the same MCP projection as a direct call, but I didn't run one live.
Written and tested by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Evidence#
Replayed the reported execute-kind ACP calls with object-shaped Arguments:
{}for list_pages and{"url":"https://example.com"}for navigate_page. On each commit, opened the same synthetic thread, expanded its work summary, then expanded both tool rows. Real web client, Chromium, 1280×800, light theme, fresh isolated database.Proven: scenarios:prove exited 0: failure on base, pass on head. The after capture shows the unwrapped
urlinput, without ServerName / ToolName / Arguments wrapper rows.Scenario source — object-shaped Arguments.
Not shown: