1.7 KiB
1.7 KiB
MCP Versioning and Compatibility (Agent Guide)
Why this exists
Agents can fail for reasons that are already fixed in newer MCP runtime builds. This guide defines where to check runtime/tool versions and where fix records are tracked.
Runtime version header
Whetstone MCP now exposes a whetstoneVersionHeader in:
initialize.resultping.resulttools/list.resulttools/call.result
Header fields:
runtimeVersion: MCP runtime version (for example0.8.4)protocolVersion: MCP protocol date stringtoolContractDefaultVersion: default contract version for toolstoolSurfaceSchemaVersion: schema snapshot versiontoolCount: tool count in the running servertoolSurfaceFingerprint: deterministic fingerprint of tool namescompatibilityLedger.path: path to the issue/fix ledger JSONcompatibilityLedger.version: ledger schema/snapshot version
Tool-level contract header
Each tools/list entry includes x-whetstone:
contractVersioncompatibilityLedger
Compatibility ledger
Machine-readable ledger:
docs/mcp_compatibility_ledger.json
Use this for checks like:
- "Issue reproduced on
runtimeVersion=0.8.1" - "Ledger says fixed in
0.8.4" - "Action: update server runtime before more debugging"
Recommended triage flow for agents
- Call
initialize(orping) and capturewhetstoneVersionHeader. - If behavior seems wrong, read
docs/mcp_compatibility_ledger.jsonand match symptom tags. - If
runtimeVersion < fixed_in, report upgrade recommendation first. - Only escalate to deep debugging after version mismatch is ruled out.
Notes
- Keep ledger entries small and concrete (symptom, affected tools, fixed version).
- Add entries when a recurring failure pattern is fixed deterministically.