go-sdk
go-sdk copied to clipboard
mcp: add SupportedVersions field to ServerOptions
Fixes #945
Allow users to configure which MCP protocol versions the server supports,
instead of using the hardcoded supportedProtocolVersions list.
Usage
srv := mcp.NewServer(&mcp.Implementation{...}, &mcp.ServerOptions{
SupportedVersions: []string{"2025-11-25", "2025-06-18"},
})
The zero value falls back to the default set of supported versions.