Skip to content

Commit 88c58c3

Browse files
mcp: remove outdated comment (#1003)
1 parent dd97816 commit 88c58c3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mcp/server.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,11 +1558,7 @@ func (ss *ServerSession) handle(ctx context.Context, req *jsonrpc.Request) (any,
15581558
if perRequestErr != nil {
15591559
return nil, perRequestErr
15601560
}
1561-
// server/discover is exempt from the version-validation gate so that a
1562-
// client probing with a version the server doesn't implement can still
1563-
// learn the server's supported versions from the response (whether the
1564-
// handler returns a DiscoverResult or an UnsupportedProtocolVersionError
1565-
// with a Data.Supported payload).
1561+
15661562
if validatedMeta.usesNewProtocol &&
15671563
!slices.Contains(supportedProtocolVersions, validatedMeta.initializeParams.ProtocolVersion) {
15681564
data, _ := json.Marshal(UnsupportedProtocolVersionData{

0 commit comments

Comments
 (0)