mcp: bump protocol version from 2026-06-30 to 2026-07-28 (#1015)
The new official date for the protocol version has been moved to '2026-07-28'. Update all the references in the code of the old version.
This commit is contained in:
parent
b85574f685
commit
17029489ff
1 changed files with 137 additions and 137 deletions
|
|
@ -1441,7 +1441,7 @@ func (ss *ServerSession) Elicit(ctx context.Context, params *ElicitParams) (*Eli
|
|||
|
||||
// logLevelContextKey carries the per-request log level from
|
||||
// [ServerSession.handle] to [ServerSession.Log] for new-protocol
|
||||
// (>= 2026-06-30) requests. The level is scoped to a single in-flight request
|
||||
// (>= 2026-07-28) requests. The level is scoped to a single in-flight request
|
||||
// — including handler goroutines that call [ServerSession.Log] concurrently —
|
||||
// rather than to the session, which avoids races between concurrent requests
|
||||
// and aligns with SEP-2575's per-request opt-in model. The value type is
|
||||
|
|
@ -1450,7 +1450,7 @@ type logLevelContextKey struct{}
|
|||
|
||||
// Log sends a log message to the client.
|
||||
//
|
||||
// For new-protocol (>= 2026-06-30) requests, the level is taken from the
|
||||
// For new-protocol (>= 2026-07-28) requests, the level is taken from the
|
||||
// originating request's `_meta` field (SEP-2575); an absent or empty value
|
||||
// suppresses the message per spec. For old-protocol requests, the level is
|
||||
// taken from the session state set via `logging/setLevel`.
|
||||
|
|
@ -1609,7 +1609,7 @@ func (ss *ServerSession) handle(ctx context.Context, req *jsonrpc.Request) (any,
|
|||
case methodDiscover:
|
||||
// In case of methodDiscover call the state.initializeParams is populated
|
||||
// within the discover handle function to make sure the method is supported
|
||||
// when the user is probing a pre-2026-06-30 server.
|
||||
// when the user is probing a pre-2026-07-28 server.
|
||||
default:
|
||||
if !initialized && !validatedMeta.usesNewProtocol {
|
||||
ss.server.opts.Logger.Error("method invalid during initialization", "method", req.Method)
|
||||
|
|
|
|||
Loading…
Reference in a new issue