chore(example): add example in progress (#271)

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
jokemanfire 2025-09-13 08:15:02 +08:00 • committed by GitHub
commit f8a747eaca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,7 @@ This directory contains Model Context Protocol (MCP) client examples implemented
## Example List
### SSE Client (`sse.rs`)
A client that communicates with an MCP server using Server-Sent Events (SSE) transport.
@ -67,6 +68,16 @@ A client demonstrating how to use the sampling tool.
- Retrieves server information and list of available tools
- Calls the `ask_llm` tool
### Progress Test Client (`progress_test_client.rs`)
A client that communicates with an MCP server using progress notifications.
- Launches the `cargo run --example clients_progress_client -- --transport {stdio|sse|http|all}` to test the progress notifications
- Connects to the server using different transport methods
- Tests the progress notifications
- The sse and http should run the server first
## How to Run
Each example can be run using Cargo: