Skip to content

Set list of supported versions #945

Closed

Description

@zmay2030

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

Activity

  1. maciej-kisiel commented on May 11, 2026

    @maciej-kisiel
    Contributor

    Could you comment why you don't want to support that particular version?

  2. zmay2030 commented on May 11, 2026

    @zmay2030
    Author

    @maciej-kisiel Because according to my understanding, 2024-11-05 would require exposing two additional routes (/sse & /msg) which will add more complexity

  3. added a commit that references this issue on Aug 28, 2026
    21c18c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions