Skip to content

Commit 5ace833

Browse files
author
Zachary German
committed
improved wording for 404 response handling
1 parent 542e4c6 commit 5ace833

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/specification/draft/basic/transports.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ server. To support establishing stateful sessions:
189189
`Mcp-Session-Id` header (other than initialization) with HTTP 400 Bad Request.
190190
3. The server **MAY** terminate the session at any time, after which it **MUST** respond
191191
to requests containing that session ID with HTTP 404 Not Found.
192-
4. When a client receives HTTP 404 in response to a request containing an
193-
`Mcp-Session-Id` obtained through an [initialization phase](/specification/draft/basic/lifecycle),
194-
it **SHOULD** start a new session by sending a new `InitializeRequest`
195-
without a session ID attached.
192+
4. When a client receives HTTP 404 in response to a request containing an `Mcp-Session-Id`,
193+
it **MUST** stop using that `Mcp-Sesssion-Id` and **SHOULD** start a new session by
194+
sending a new `InitializeRequest` without a session ID attached.
196195
5. Clients that no longer need a particular session (e.g., because the user is leaving
197196
the client application) **SHOULD** send an HTTP DELETE to the MCP endpoint with the
198197
`Mcp-Session-Id` header, to explicitly terminate the session.

0 commit comments

Comments
 (0)