Skip to content

Commit 1064aae

Browse files
committed
Add -p parameter to cargo run commands in other documentation
1 parent 11b5d44 commit 1064aae

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/OAUTH_SUPPORT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ rmcp = { version = "0.1", features = ["auth", "transport-streamable-http-client-
8484

8585
```bash
8686
# Run the OAuth server
87-
cargo run --example servers_complex_auth_streamhttp
87+
cargo run -p mcp-server-examples --example servers_complex_auth_streamhttp
8888

8989
# Run the OAuth client (in another terminal)
90-
cargo run --example clients_oauth_client
90+
cargo run -p mcp-client-examples --example clients_oauth_client
9191
```
9292

9393
## Authorization Flow Description

examples/clients/src/auth/oauth_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async fn main() -> Result<()> {
9797
// Get server URL and client metadata URL from CLI (with defaults)
9898
//
9999
// Usage:
100-
// cargo run --example clients_oauth_client -- <server_url> <client_metadata_url>
100+
// cargo run -p mcp-client-examples --example clients_oauth_client -- <server_url> <client_metadata_url>
101101
let args: Vec<String> = env::args().collect();
102102
let server_url = args
103103
.get(1)

examples/clients/src/progress_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async fn test_stdio_transport(records: u32) -> Result<()> {
199199
Ok(())
200200
}
201201

202-
// Test HTTP transport, must run the server with `cargo run --example servers_progress_demo -- http` in the servers directory
202+
// Test HTTP transport, must run the server with `cargo run -p mcp-client-examples --example servers_progress_demo -- http` in the servers directory
203203
async fn test_http_transport(http_url: &str, records: u32) -> Result<()> {
204204
tracing::info!("Testing HTTP Streaming Transport");
205205
tracing::info!("=====================================");

examples/clients/src/sampling_stdio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
1212
///
1313
/// This client demonstrates how to handle sampling requests from servers.
1414
/// It includes a mock LLM that generates simple responses.
15-
/// Run with: cargo run --example clients_sampling_stdio
15+
/// Run with: cargo run -p mcp-client-examples --example clients_sampling_stdio
1616
#[derive(Clone, Debug, Default)]
1717
pub struct SamplingDemoClient;
1818

examples/servers/src/sampling_stdio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tracing_subscriber::{self, EnvFilter};
1212
/// Simple Sampling Demo Server
1313
///
1414
/// This server demonstrates how to request LLM sampling from clients.
15-
/// Run with: cargo run --example servers_sampling_stdio
15+
/// Run with: cargo run -p mcp-server-examples --example servers_sampling_stdio
1616
#[derive(Clone, Debug, Default)]
1717
pub struct SamplingDemoServer;
1818

0 commit comments

Comments
 (0)