From 424be4c16dd58110c55b4b34304be30db6a08ffa Mon Sep 17 00:00:00 2001 From: Rob Jellinghaus Date: Thu, 28 Aug 2025 08:34:56 -0700 Subject: [PATCH 1/2] Fix minor missing use declarations, make server instructions more accurate. --- crates/rmcp/README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/crates/rmcp/README.md b/crates/rmcp/README.md index 1ce43196..ec012e5d 100644 --- a/crates/rmcp/README.md +++ b/crates/rmcp/README.md @@ -15,7 +15,17 @@ 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::{ + ErrorData as McpError, + ServiceExt, + model::*, + tool, + tool_handler, + tool_router, + transport::stdio, + handler::server::router::tool::ToolRouter +}; +use std::future::Future; use std::sync::Arc; use tokio::sync::Mutex; @@ -57,7 +67,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() } From 9993ae8f03dee0b6eed6e1408b1414d7caaf4c75 Mon Sep 17 00:00:00 2001 From: Rob Jellinghaus Date: Thu, 28 Aug 2025 08:39:57 -0700 Subject: [PATCH 2/2] cargo fmt --- crates/rmcp/README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/rmcp/README.md b/crates/rmcp/README.md index ec012e5d..057295aa 100644 --- a/crates/rmcp/README.md +++ b/crates/rmcp/README.md @@ -16,14 +16,8 @@ Creating a server with tools is simple using the `#[tool]` macro: ```rust, ignore use rmcp::{ - ErrorData as McpError, - ServiceExt, - model::*, - tool, - tool_handler, - tool_router, - transport::stdio, - handler::server::router::tool::ToolRouter + 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;