The failure-cap path already appends tool disposal to syncChain, but the existing tests only covered give-up after settled discovery. They could not detect a future change that disposed the old set immediately and then allowed a blocked re-sync to publish a new leaked generation. Hold a list_changed fetch open, drive the reconnect budget to exhaustion, then release a different tool list. The test proves final cleanup runs after that in-flight swap and removes both the previous and late-published tool names while creating no attempt beyond the configured cap.
MCP — Model Context Protocol
English | 中文
Packages bridging the harness to the MCP ecosystem.
| Package | Role |
|---|---|
mcp-client/ |
MCP client bridge that registers external server tools on ctx.tools |