mcp: update return meta in DiscoverResult (SEP-2575) (#1097)

This PR implements the latest changes introduced by
https://github.com/modelcontextprotocol/modelcontextprotocol/pull/3002
This commit is contained in:
Guglielmo Colombo 2026-07-16 16:10:12 +02:00 • committed by GitHub
commit 5cb8339210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1143,8 +1143,6 @@ type DiscoverResult struct {
SupportedVersions []string `json:"supportedVersions"`
// The server's capabilities.
Capabilities *ServerCapabilities `json:"capabilities"`
// Information about the server implementation.
ServerInfo *Implementation `json:"serverInfo"`
// Instructions describing how to use the server and its features.
Instructions string `json:"instructions,omitempty"`
}
@ -2365,6 +2363,8 @@ const (
MetaKeyProtocolVersion = "io.modelcontextprotocol/protocolVersion"
// MetaKeyClientInfo carries the client's [Implementation].
MetaKeyClientInfo = "io.modelcontextprotocol/clientInfo"
// MetaKeyServerInfo carries the server's [Implementation] on responses.
MetaKeyServerInfo = "io.modelcontextprotocol/serverInfo"
// MetaKeyClientCapabilities carries the client's [ClientCapabilities].
MetaKeyClientCapabilities = "io.modelcontextprotocol/clientCapabilities"
// MetaKeyLogLevel identifies the desired log level for the request.