File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments