Skip to main content

mcp_tool

Macro mcp_tool 

Source
macro_rules! mcp_tool {
    ($fn_name:ident, $order:expr, $desc:literal, $param:ty,
     tips = [$($tip:literal),* $(,)?],
     |$srv:ident, $p:ident| async $body:block
    ) => { ... };
}
Expand description

Define an MCP tool: route builder fn plus inventory metadata.