End an MCP session
Ends the MCP session named by the `Mcp-Session-Id` header, so a long-lived client can let go of its id instead of waiting for the idle sweep.
The Udon MCP access token, generated in Settings → Assistant. Sent as Authorization: Bearer <token> by external MCP clients.
In: header
Response Body
application/json
curl -X DELETE "https://example.com/api/mcp"Tool approvals for a local CLI POST
A one-tool MCP server (`approve`) that a local CLI provider asks before it runs a tool, so the person in the Udon conversation can allow or deny the call. Udon gives the CLI a run ticket in the `ticket` query parameter; without a live ticket every call is denied. It authenticates like `/api/mcp` and is not meant for external MCP clients.
MCP server-initiated stream (unsupported) GET
The MCP Streamable HTTP transport's GET opens a server-initiated event stream. Udon does not offer one, so this always answers 405 with an `Allow` header, as the MCP specification prescribes.