Skip to content

Commit 9ef44f9

Browse files
ZachGermanMike Kistler
andauthored
Update docs/specification/draft/basic/transports.mdx
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
1 parent 56c841a commit 9ef44f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs/specification/draft/basic/transports.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ An MCP "session" consists of logically related interactions between a client and
177177
server, beginning with the [initialization phase](/specification/draft/basic/lifecycle). To support
178178
servers which want to establish stateful sessions:
179179

180-
1. A server using the Streamable HTTP transport **MAY** assign a session ID by including
181-
it in an `Mcp-Session-Id` header on any HTTP response.
180+
1. A server using the Streamable HTTP transport **MAY** assign a session ID at
181+
initialization time, by including it in an `Mcp-Session-Id` header on the HTTP
182+
response containing the `InitializeResult`.
182183
- The session ID **SHOULD** be globally unique and cryptographically secure (e.g., a
183184
securely generated UUID, a JWT, or a cryptographic hash).
184185
- The session ID **MUST** only contain visible ASCII characters (ranging from 0x21 to

0 commit comments

Comments
 (0)