ci: add documentation generation job (#59)
* ci: add documentation generation job 1. add doc ci in workflow 2. remove the readme in rmcp crate Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn> * docs: fix doc test in README.md 1) fix doc test in readme 2) fix some fmt Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn> --------- Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
0eea9aad4a
commit
b91fe54409
1 changed files with 24 additions and 187 deletions
10
README.md
10
README.md
|
|
@ -24,9 +24,13 @@ Start a client in one line:
|
|||
use rmcp::{ServiceExt, transport::TokioChildProcess};
|
||||
use tokio::process::Command;
|
||||
|
||||
let client = ().serve(
|
||||
TokioChildProcess::new(Command::new("npx").arg("-y").arg("@modelcontextprotocol/server-everything"))?
|
||||
).await?;
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let client = ().serve(
|
||||
TokioChildProcess::new(Command::new("npx").arg("-y").arg("@modelcontextprotocol/server-everything"))?
|
||||
).await?;
|
||||
Ok(())
|
||||
}
|
||||
```
|
||||
|
||||
#### 1. Build a transport
|
||||
|
|
|
|||
Loading…
Reference in a new issue