docs: fix packages used for server example (#309)

This commit is contained in:
TiejunZhou 2025-07-08 01:12:58 +08:00 committed by GitHub
parent 69712e321a
commit 2d997e18b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ wait for the first release.
Creating a server with tools is simple using the `#[tool]` macro:
```rust, ignore
use rmcp::{Error as McpError, ServiceExt, model::*, tool, tool_router, transport::stdio, handler::server::tool::ToolCallContext, handler::server::router::tool::ToolRouter};
use rmcp::{Error as McpError, ServiceExt, model::*, tool, tool_handler, tool_router, transport::stdio, handler::server::router::tool::ToolRouter};
use std::sync::Arc;
use tokio::sync::Mutex;