@snowmead/rust-docs-mcp

by snowmead · v1.0.0 · prompt

When testing the rust-docs MCP server, call the tools from the rust-docs-testing MCP.

Install

Add @snowmead/rust-docs-mcp to Claude Code with the PolySkill CLI: polyskill add @snowmead/rust-docs-mcp

Instructions

When testing the rust-docs MCP server, call the tools from the rust-docs-testing MCP. ## MCP Rust SDK Macros ### Core Macros for Tool Declaration 1. **`#[tool_router]`** - Applied to impl blocks to generate tool routing - Automatically creates a `tool_router()` method returning `ToolRouter<Self>` - Must be used on the service struct's implementation 2. **`#[tool]`** - Marks individual methods as MCP tools - Required parameter: `description = "tool description"` - Methods must be `pub async fn` - Can return any serializable type 3. **`#[tool_handler]`** - Applied to `ServerHandler` trait imple…

Keywords: github, rust, mcp-server, rust-docs, testing-tools, developer-tools, api-testing, software-development, open-source