Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/clients/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ url = "2.4"
tower = "0.5"
axum = "0.8"
reqwest = "0.12"
clap = { version = "4.0", features = ["derive"] }

[[example]]
name = "clients_sse"
Expand Down Expand Up @@ -56,3 +57,8 @@ path = "src/auth/oauth_client.rs"
[[example]]
name = "clients_sampling_stdio"
path = "src/sampling_stdio.rs"


[[example]]
name = "clients_progress_client"
path = "src/progress_client.rs"
11 changes: 11 additions & 0 deletions examples/clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
Loading