Skip to content

Commit ba4fe72

Browse files
committed
fix: update incorrect readme for streamable http examples
1 parent 5aca7a1 commit ba4fe72

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed
283 KB
Loading

examples/hello-world-server-streamable-http-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ rust-mcp-sdk = { workspace = true, default-features = false, features = [
1111
"server",
1212
"macros",
1313
"streamable-http",
14+
"sse",
1415
"hyper-server",
1516
"2025_06_18",
1617
] }

examples/hello-world-server-streamable-http/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ rust-mcp-sdk = { workspace = true, default-features = false, features = [
1111
"server",
1212
"macros",
1313
"streamable-http",
14+
"sse",
1415
"hyper-server",
1516
"2025_06_18",
1617
] }
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Simple MCP Client Core (SSE)
1+
# Simple MCP Client Core (Streamable HTTP)
22

3-
This is a simple MCP (Model Context Protocol) client implemented with the rust-mcp-sdk, dmeonstrating SSE transport, showcasing fundamental MCP client operations like fetching the MCP server's capabilities and executing a tool call.
3+
This is a simple MCP (Model Context Protocol) client implemented with the rust-mcp-sdk, dmeonstrating Streamable HTTP transport, showcasing fundamental MCP client operations like fetching the MCP server's capabilities and executing a tool call.
44

55
## Overview
66

77
This project demonstrates a basic MCP client implementation, showcasing the features of the [rust-mcp-sdk](https://github.com/rust-mcp-stack/rust-mcp-sdk).
88

9-
This example connects to a running instance of the [@modelcontextprotocol/server-everything](https://www.npmjs.com/package/@modelcontextprotocol/server-everything) server, which has already been started with the sse flag.
9+
This example connects to a running instance of the [@modelcontextprotocol/server-everything](https://www.npmjs.com/package/@modelcontextprotocol/server-everything) server, which has already been started with the `streamableHttp` argument.
1010

1111
It displays the server name and version, outlines the server's capabilities, and provides a list of available tools, prompts, templates, resources, and more offered by the server. Additionally, it will execute a tool call by utilizing the add tool from the server-everything package to sum two numbers and output the result.
1212

@@ -21,20 +21,20 @@ git clone [email protected]:rust-mcp-stack/rust-mcp-sdk.git
2121
cd rust-mcp-sdk
2222
```
2323

24-
2- Start `@modelcontextprotocol/server-everything` with SSE argument:
24+
2- Start `@modelcontextprotocol/server-everything` with `streamableHttp` argument:
2525

2626
```bash
27-
npx @modelcontextprotocol/server-everything sse
27+
npx @modelcontextprotocol/server-everything streamableHttp
2828
```
2929

30-
> It launches the server, making everything accessible via the SSE transport at http://localhost:3001/sse.
30+
> It launches the server, making everything accessible via the streamableHttp transport at http://localhost:3001/mcp.
3131
3232
2. Open a new terminal and run the project with:
3333

3434
```bash
35-
cargo run -p simple-mcp-client-sse-core
35+
cargo run -p simple-mcp-client-streamable-http-core
3636
```
3737

3838
You can observe a sample output of the project; however, your results may vary slightly depending on the version of the MCP Server in use when you run it.
3939

40-
<img src="../../assets/examples/simple-mcp-client-sse.png" width="640"/>
40+
<img src="../../assets/examples/simple-mcp-client-streamable-http" width="640"/>
283 KB
Loading
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Simple MCP Client (SSE)
1+
# Simple MCP Client (Streamable HTTP)
22

3-
This is a simple MCP (Model Context Protocol) client implemented with the rust-mcp-sdk, dmeonstrating SSE transport, showcasing fundamental MCP client operations like fetching the MCP server's capabilities and executing a tool call.
3+
This is a simple MCP (Model Context Protocol) client implemented with the rust-mcp-sdk, dmeonstrating StreamableHTTP transport, showcasing fundamental MCP client operations like fetching the MCP server's capabilities and executing a tool call.
44

55
## Overview
66

77
This project demonstrates a basic MCP client implementation, showcasing the features of the [rust-mcp-sdk](https://github.com/rust-mcp-stack/rust-mcp-sdk).
88

9-
This example connects to a running instance of the [@modelcontextprotocol/server-everything](https://www.npmjs.com/package/@modelcontextprotocol/server-everything) server, which has already been started with the sse flag.
9+
This example connects to a running instance of the [@modelcontextprotocol/server-everything](https://www.npmjs.com/package/@modelcontextprotocol/server-everything) server, which has already been started with the `streamableHttp` argument.
1010

1111
It displays the server name and version, outlines the server's capabilities, and provides a list of available tools, prompts, templates, resources, and more offered by the server. Additionally, it will execute a tool call by utilizing the add tool from the server-everything package to sum two numbers and output the result.
1212

@@ -21,20 +21,20 @@ git clone [email protected]:rust-mcp-stack/rust-mcp-sdk.git
2121
cd rust-mcp-sdk
2222
```
2323

24-
2- Start `@modelcontextprotocol/server-everything` with SSE argument:
24+
2- Start `@modelcontextprotocol/server-everything` with `streamableHttp` argument:
2525

2626
```bash
27-
npx @modelcontextprotocol/server-everything sse
27+
npx @modelcontextprotocol/server-everything streamableHttp
2828
```
2929

30-
> It launches the server, making everything accessible via the SSE transport at http://localhost:3001/sse.
30+
> It launches the server, making everything accessible via the streamableHttp transport at http://localhost:3001/mcp.
3131
3232
2. Open a new terminal and run the project with:
3333

3434
```bash
35-
cargo run -p simple-mcp-client-sse
35+
cargo run -p simple-mcp-client-streamable-http
3636
```
3737

3838
You can observe a sample output of the project; however, your results may vary slightly depending on the version of the MCP Server in use when you run it.
3939

40-
<img src="../../assets/examples/simple-mcp-client-sse.png" width="640"/>
40+
<img src="../../assets/examples/simple-mcp-client-streamable-http.png width="640"/>

0 commit comments

Comments
 (0)