Terminate an MCP Streamable HTTP session
DELETE/v1/mcp
Terminate the MCP session identified by the Mcp-Session-Id header. Subsequent requests bearing the same session id will receive 404 Not Found.
Request​
Responses​
- 204
- 401
- 403
- 404
Session terminated.
Unauthorized. The /v1/mcp endpoint requires runtime.auth to be configured. Configure an API key provider in your Spicepod and retry with credentials.
Forbidden. The Host header value is not in the runtime.mcp.allowed_hosts list.
Unknown or already-terminated Mcp-Session-Id.
