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
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