mcp: remove outdated comment (#1003)

This commit is contained in:
Guglielmo Colombo 2026-06-10 16:13:27 +02:00 • committed by GitHub
commit 88c58c3006
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1558,11 +1558,7 @@ func (ss *ServerSession) handle(ctx context.Context, req *jsonrpc.Request) (any,
if perRequestErr != nil {
return nil, perRequestErr
}
// server/discover is exempt from the version-validation gate so that a
// client probing with a version the server doesn't implement can still
// learn the server's supported versions from the response (whether the
// handler returns a DiscoverResult or an UnsupportedProtocolVersionError
// with a Data.Supported payload).
if validatedMeta.usesNewProtocol &&
!slices.Contains(supportedProtocolVersions, validatedMeta.initializeParams.ProtocolVersion) {
data, _ := json.Marshal(UnsupportedProtocolVersionData{