Skip to content

Commit 06abe2c

Browse files
committed
Allow clients to terminate sessions
1 parent 20399a4 commit 06abe2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/specification/draft/basic/transports.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ servers which want to establish stateful sessions:
175175
4. When a client receives HTTP 404 in response to a request containing an
176176
`Mcp-Session-Id`, it **MUST** start a new session by sending a new `InitializeRequest`
177177
without a session ID attached.
178+
5. Clients that no longer need a particular session (e.g., because the user is leaving
179+
the client application) **SHOULD** send an HTTP DELETE to the MCP endpoint with the
180+
`Mcp-Session-Id` header, to explicitly terminate the session.
181+
- The server **MAY** respond to this request with HTTP 405 Method Not Allowed,
182+
indicating that the server does not allow clients to terminate sessions.
178183

179184
### Sequence Diagram
180185

0 commit comments

Comments
 (0)