fix: update transport command to use the correct example server (#36)

* fix: update transport command to use the correct example server

* style: cargo fmt
This commit is contained in:
situ2001 2025-03-20 12:15:10 +08:00 • committed by GitHub
commit 9c33eedbcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(),
);