From 9c33eedbcb7a97b0976c1bebaca0bdd8f28455d4 Mon Sep 17 00:00:00 2001 From: situ2001 Date: Thu, 20 Mar 2025 12:15:10 +0800 Subject: [PATCH] fix: update transport command to use the correct example server (#36) * fix: update transport command to use the correct example server * style: cargo fmt --- examples/clients/src/stdio_integration.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/examples/clients/src/stdio_integration.rs b/examples/clients/src/stdio_integration.rs index ffdcc10..54da965 100644 --- a/examples/clients/src/stdio_integration.rs +++ b/examples/clients/src/stdio_integration.rs @@ -24,10 +24,16 @@ async fn main() -> Result<(), ClientError> { // Create the transport let transport = StdioTransport::new( "cargo", - vec!["run", "-p", "mcp-server"] - .into_iter() - .map(|s| s.to_string()) - .collect(), + vec![ + "run", + "-p", + "mcp-server-examples", + "--example", + "counter-server", + ] + .into_iter() + .map(|s| s.to_string()) + .collect(), HashMap::new(), );