Skip to content

Commit c70451e

Browse files
chore: add a note about client session ID handling (modelcontextprotocol#648)
* chore: add a note about client session ID handling Reapply PR 648 - clients MUST treat the session ID as a credential and handle it in a secure manner. * Update docs/specification/draft/basic/transports.mdx Co-authored-by: Paul Carleton <[email protected]> --------- Co-authored-by: Paul Carleton <[email protected]>
1 parent 204ade1 commit c70451e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/specification/draft/basic/transports.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ servers which want to establish stateful sessions:
202202
securely generated UUID, a JWT, or a cryptographic hash).
203203
- The session ID **MUST** only contain visible ASCII characters (ranging from 0x21 to
204204
0x7E).
205+
- The client **MUST** handle the session ID in a secure manner, see [Session Hijacking mitigations](/specification/draft/basic/security_best_practices#session-hijacking) for more details.
205206
2. If an `Mcp-Session-Id` is returned by the server during initialization, clients using
206207
the Streamable HTTP transport **MUST** include it in the `Mcp-Session-Id` header on
207208
all of their subsequent HTTP requests.

0 commit comments

Comments
 (0)