You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add TDD stubs and failing tests for SSE polling (close_sse_stream)
This commit adds the API stubs and failing tests for the server-side
disconnect feature that enables SSE polling. When implemented, this
will allow servers to disconnect SSE streams without terminating them,
triggering client reconnection for polling patterns.
API stubs added:
- CloseSSEStreamCallback type in message.py
- close_sse_stream field in ServerMessageMetadata and RequestContext
- close_sse_stream() stub in StreamableHTTPServerTransport
- close_sse_stream() stub in FastMCP Context
- retry_interval parameter in session manager and transport
Tests added (all expected to fail until implementation):
- test_streamablehttp_client_receives_priming_event
- test_server_close_sse_stream_via_context
- test_streamablehttp_client_auto_reconnects
- test_streamablehttp_client_respects_retry_interval
- test_streamablehttp_sse_polling_full_cycle
- test_streamablehttp_events_replayed_after_disconnect
Github-Issue:#1699
0 commit comments