-
Notifications
You must be signed in to change notification settings - Fork 430
docs: mark SSE transport examples as deprecated #561
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
docs: mark SSE transport examples as deprecated #561
Conversation
SSE transport has been removed from newer versions of the MCP spec. Streamable HTTP is preferred as it is more reliable. Moves SSE examples to a collapsed details section at the bottom of the example list and removes them from the 'How to Run' section.
alexhancock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@domdomegg thoughts on timeline for full deletion?
@alexhancock I think we definitely could do this if you'd be open to it. SSE was removed from the spec quite some time ago now and I don't think anyone should be creating new SSE servers. I can see it being useful for people maintaining older SSE servers. But there might just not really be any (from Claude.ai traffic I don't think there are any popular rust SSE servers AFAIK). Again, up to you! Happy to put a PR up to remove if you think we can :) |
|
@domdomegg Yeah I am comfortable scorched-earthing SSE stuff now if you want - feels like time... If someone really wants to do SSE in rust they can rely on an older version of the package until they switch to streamable http. |
SSE transport has been removed from the MCP specification in favor of streamable HTTP. This removes all SSE-specific transport code: - Remove `transport-sse-client` and `transport-sse-server` features - Remove `SseClientTransport` and `SseServer` types - Remove SSE-specific examples (`counter_sse`, `counter_sse_directly`) - Migrate auth examples from SSE to streamable HTTP - Update tests to remove SSE transport usage - Update documentation BREAKING CHANGE: The following have been removed: - `transport-sse-client` feature - `transport-sse-client-reqwest` feature - `transport-sse-server` feature - `SseClientTransport` type - `SseServer` type - `sse_client` and `sse_server` modules Users should migrate to streamable HTTP transport which provides equivalent functionality. See `StreamableHttpClientTransport` and `StreamableHttpService` for the replacement APIs. Ref: #561 (comment)
SSE transport has been removed from the MCP specification in favor of streamable HTTP. This removes all SSE-specific transport code: - Remove `transport-sse-client` and `transport-sse-server` features - Remove `SseClientTransport` and `SseServer` types - Remove SSE-specific examples (`counter_sse`, `counter_sse_directly`) - Migrate auth examples from SSE to streamable HTTP - Update tests to remove SSE transport usage - Update documentation BREAKING CHANGE: The following have been removed: - `transport-sse-client` feature - `transport-sse-client-reqwest` feature - `transport-sse-server` feature - `SseClientTransport` type - `SseServer` type - `sse_client` and `sse_server` modules Users should migrate to streamable HTTP transport which provides equivalent functionality. See `StreamableHttpClientTransport` and `StreamableHttpService` for the replacement APIs. Ref: #561 (comment)
SSE transport has been removed from the MCP specification in favor of streamable HTTP. This removes all SSE-specific transport code: - Remove `transport-sse-client` and `transport-sse-server` features - Remove `SseClientTransport` and `SseServer` types - Remove SSE-specific examples (`counter_sse`, `counter_sse_directly`) - Migrate auth examples from SSE to streamable HTTP - Update tests to remove SSE transport usage - Update documentation BREAKING CHANGE: The following have been removed: - `transport-sse-client` feature - `transport-sse-client-reqwest` feature - `transport-sse-server` feature - `SseClientTransport` type - `SseServer` type - `sse_client` and `sse_server` modules Users should migrate to streamable HTTP transport which provides equivalent functionality. See `StreamableHttpClientTransport` and `StreamableHttpService` for the replacement APIs. Ref: #561 (comment)
BREAKING CHANGE: Remove SSE transport (/sse, /message endpoints) Changes: - Remove SSE transport - deprecated in MCP spec, removed in rmcp 0.11 - Add error module with thiserror for standardized error handling - Add clippy.toml for fine-grained lint configuration - Add Config builder pattern for fluent API - Enhance test helpers with start_with_auth() and test client utilities - Update documentation to reflect Streamable HTTP only refs: - modelcontextprotocol/rust-sdk#561 - modelcontextprotocol/rust-sdk#562
Summary
<details>section at the bottom of the example listSSE transport is less reliable than streamable HTTP and has been removed from newer versions of the MCP specification.