File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
docs/specification/draft/basic Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ servers which want to establish stateful sessions:
175
175
4 . When a client receives HTTP 404 in response to a request containing an
176
176
` Mcp-Session-Id ` , it ** MUST** start a new session by sending a new ` InitializeRequest `
177
177
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.
178
183
179
184
### Sequence Diagram
180
185
You can’t perform that action at this time.
0 commit comments