Module stream_manager

Module stream_manager 

Source
Expand description

Enhanced Stream Manager with MCP 2025-06-18 Resumability

This module provides proper SSE stream management with:

  • Event IDs for resumability
  • Last-Event-ID header support
  • Per-session event targeting (not broadcast to all)
  • Event persistence and replay
  • Proper HTTP status codes and headers

Structs§

SseStream
SSE stream wrapper that formats events properly (MCP compliant - one connection per stream)
StreamConfig
Configuration for stream management
StreamManager
Enhanced stream manager with resumability support (MCP spec compliant)
StreamStats
Stream manager statistics

Enums§

StreamError
Error type for stream management

Type Aliases§

ConnectionId
Connection ID for tracking individual SSE streams