mcp: allow restricting the protocol versions a server supports (#1199)
Fixes #945
This commit is contained in:
parent
5a89b63764
commit
21c18c6229
1 changed files with 397 additions and 35 deletions
|
|
@ -22,6 +22,13 @@ type ServerSessionState struct {
|
|||
// InitializedParams are the parameters from 'notifications/initialized'.
|
||||
InitializedParams *InitializedParams `json:"initializedParams"`
|
||||
|
||||
// NegotiatedProtocolVersion is the protocol version agreed during
|
||||
// 'initialize', which may differ from the version the client requested if
|
||||
// the server does not support it.
|
||||
//
|
||||
// It is empty for sessions that never ran the initialize handshake.
|
||||
NegotiatedProtocolVersion string `json:"negotiatedProtocolVersion,omitempty"`
|
||||
|
||||
// LogLevel is the logging level for the session.
|
||||
LogLevel LoggingLevel `json:"logLevel"`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue