part 4MCP authorization, revision by revision·lesson 4.2 of 9·3 min read
Transports: HTTP+SSE, Streamable HTTP and stateless HTTP
The transport does not decide MCP authorization, but it shapes it. This lesson compares the three HTTP transports MCP has used (HTTP+SSE, Streamable HTTP and stateless Streamable HTTP): how messages travel in each, how many endpoints need protecting, and what changes for authorization when the session disappears.
In this lesson
Describe how messages travel in each transport.
Know how many endpoints must be protected in each case.
Explain what changes for authorization when there is no session.
The three HTTP transports
HTTP+SSE (2024-11-05)
Two endpoints. The client opens an SSE stream with a GET that stays open; every response arrives through it. It sends each message with a POST to a different path that the server tells it about.
GET /sse HTTP/1.1
Accept: text/event-stream
HTTP/1.1 200 OK
Content-Type: text/event-stream
event: endpoint
data: /messages?sessionId=abc123
--- later, on another connection ---
POST /messages?sessionId=abc123 HTTP/1.1
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
--- the response arrives over the SSE stream ---
event: message
data: {"jsonrpc":"2.0","id":1,"result":{...}}
Authorization: there are two endpoints to protect (the stream GET and the message POST). Replaced by Streamable HTTP in 2025-03-26 and kept only for backwards compatibility.
Streamable HTTP (2025-03-26 to 2025-11-25)
A single endpoint. The client sends a POST and the answer comes back in that same HTTP response (as JSON, or as an SSE stream if there are several messages). There is a session: after the initialize handshake, the server assigns an id in the Mcp-Session-Id header.
POST /mcp HTTP/1.1
Authorization: Bearer eyJ...
Accept: application/json, text/event-stream
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{...}}
HTTP/1.1 200 OK
Mcp-Session-Id: 1868a90c-7b5e-4c3d
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"result":{...}}
Authorization: a single endpoint. The token goes on every request, even when there is a session: the session does not replace authentication.
Stateless (2026-07-28)
The same single endpoint, with no handshake and no session. Each POST carries everything it needs.
POST /mcp HTTP/1.1
Authorization: Bearer eyJ...
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{...}}
(Other protocol headers and per-request metadata are omitted here; only the authorization-relevant parts are shown.)
Authorization: there is no "I already authenticated earlier": the token is the only thing that identifies the caller, and every request is validated on its own.
What each transport means for authorization
Transport
Endpoints to protect
Session
Implication for authorization
HTTP+SSE
2 (GET + POST)
Yes (in the message URL)
Protect both; a long-lived stream with a token that may expire
Streamable HTTP
1
Yes (Mcp-Session-Id)
Token on every request; the session does not authenticate
Stateless Streamable HTTP
1
No
Full validation on every request; cheap validation (JWT or a cache) pays off
The trade-offs between validating tokens locally as JWTs and asking the authorization server through introspection are covered in lesson 2.10.
Summary
HTTP+SSE: two endpoints. Streamable HTTP: one, with a session. Stateless: one, with no session.
The token always travels on every request; the session never authenticates.
Without a session, each request is validated on its own, so token validation must be cheap.
quiz · 3 questions
1. In Streamable HTTP with a session, can the client stop sending the token after initialize?
Sending the token in Authorization: Bearer on every request is non-optional in every revision that uses OAuth; a session id is not a credential.
2. Which transport forces you to protect two separate endpoints?
HTTP+SSE uses a GET that opens the stream and a POST for the messages, and both must be protected.
3. In the stateless transport of 2026-07-28, what identifies the caller?
There is no handshake and no session, so the token is the only thing that identifies the caller and each request is validated independently.