RustAPI v0.1.501
Native MCP support — Your API is now an AI agent toolkit.
🚀 Highlights
-
Full MCP (Model Context Protocol) support via the new
rustapi-mcpcrate- Automatically expose routes as tools using your existing OpenAPI spec
- Tag-based filtering (
allowed_tags) so agents only see what you want them to - Real proxied
tools/call— every call goes through your normal middleware, extractors, validation, and error handling - Works great with Claude, Cursor, custom agents, etc.
-
One-liner enablement
.use_mcp(McpConfig::new().allowed_tags(vec!["public", "agent"]))
-
Crate cleanup: Consolidated from 13 crates down to 9.
rustapi-testing,jobs,view, andtoonare now features instead of separate published crates. -
Better observability UX
- Dashboard now has route filters + integrated replay browser
- Improved replay admin API with pagination and filters
📦 New / Notable Crates & Features
rustapi-mcp(new)protocol-mcp/mcpfeature onrustapi-rs- New
mcp_toolsexample (HTTP server + MCP sidecar together) - Cookbook: "MCP Integration (Agent Tools)"
🔗 Links
- Full Changelog: v0.1.470...v0.1.501
- Documentation: https://docs.rs/rustapi-rs
- Cookbook MCP recipe: in the docs
Ready for agents. Turn your Rust backend into something LLMs can actually use safely and correctly.
cargo add rustapi-rs --features fullThen just add .use_mcp(...) and you're done.