Skip to content

Commit 357671c

Browse files
RobJellinghausRob Jellinghaus
andauthored
fix(readme): missing use declarations, more accurate server instructions (#399)
* Fix minor missing use declarations, make server instructions more accurate. * cargo fmt --------- Co-authored-by: Rob Jellinghaus <[email protected]>
1 parent eb46b4c commit 357671c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/rmcp/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ wait for the first release.
1515
Creating a server with tools is simple using the `#[tool]` macro:
1616

1717
```rust, ignore
18-
use rmcp::{ErrorData as McpError, ServiceExt, model::*, tool, tool_router, transport::stdio, handler::server::tool::ToolCallContext, handler::server::router::tool::ToolRouter};
18+
use rmcp::{
19+
handler::server::router::tool::ToolRouter, model::*, tool, tool_handler, tool_router,
20+
transport::stdio, ErrorData as McpError, ServiceExt,
21+
};
22+
use std::future::Future;
1923
use std::sync::Arc;
2024
use tokio::sync::Mutex;
2125
@@ -57,7 +61,7 @@ impl Counter {
5761
impl rmcp::ServerHandler for Counter {
5862
fn get_info(&self) -> ServerInfo {
5963
ServerInfo {
60-
instructions: Some("A simple calculator".into()),
64+
instructions: Some("A simple counter that tallies the number of times the increment tool has been used".into()),
6165
capabilities: ServerCapabilities::builder().enable_tools().build(),
6266
..Default::default()
6367
}

0 commit comments

Comments
 (0)