Skip to content

Commit 80290c0

Browse files
committed
example: add example in progress
1 parent 4c34b64 commit 80290c0

File tree

8 files changed

+723
-3
lines changed

8 files changed

+723
-3
lines changed

examples/clients/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ url = "2.4"
2828
tower = "0.5"
2929
axum = "0.8"
3030
reqwest = "0.12"
31+
clap = { version = "4.0", features = ["derive"] }
3132

3233
[[example]]
3334
name = "clients_sse"
@@ -51,4 +52,8 @@ path = "src/collection.rs"
5152

5253
[[example]]
5354
name = "clients_oauth_client"
54-
path = "src/auth/oauth_client.rs"
55+
path = "src/auth/oauth_client.rs"
56+
57+
[[example]]
58+
name = "clients_progress_test_client"
59+
path = "src/progress_test_client.rs"

examples/clients/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This directory contains Model Context Protocol (MCP) client examples implemented
44

55
## Example List
66

7+
78
### SSE Client (`sse.rs`)
89

910
A client that communicates with an MCP server using Server-Sent Events (SSE) transport.
@@ -57,6 +58,15 @@ A client demonstrating how to authenticate with an MCP server using OAuth.
5758
- Establishes an authorized connection to the MCP server using the acquired access token
5859
- Demonstrates how to use the authorized connection to retrieve available tools and prompts
5960

61+
### Progress Test Client (`progress_test_client.rs`)
62+
63+
A client that communicates with an MCP server using progress notifications.
64+
65+
- Launches the `cargo run --example clients_progress_test_client -- --transport {stdio|sse|http|all}` to test the progress notifications
66+
- Connects to the server using different transport methods
67+
- Tests the progress notifications
68+
69+
6070
## How to Run
6171

6272
Each example can be run using Cargo:

0 commit comments

Comments
 (0)