@@ -9,7 +9,7 @@ A simple server that communicates over standard input/output. This is useful for
99
1010** Usage:**
1111``` bash
12- ruby examples/stdio_server.rb
12+ $ ruby examples/stdio_server.rb
1313{" jsonrpc" :" 2.0" ," id" :0," method" :" tools/list" }
1414```
1515
@@ -25,11 +25,11 @@ A standalone HTTP server built with Rack that implements the MCP Streamable HTTP
2525
2626** Usage:**
2727``` bash
28- ruby examples/http_server.rb
28+ $ ruby examples/http_server.rb
2929```
3030
3131The server will start on ` http://localhost:9292 ` and provide:
32- - ** Tools** :
32+ - ** Tools** :
3333 - ` ExampleTool ` - adds two numbers
3434 - ` echo ` - echoes back messages
3535- ** Prompts** : ` ExamplePrompt ` - echoes back arguments as a prompt
@@ -41,12 +41,12 @@ A client that demonstrates how to interact with the HTTP server using all MCP pr
4141** Usage:**
42421 . Start the HTTP server in one terminal:
4343 ``` bash
44- ruby examples/http_server.rb
44+ $ ruby examples/http_server.rb
4545 ```
4646
47472 . Run the client example in another terminal:
4848 ``` bash
49- ruby examples/http_client.rb
49+ $ ruby examples/http_client.rb
5050 ```
5151
5252The client will demonstrate:
@@ -71,7 +71,7 @@ A specialized HTTP server designed to test and demonstrate Server-Sent Events (S
7171
7272** Usage:**
7373``` bash
74- ruby examples/streamable_http_server.rb
74+ $ ruby examples/streamable_http_server.rb
7575```
7676
7777The server will start on ` http://localhost:9393 ` and provide detailed instructions for testing SSE functionality.
@@ -88,12 +88,12 @@ An interactive client that connects to the SSE stream and provides a menu-driven
8888** Usage:**
89891 . Start the SSE test server in one terminal:
9090 ``` bash
91- ruby examples/streamable_http_server.rb
91+ $ ruby examples/streamable_http_server.rb
9292 ```
9393
94942 . Run the SSE test client in another terminal:
9595 ``` bash
96- ruby examples/streamable_http_client.rb
96+ $ ruby examples/streamable_http_client.rb
9797 ```
9898
9999The client will:
@@ -133,7 +133,7 @@ curl -X POST http://localhost:9393 \
133133
134134The HTTP server implements the MCP Streamable HTTP transport protocol:
135135
136- 1 . ** Initialize Session** :
136+ 1 . ** Initialize Session** :
137137 - Client sends POST request with ` initialize ` method
138138 - Server responds with session ID in ` Mcp-Session-Id ` header
139139
0 commit comments