What Streamable HTTP Is and Why It Replaced HTTP+SSE
Model Context Protocol originally used a dual-endpoint HTTP+SSE transport, where a client opened a persistent Server-Sent Events connection for server-to-client messages and sent a separate HTTP POST for client-to-server messages. Streamable HTTP consolidates this into a single HTTP endpoint that accepts POST requests directly and can optionally upgrade to an SSE stream when the server needs to push multiple messages back to the client. This simplifies deployment behind standard HTTP infrastructure such as load balancers and API gateways, since teams no longer need to manage two coordinated endpoints with shared session context. The tradeoff is that more transport logic, including session tracking and stream state, now lives inside a single server-side implementation surface, which concentrates risk if that implementation is incomplete.
Session Handling: A Different Model Than Web Session Security
During initialization, an MCP server may assign a session ID, which the client must then include in subsequent requests via the Mcp-Session-Id HTTP header. This is a different pattern than the cookie-based or bearer-token session models most enterprise security teams already have tooling for, and it does not automatically inherit protections like HttpOnly flags, SameSite enforcement, or standard token expiry semantics unless the server implementation adds them explicitly. The specification recommends generating session IDs using cryptographically secure random number generators to reduce guessability, and it states that servers should never accept a client-supplied session ID at initialization. Security teams evaluating an MCP server should treat session ID generation as a control to verify directly rather than assume.
Where Session Hijacking and Replay Risk Enter the Picture
The core risk documented in specification guidance and independent security analysis is that a session ID, if leaked or predictable, can be used to hijack an active MCP session. This risk is amplified because Streamable HTTP supports optional resumability: clients can reconnect using a last-seen event ID to continue a broken SSE stream. If server-side resumption logic does not correctly scope replayed events to the originating session and identity, a resumed connection could receive messages intended for a different session. Available research does not document confirmed real-world exploits of this specific pattern, but it identifies the architectural conditions under which such an exploit would be possible, and notes inconsistent enforcement of Origin validation and session ID randomness across early community and vendor implementations.
Authentication and Authorization Are Not the Same as a Session ID
The MCP specification is explicit that session identifiers should not be used for authentication purposes. Authorization for HTTP-based transports is instead defined through an OAuth 2.1-based framework that includes authorization server metadata discovery and dynamic client registration, allowing MCP servers to integrate with existing enterprise identity providers rather than relying on protocol-native credentials. This separation matters operationally: a server that correctly implements the specification will validate an OAuth token independently on every request, regardless of whether the session ID is valid. A server that conflates the two, treating a valid session as sufficient proof of identity, creates a direct hijacking path. Enterprises should confirm which model an MCP server actually implements rather than assuming specification compliance.
Governance Above the Transport Layer
The MCP specification defines transport and authorization mechanisms, but it does not define fine-grained authorization for individual tool invocations, and it leaves several security recommendations as guidance rather than mandatory enforcement points. This creates a practical gap for enterprises: two MCP servers can both claim specification compliance while differing meaningfully in session ID entropy, Origin validation rigor, or authorization integration. Closing this gap requires runtime governance layered above the base protocol, including logging and monitoring of session activity, approval workflows for tool calls, and policy enforcement that does not depend solely on the MCP server's self-reported behavior. This is the area where Trussed AI's runtime governance capabilities apply, providing agent identity, least-privilege permissions, tool approval workflows, and audit logging as a control layer independent of any single MCP server implementation. Organizations exposing MCP servers to third-party agents should also establish explicit requirements confirming OAuth 2.1 authorization is implemented as specified, since adoption is inconsistent across the ecosystem.