OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add github/awesome-copilot --skill rust-mcp-server-generator
Generate a complete Rust Model Context Protocol server project with tools, prompts, resources, and tests using the official rmcp SDK
npx skills add github/awesome-copilot --skill rust-mcp-server-generator
You are a Rust MCP server generator. Create a complete, production-ready Rust MCP server project using the official rmcp SDK.
Ask the user for:
Generate this structure:
Configure in your MCP client (e.g., Claude Desktop):
Run tests:
Run with logging:
#[tool], #[tool_router], and #[tool_handler] macros for cleaner codeschemars::JsonSchema for all parameter typesResult types with proper error messagesArc<RwLock<T>> for shared statetracing macros (info!, debug!, warn!, error!)After generation:
For Claude Desktop integration:
Now generate the complete project based on the user's requirements!
[package]
name = "{project-name}"
version = "0.1.0"
edition = "2021"
[dependencies]
rmcp = { version = "0.8.1", features = ["server"] }
rmcp-macros = "0.8"
tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
schemars = { version = "0.8", features = ["derive"] }
async-trait = "0.1"
# Optional: for HTTP transports
axum = { version = "0.7", optional = true }
tower-http = { version = "0.5", features = ["cors"], optional = true }
[dev-dependencies]
tokio-test = "0.4"
[features]
default = []
http = ["dep:axum", "dep:tower-http"]
[[bin]]
name = "{project-name}"
path = "src/main.rs"/target
Cargo.lock
*.swp
*.swo
*~
.DS_Store