Skip to content

StreamableHTTP - listening for messages from the server trough GET established SSE #304

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
merged 12 commits into from
Apr 11, 2025

Conversation

ihrpr
Copy link
Contributor

@ihrpr ihrpr commented Apr 10, 2025

The Spec states:

The client MAY issue an HTTP GET to the MCP endpoint. This can be used to open an SSE stream, allowing the server to communicate to the client, without the client first sending data via HTTP POST.

Adding implementation to establish SSE connection through GET request. This is useful in particular for things like have tools/prompts/resource server notification to client - see examples.

Cleaning up README and adding more structure.

Remaining follow ups from Streamable HTTP transport

(mostly small changes, testing and cleaning up):

  • Session management and Resumability (this is not small though )
  • Refactor auth and make it work with session management
  • Extended Examples for client and server
  • Integration tests using examples
  • Cancellation for streams - test and if any bugs fix
  • Batching - mostly testing and checking if there are bugs
  • Client to handle closing stream when all responses are done (bad server case)

@ihrpr ihrpr changed the title StreamableHTTP - Listening for Messages from the Server trough GET established SSE StreamableHTTP - listening for messages from the server trough GET established SSE Apr 10, 2025
@ihrpr ihrpr marked this pull request as ready for review April 10, 2025 15:12
Copy link
Member

@jspahrsummers jspahrsummers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking, I think, but there are some things probably worth fixing up before merge. 🙏

@ihrpr ihrpr merged commit 56b0427 into main Apr 11, 2025
4 checks passed
@ihrpr ihrpr deleted the get-sse branch April 11, 2025 13:33
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.

None yet

2 participants