diff --git a/examples/http_server.rb b/examples/http_server.rb index 350875c..f460db3 100644 --- a/examples/http_server.rb +++ b/examples/http_server.rb @@ -156,7 +156,7 @@ end puts "Starting MCP HTTP server on http://localhost:9292" puts "Use POST requests to initialize and send JSON-RPC commands" puts "Example initialization:" -puts ' curl -X POST http://localhost:9292 -H "Content-Type: application/json" -d \'{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}\'' +puts ' curl -i -X POST http://localhost:9292 -H "Content-Type: application/json" -d \'{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}\'' puts "" puts "The server will return a session ID in the Mcp-Session-Id header." puts "Use this session ID for subsequent requests." diff --git a/examples/streamable_http_server.rb b/examples/streamable_http_server.rb index 1c0a286..5c8cfb4 100644 --- a/examples/streamable_http_server.rb +++ b/examples/streamable_http_server.rb @@ -147,7 +147,7 @@ puts "" puts "Testing SSE:" puts "" puts "1. Initialize session:" -puts ' curl -X POST http://localhost:9393 -H "Content-Type: application/json" \\' +puts ' curl -i -X POST http://localhost:9393 -H "Content-Type: application/json" \\' puts ' -d \'{"jsonrpc":"2.0","method":"initialize","id":1,"params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"sse-test","version":"1.0"}}}\'' puts "" puts "2. Connect SSE stream (use the session ID from step 1):"