Skip to content

Conversation

@findleyr
Copy link
Contributor

This CL implements support for SEP-1699, adding the following new API:

  • Event.Retry corresponds to the 'retry' field of a server sent event. This is used to signal client retry behavior.
  • RequestExtra.CloseStream is set by the streamable transport to allow closing a stream.

The streamable server transport is updated to set CloseStream for calls, allowing server operations or middleware to close the underlying stream. If the configured 'reconnectAfter' delay is set, a 'retry' message is sent prior to terminating the stream.

The streamable client transport is updated to read the configured delay.

Fixes #630

This CL implements support for SEP-1699, adding the following new API:

- Event.Retry corresponds to the 'retry' field of a server sent event.
  This is used to signal client retry behavior.
- RequestExtra.CloseStream is set by the streamable transport to allow
  closing a stream.

The streamable server transport is updated to set CloseStream for calls,
allowing server operations or middleware to close the underlying
stream. If the configured 'reconnectAfter' delay is set, a 'retry'
message is sent prior to terminating the stream.

The streamable client transport is updated to read the configured delay.

Fixes modelcontextprotocol#630
@findleyr findleyr merged commit 6237801 into modelcontextprotocol:main Dec 1, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEP-1699: support SSE polling

2 participants