You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Right now, the SDK hardcodes the supported spec versions https://github.com/modelcontextprotocol/go-sdk/blob/main/mcp/shared.go#L43. However, we do not want to support 2024-11-05 but there is no way to configure that in the SDK so that it returns "Unsupported protocol" -32602 error.
Describe the solution you'd like
I suggest mcp.ServerOptions has a "SupportedVersions" slice that accepts a list of version enums. The zero value can fall back to the current default list.
Describe alternatives you've considered
Right now the workaround i can think of is having to intercept the initialization request and returning the unsupported protocol error
@maciej-kisiel Because according to my understanding, 2024-11-05 would require exposing two additional routes (/sse & /msg) which will add more complexity
Activity
maciej-kisiel commentedon May 11, 2026
Could you comment why you don't want to support that particular version?
zmay2030 commentedon May 11, 2026
@maciej-kisiel Because according to my understanding, 2024-11-05 would require exposing two additional routes (/sse & /msg) which will add more complexity
mcp: allow restricting the protocol versions a server supports (model…