go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

mcp: add SupportedVersions field to ServerOptions

Open wucm667 opened this issue 6 months ago • 0 comments

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.

wucm667 avatar May 07 '26 03:05 wucm667