Rust API Reference¶
The Rust crate mcp-methods is published on crates.io. Full rustdoc is auto-built by docs.rs:
Quick index¶
The most-imported types and functions, grouped:
Manifest¶
mcp_methods::server::manifest::load— load + validate a YAML manifestmcp_methods::server::Manifest— the parsed manifest structmcp_methods::server::Manifest::to_json— JSON view for FFI/RPC bridgingmcp_methods::server::manifest::find_workspace_manifest/find_sibling_manifest
Server framework¶
mcp_methods::server::McpServer— the framework’s MCP servermcp_methods::server::McpServer::register_typed_tool— register a custom toolmcp_methods::server::McpServer::serve— start the server (via rmcp transport)mcp_methods::server::ServerOptions— config used to construct the server
Workspace¶
Workspace::open(GitHub mode) /Workspace::open_local(local mode)PostActivateHook— callback signature
Skills¶
mcp_methods::server::SkillRegistry— builder for the three-layer resolved setmcp_methods::server::ResolvedRegistry— post-resolution skill setmcp_methods::server::serve_prompts— wire a resolved registry intoprompts/list/prompts/getmcp_methods::server::library_bundled_skills— framework defaults Vecmcp_methods::server::render_skill_template/write_skill_template— scaffold a starter SKILL.mdmcp_methods::server::cli::skills_lint/skills_list/skills_show/skills_new— composable CLI helpers
Watch + env¶
mcp_methods::server::maybe_watch— spawn the filesystem watchermcp_methods::server::load_env_for_mode—.envresolution
Primitives (always available, no server feature needed)¶
Features¶
Feature |
Default |
What it enables |
|---|---|---|
|
✅ on |
The full framework ( |
Disable with default-features = false for the bare primitives:
mcp-methods = { version = "0.3", default-features = false }
See also¶
Downstream Binary — how to wrap
McpServer::newArchitecture — three-crate layout
The published crates.io page