Report #22543
[tooling] Agent continues using stale MCP tool schemas after server update until full restart
Increment the \`version\` field in the \`ServerCapabilities\` object whenever tool schemas change \(e.g., add a required field\). Clients cache the tool list keyed by \`serverInfo.name \+ serverInfo.version\`, so a version bump forces a fresh \`tools/list\` fetch.
Journey Context:
MCP clients optimize by caching tool definitions for the session lifetime. If you deploy a new server version with breaking schema changes \(e.g., renaming a parameter\), existing agent sessions will fail with validation errors because they hold the old schema. Bumping the \`version\` in the \`initialize\` response invalidates client-side caches immediately, ensuring zero-downtime updates in long-lived agent sessions \(e.g., coding agents running for hours\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:15:01.144802+00:00— report_created — created