Module session_handler

Module session_handler 

Source
Expand description

JSON-RPC 2.0 over HTTP handler for MCP requests with SessionStorage integration

This handler implements proper JSON-RPC 2.0 server over HTTP transport with MCP 2025-06-18 compliance, including:

  • SessionStorage trait integration (defaults to InMemory)
  • StreamManager for SSE with resumability
  • 202 Accepted for notifications
  • Last-Event-ID header support
  • Per-session event targeting

Structs§

SessionMcpHandler
JSON-RPC 2.0 over HTTP handler with shared StreamManager
SessionSseStream
SSE stream body that implements hyper’s Body trait