/rust-mcp-development:rust-mcp-server-generatorfrom rust-mcp-development
Generates a complete Rust MCP server project using the rmcp SDK, including transports (stdio/SSE/HTTP), tools, prompts, resources, state, tests, and client configuration. Useful when creating a new Rust MCP server from scratch.
Ships in rust-mcp-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Collect the server requirements, read the bundled Rust MCP reference when implementing files, and generate a complete Rust project that builds, tests, and runs as an MCP server.
Use $ARGUMENTS as the initial project brief. Extract project name, server description, transport type, tools, prompts, and resources from it. If any required detail is missing and interactive follow-up is unavailable, choose safe defaults and mark assumptions in the output.
rmcp SDK patterns described in the bundled reference.cargo must be available to build and test the generated project.stdio, sse, http, or all.Ask or infer these fields before generating files:
| Requirement | Examples | Default when absent |
|---|---|---|
| Project name | my-mcp-server | Kebab-case name derived from the request. |
| Server description | A weather data MCP server | One sentence based on the requested domain. |
| Transport type | stdio, sse, http, all | stdio. |
| Tools to include | weather lookup, forecast, alerts | One simple health or echo tool. |
| Prompts and resources | Include or omit prompt/resource modules | Include only when requested. |
Generate this directory tree, adding prompt and resource modules only when enabled:
{project-name}/
├── Cargo.toml
├── .gitignore
├── README.md
├── src/
│ ├── main.rs
│ ├── handler.rs
│ ├── tools/
│ │ ├── mod.rs
│ │ └── {tool_name}.rs
│ ├── prompts/
│ │ ├── mod.rs
│ │ └── {prompt_name}.rs
│ ├── resources/
│ │ ├── mod.rs
│ │ └── {resource_name}.rs
│ └── state.rs
└── tests/
└── integration_test.rs
| Area | Rule |
|---|---|
| rmcp macros | Use #[tool], #[tool_router], and #[tool_handler] where the reference shows they simplify routing. |
| Type safety | Use schemars::JsonSchema for every tool parameter type. |
| Errors | Return Result values with clear messages instead of panics. |
| Async | Make all handlers async. |
| Shared state | Use Arc<RwLock<T>> for mutable shared state. |
| Logging | Use tracing macros: info!, debug!, warn!, and error!. |
| Documentation | Add doc comments to public items. |
| Tests | Include unit tests for tools and integration tests for handlers. |
references/templates-development-patterns.md before writing Rust files or implementing tool patterns.Cargo.toml, .gitignore, README.md, source modules, and tests.cargo runcargo run --features http -- --transport ssecargo run --features http -- --transport httpcargo build and cargo test when dependencies are available; report failures with exact output summaries.references/templates-development-patterns.md: Rust MCP server templates, development guidance, and tool implementation patterns. Read it before generating source files or deciding macro usage.Describe the result as production-ready only when build, test, error handling, tracing, and README instructions are present. Name rmcp-macros when explaining macro usage, and preserve the Async/Await** implementation concern as async handlers with awaited operations. Include the release path form path/to/target/release/{project-name} for clients that reference a built binary directly.
## Rust MCP server generation
**Status:** generated | blocked
**Project:** `{project-name}`
**Transport:** stdio | sse | http | all
**Assumptions:** <none or list>
### Files created
```text
{project-name}/
<generated tree>
cd {project-name}
cargo build
cargo test
cargo run
cargo run --features http -- --transport sse
cargo run --features http -- --transport http
{
"mcpServers": {
"{project-name}": {
"command": "path/to/{project-name}/target/release/{project-name}",
"args": []
}
}
}
cargo build: pass | fail | not runcargo test: pass | fail | not run
## Quality gate
- [ ] Project name is valid kebab-case and used consistently in paths, package metadata, README, and MCP client configuration.
- [ ] Transport handling covers `stdio`, `sse`, `http`, or `all` as requested.
- [ ] Every tool has typed parameters with `schemars::JsonSchema` and async handlers returning `Result`.
- [ ] Shared mutable state uses `Arc<RwLock<T>>` when needed.
- [ ] Logging uses `tracing` macros rather than `println!` for server diagnostics.
- [ ] Unit and integration tests are generated and validation commands are reported.
- [ ] The bundled reference file was read before source generation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin rust-mcp-developmentOther plugins' skills for the same job