mcp: remove session header handling in stateless mode (#952)

This commit is contained in:
Maciej Kisiel 2026-05-15 09:51:14 +02:00 • committed by GitHub
commit 8eb54632ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,12 @@ Options listed below were added and will be removed in the 1.9.0 version of the
Params), restoring the previous behavior. The default behavior was changed to
align with SEP-2164 and the JSON-RPC specification.
- `allowsessionsinstateless` added. If set to `1`, stateless streamable HTTP
servers will read the `Mcp-Session-Id` request header (or generate one via
`GetSessionID`), set it on response headers, and accept `DELETE` requests,
restoring the previous behavior. The default behavior was changed so that
stateless servers ignore session IDs entirely and reject `DELETE` with 405.
### 1.6.0
Options listed below were added and will be removed in the 1.8.0 version of the SDK.