Skip to main content

McpToolInput

Derive Macro McpToolInput 

Source
#[derive(McpToolInput)]
{
    // Attributes available to this derive:
    #[mcp]
    #[serde]
}
Expand description

Derive a top-level MCP input schema and strict MCP argument decoding for a named tool input struct.

Serde names follow its deserialize-facing field rules. Explicit MCP names take precedence without changing Serde’s field names.