mcp: remove outdated comment (#1003)
This commit is contained in:
parent
dd978160ab
commit
88c58c3006
1 changed files with 1 additions and 5 deletions
|
|
@ -1558,11 +1558,7 @@ func (ss *ServerSession) handle(ctx context.Context, req *jsonrpc.Request) (any,
|
||||||
if perRequestErr != nil {
|
if perRequestErr != nil {
|
||||||
return nil, perRequestErr
|
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 &&
|
if validatedMeta.usesNewProtocol &&
|
||||||
!slices.Contains(supportedProtocolVersions, validatedMeta.initializeParams.ProtocolVersion) {
|
!slices.Contains(supportedProtocolVersions, validatedMeta.initializeParams.ProtocolVersion) {
|
||||||
data, _ := json.Marshal(UnsupportedProtocolVersionData{
|
data, _ := json.Marshal(UnsupportedProtocolVersionData{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue