We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2432b93 commit 6d22eeaCopy full SHA for 6d22eea
README.md
@@ -24,9 +24,13 @@ Start a client in one line:
24
use rmcp::{ServiceExt, transport::TokioChildProcess};
25
use tokio::process::Command;
26
27
-let client = ().serve(
28
- TokioChildProcess::new(Command::new("npx").arg("-y").arg("@modelcontextprotocol/server-everything"))?
29
-).await?;
+#[tokio::main]
+async fn main() -> Result<(), Box<dyn std::error::Error>> {
+ let client = ().serve(
30
+ TokioChildProcess::new(Command::new("npx").arg("-y").arg("@modelcontextprotocol/server-everything"))?
31
+ ).await?;
32
+ Ok(())
33
+}
34
```
35
36
#### 1. Build a transport
0 commit comments