You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
4
5
5
## Overview
6
6
7
7
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).
8
8
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.
10
10
11
11
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.
> 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.
31
31
32
32
2. Open a new terminal and run the project with:
33
33
34
34
```bash
35
-
cargo run -p simple-mcp-client-sse-core
35
+
cargo run -p simple-mcp-client-streamable-http-core
36
36
```
37
37
38
38
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.
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.
4
4
5
5
## Overview
6
6
7
7
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).
8
8
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.
10
10
11
11
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.
> 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.
31
31
32
32
2. Open a new terminal and run the project with:
33
33
34
34
```bash
35
-
cargo run -p simple-mcp-client-sse
35
+
cargo run -p simple-mcp-client-streamable-http
36
36
```
37
37
38
38
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.
0 commit comments