mcp: do not call DELETE for sessionless & doc adjustments (#960)

This commit is contained in:
Maciej Kisiel 2026-05-15 21:47:34 +02:00 • committed by GitHub
commit 1253d17add
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,6 +143,9 @@ type ServerOptions struct {
//
// As a special case, if GetSessionID returns the empty string, the
// Mcp-Session-Id header will not be set.
//
// GetSessionID is not consulted when [StreamableHTTPOptions.Stateless] is
// true, since stateless servers do not maintain sessions.
GetSessionID func() string
}