From 357671cc5c81b27334f2cf3949541374c99f6777 Mon Sep 17 00:00:00 2001 From: Rob Jellinghaus Date: Fri, 29 Aug 2025 03:21:41 -0700 Subject: [PATCH] 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 --- crates/rmcp/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/rmcp/README.md b/crates/rmcp/README.md index 1ce4319..057295a 100644 --- a/crates/rmcp/README.md +++ b/crates/rmcp/README.md @@ -15,7 +15,11 @@ wait for the first release. Creating a server with tools is simple using the `#[tool]` macro: ```rust, ignore -use rmcp::{ErrorData as McpError, ServiceExt, model::*, tool, tool_router, transport::stdio, handler::server::tool::ToolCallContext, handler::server::router::tool::ToolRouter}; +use rmcp::{ + handler::server::router::tool::ToolRouter, model::*, tool, tool_handler, tool_router, + transport::stdio, ErrorData as McpError, ServiceExt, +}; +use std::future::Future; use std::sync::Arc; use tokio::sync::Mutex; @@ -57,7 +61,7 @@ impl Counter { impl rmcp::ServerHandler for Counter { fn get_info(&self) -> ServerInfo { ServerInfo { - instructions: Some("A simple calculator".into()), + instructions: Some("A simple counter that tallies the number of times the increment tool has been used".into()), capabilities: ServerCapabilities::builder().enable_tools().build(), ..Default::default() }