Context
During the #10139/#10241 Mailbox A2A integration effort, the agent successfully discovered a MailboxService.from tool-shape validation issue empirically via the unit-test + self-repair skills. This discovery was only possible because the agent used the ai/mcp/client primitive to spawn a fresh MCP server instance, bypassing the agent's own stale MCP cache.
The Problem
Agents operating on MCP servers they themselves are connected to often suffer from "ghost bugs"—where the agent's context or cached tool definitions do not match the live server state. The self-repair skill lacks explicit guidance on using a fresh MCP client to break out of this stale cache window.
The Architectural Reality
The ai/mcp/client infrastructure (e.g. mcp-cli.mjs) allows an agent to instantiate a completely clean, isolated client-server connection. This provides a "clean room" for diagnostics, isolated from the agent's primary long-lived host connection.
The Fix
Update the self-repair skill to explicitly document the ai/mcp/client primitive as a primary diagnostic tool for MCP server debugging.
Acceptance Criteria
Out of Scope
- Refactoring the
ai/mcp/client codebase itself.
Origin Session ID
Origin Session ID: 1c5933cc-a2d0-4296-ae3f-f4e815d385a2
Context
During the #10139/#10241 Mailbox A2A integration effort, the agent successfully discovered a
MailboxService.fromtool-shape validation issue empirically via theunit-test+self-repairskills. This discovery was only possible because the agent used theai/mcp/clientprimitive to spawn a fresh MCP server instance, bypassing the agent's own stale MCP cache.The Problem
Agents operating on MCP servers they themselves are connected to often suffer from "ghost bugs"—where the agent's context or cached tool definitions do not match the live server state. The
self-repairskill lacks explicit guidance on using a fresh MCP client to break out of this stale cache window.The Architectural Reality
The
ai/mcp/clientinfrastructure (e.g.mcp-cli.mjs) allows an agent to instantiate a completely clean, isolated client-server connection. This provides a "clean room" for diagnostics, isolated from the agent's primary long-lived host connection.The Fix
Update the
self-repairskill to explicitly document theai/mcp/clientprimitive as a primary diagnostic tool for MCP server debugging.Acceptance Criteria
.agent/skills/self-repair/SKILL.mdwith a new section documenting the "Fresh MCP Client Primitive".ai/mcp/client/mcp-cli.mjsto test a tool shape and bypass stale cache windows.Out of Scope
ai/mcp/clientcodebase itself.Origin Session ID
Origin Session ID: 1c5933cc-a2d0-4296-ae3f-f4e815d385a2