-
Notifications
You must be signed in to change notification settings - Fork 605
Streamable HTTP resumability + redelivery + SSE polling via server-side disconnect #1077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+2,675
−246
Merged
Changes from 7 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
1e407ce
Client-side polling via `Last-Event-ID`
MackinnonBuck 677d9ea
`ISseEventStreamStore` and test implementation
MackinnonBuck 63fb022
Server-side resumability via `Last-Event-ID`
MackinnonBuck 11494e1
Server-side disconnect
MackinnonBuck 493062a
Integration tests
MackinnonBuck fe71286
Make `EnablePollingAsync` no-op in stateless mode
MackinnonBuck 2065c0e
Merge remote-tracking branch 'origin/main' into mbuck/resumability-re…
MackinnonBuck 66fcdb1
Update src/ModelContextProtocol.Core/Client/HttpClientTransportOption…
MackinnonBuck c9044c8
PR feedback: Don't dispose `_sseWriter` on final message
MackinnonBuck 2f19044
PR feedback: Use `SseEventStreamMode.Default` for unsolicited messages
MackinnonBuck f6858ab
Return 405 on GET in statless mode
MackinnonBuck 8e617bd
Make completing POST responses more robust
MackinnonBuck 1fdec43
Fix `TestSseEventStreamStore` and make tests more robust
MackinnonBuck ef6dd62
Allow tests to configure their own `HttpClient`
MackinnonBuck 58ee59e
Add test: Using an event ID for a different session
MackinnonBuck 4dd7383
Require negotiated protocol version for priming
MackinnonBuck 7262e5d
Improve `StreamableHttpPostTransport` thread safety
MackinnonBuck 2f7a923
Acquire lock before writing to parent transport
MackinnonBuck 7804475
PR feedback
MackinnonBuck c2bffd9
Simplify SSE message writing
MackinnonBuck 45b7382
PR feedback
MackinnonBuck b221f37
PR feedback: Throw in `EnablePollingAsync`
MackinnonBuck 0f9c09f
PR feedback: Delete `SseEventStreamStoreTests`
MackinnonBuck e589876
Make client default reconnection interval configurable
MackinnonBuck 1376430
Update src/ModelContextProtocol.Core/Client/StreamableHttpClientSessi…
MackinnonBuck f467015
PR feedback
MackinnonBuck fe1264c
Drop messages rather than throwing
MackinnonBuck 1b1a368
PR feedback: use `init` over `set`
MackinnonBuck e531a92
PR feedback: Attempt reconnection on 500 responses
MackinnonBuck d0cbd05
PR feedback: Rename `_diposed` variable
MackinnonBuck b627cba
PR feedback: Make stream completion more reliable
MackinnonBuck b6d4398
Remove `RetryInterval` from `HttpServerTransportOptions`
MackinnonBuck cb78114
Only fallback to parent transport after final message
MackinnonBuck e8c3032
Fix flaky test
MackinnonBuck 5502522
PR feedback
MackinnonBuck 4da6dca
Pin `@modelcontextprotocol/server-everything` version
MackinnonBuck 3bbc0d1
Add missing `CancellationToken` in tests and add diagnostics
MackinnonBuck 8ab1d82
Pin `@modelcontextprotocol/server-everything` version in CI
MackinnonBuck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.