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:
parent
989453d0da
commit
9c33eedbcb
1 changed files with 10 additions and 4 deletions
|
|
@ -24,10 +24,16 @@ async fn main() -> Result<(), ClientError> {
|
||||||
// Create the transport
|
// Create the transport
|
||||||
let transport = StdioTransport::new(
|
let transport = StdioTransport::new(
|
||||||
"cargo",
|
"cargo",
|
||||||
vec!["run", "-p", "mcp-server"]
|
vec![
|
||||||
.into_iter()
|
"run",
|
||||||
.map(|s| s.to_string())
|
"-p",
|
||||||
.collect(),
|
"mcp-server-examples",
|
||||||
|
"--example",
|
||||||
|
"counter-server",
|
||||||
|
]
|
||||||
|
.into_iter()
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect(),
|
||||||
HashMap::new(),
|
HashMap::new(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue