Context
During debugging of the MailboxService.from tool-shape validation issue, Gemini successfully bypassed stale MCP cache issues by spawning a fresh MCP server via ai/mcp/client.
The Problem
Agents operating on MCP servers they themselves are connected to suffer from stale cache windows. If they modify an MCP tool definition, their own connection does not see the fresh tool shape, leading to ghost debugging loops.
The Architectural Reality
The ai/mcp/client primitive allows spawning a fresh client that bypasses the agent's stale MCP cache. This is a crucial substrate primitive for agent self-repair, but it is currently not formally documented as a debugging strategy.
The Fix
Update the .agent/skills/debugging-antigravity/SKILL.md (or relevant skill) to formally document the "Fresh MCP Client Isolation Strategy".
- Explain the stale cache problem for agents testing their own MCP servers.
- Document the
ai/mcp/client script usage as the empirical substrate for verifying fresh tool shapes.
Acceptance Criteria
Origin Session ID
Origin Session ID: 1c5933cc-a2d0-4296-ae3f-f4e815d385a2
Context
During debugging of the
MailboxService.fromtool-shape validation issue, Gemini successfully bypassed stale MCP cache issues by spawning a fresh MCP server viaai/mcp/client.The Problem
Agents operating on MCP servers they themselves are connected to suffer from stale cache windows. If they modify an MCP tool definition, their own connection does not see the fresh tool shape, leading to ghost debugging loops.
The Architectural Reality
The
ai/mcp/clientprimitive allows spawning a fresh client that bypasses the agent's stale MCP cache. This is a crucial substrate primitive for agent self-repair, but it is currently not formally documented as a debugging strategy.The Fix
Update the
.agent/skills/debugging-antigravity/SKILL.md(or relevant skill) to formally document the "Fresh MCP Client Isolation Strategy".ai/mcp/clientscript usage as the empirical substrate for verifying fresh tool shapes.Acceptance Criteria
debugging-antigravityskill to include the Fresh MCP Client Isolation Strategy.Origin Session ID
Origin Session ID: 1c5933cc-a2d0-4296-ae3f-f4e815d385a2