Skip to content

Commit 137929c

Browse files
committed
update MESSAGE
1 parent 3b99748 commit 137929c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/streamable_http_client.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def main
6464
logger = create_logger
6565

6666
puts <<~MESSAGE
67-
MCP Streamable HTTP Client (SDK + SSE)
67+
MCP Streamable HTTP Client
6868
Make sure the server is running (ruby examples/streamable_http_server.rb)
6969
#{"=" * 60}
7070
MESSAGE
@@ -79,9 +79,11 @@ def main
7979
init_response = client.connect(
8080
client_info: { name: "streamable-http-client", version: "1.0" },
8181
)
82-
puts "Session ID: #{client.session_id}"
83-
puts "Protocol Version: #{client.protocol_version}"
84-
puts "Server Info: #{init_response.dig("result", "serverInfo")}"
82+
puts <<~MESSAGE
83+
ID: #{client.session_id}
84+
Version: #{client.protocol_version}
85+
Server: #{init_response.dig("result", "serverInfo")}
86+
MESSAGE
8587

8688
# Get available tools BEFORE establishing SSE connection
8789
# (Once SSE is active, server sends responses via SSE stream, not POST response)

0 commit comments

Comments
 (0)