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:
parent
fa548d7401
commit
5cb8339210
1 changed files with 210 additions and 68 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue