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
docs: mark SSE transport examples as deprecated (#561)
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.
@@ -101,6 +63,51 @@ A server that demonstrates progress notifications during long-running operations
101
63
- Demonstrates progress notifications during long-running operations
102
64
- Can be run with `cargo run --example servers_progress_demo -- {stdio|sse|http|all}`
103
65
66
+
<details>
67
+
<summary>Deprecated: SSE Transport Examples</summary>
68
+
69
+
> **Note:** SSE (Server-Sent Events) transport has been removed from newer versions of the MCP specification. Streamable HTTP is the preferred transport for HTTP-based MCP servers as it is more reliable. These examples are kept for reference but should not be used for new implementations.
70
+
71
+
### Counter SSE Server (`counter_sse.rs`)
72
+
73
+
A server that provides counter functionality using Server-Sent Events (SSE) transport.
74
+
75
+
- Runs on `http://127.0.0.1:8000/sse` by default
76
+
- Provides the same counter tools as the stdio version
77
+
- Demonstrates SSE transport setup with graceful shutdown
78
+
- Can be accessed via web browsers or SSE-compatible clients
79
+
80
+
### Counter SSE Direct Server (`counter_sse_directly.rs`)
81
+
82
+
A minimal SSE server implementation showing direct SSE server usage.
83
+
84
+
- Simplified version of the SSE server
85
+
- Demonstrates basic SSE server configuration
86
+
- Provides counter functionality with minimal setup
87
+
88
+
### Complex OAuth SSE Server (`complex_auth_sse.rs`)
89
+
90
+
A comprehensive example demonstrating OAuth 2.0 integration with MCP servers.
91
+
92
+
- Full OAuth 2.0 authorization server implementation
0 commit comments