fix: if MCP-Protocol-Version header is not provided, assume 2025-03-26 - #855
fix: if MCP-Protocol-Version header is not provided, assume 2025-03-26#855kurtisvg wants to merge 1 commit into
Conversation
|
I have an open PR for this: #830 😄 |
|
@jonathanhefner Thanks. Would you mind updating to include "MAY" as well? I will close in favor of yours. |
@jonathanhefner IIUC, SHOULD implies it's preferred but not required. MAY implies we can do it if we want. Today it's permissible in the spec to reject the request missing the header (in fact, it also says you MUST for this version of the spec). IMO, clarifying it should be MAY instead of SHOULD isn't a breaking change and is preferred so folks don't try to depend on the behavior. |
The current language in the spec (2025-06-18) reads:
This updates the language to use MAY, and to assume the version is 2025-03-18 (since in version 2025-06-18 onwards the header is required).
Motivation and Context
Fixes #548
How Has This Been Tested?
Breaking Changes
I believe this is a non-breaking change because
2025-06-18already required the MCP-Protocol-Version header. While change in version assumption shouldn't actually break anyone on 2025-06-18, and will actually allow for better supporting backwards compatibility with 2025-03-18.Types of changes
Checklist
Additional context