name: mcp-server-sse-transport description: Configures Server-Sent Events (SSE) and HTTP POST transports for remote Model Context Protocol servers. Use when deploying centralized MCP tool servers in cloud environments. license: MIT metadata: author: Community List Maintainers version: "1.0.0" source: "https://modelcontextprotocol.io/docs/concepts/transports"
Mcp Server Sse Transport
Overview
SSE transport allows web and cloud AI clients to connect to remote MCP servers over HTTP, establishing a persistent unidirectional event stream for server messages with POST endpoints for client requests.
Operational Workflow
Initialize SSEServerTransport on HTTP GET /sse endpoints.:
- Initialize SSEServerTransport on HTTP GET /sse endpoints.
Implement POST /message handler routing client JSON-RPC payloads to the active session.:
- Implement POST /message handler routing client JSON-RPC payloads to the active session.
Authenticate connections using Bearer tokens or API keys.:
- Authenticate connections using Bearer tokens or API keys.
Manage session lifecycle and disconnect cleanups across multiple concurrent agent clients.:
- Manage session lifecycle and disconnect cleanups across multiple concurrent agent clients.
Recommended Tools & Environments
- Model Context Protocol SDK
- SSE
- Express / FastAPI
- TypeScript
Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.