Skip to content

Commit 03a76cd

Browse files
committed
Clarify that the SDK lacks HTTP GET support for SSE streaming per MCP spec
1 parent bd55244 commit 03a76cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/streamable_http_client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def create_logger
2222
end
2323

2424
# Connect to SSE stream for real-time notifications
25-
# Note: The SDK doesn't support SSE streaming yet, so we use raw Net::HTTP
25+
# The SDK doesn't support HTTP GET for SSE streaming yet, so we use raw Net::HTTP
26+
# See: https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#listening-for-messages-from-the-server
2627
def connect_sse(session_id, logger)
2728
uri = URI(SERVER_URL)
2829

lib/mcp/client/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module MCP
44
class Client
5-
# TODO: https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#streamable-http (GET for SSE)
5+
# TODO: https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#listening-for-messages-from-the-server
66
# TODO: https://modelcontextprotocol.io/specification/2025-11-25/basic/transports#resumability-and-redelivery
77

88
class HTTP

0 commit comments

Comments
 (0)