Procedural macros for mcp-host
Provides derive macros for MCP tools and resources.
Attributes
Struct-level attributes
#[mcp(name = "...")]- Override the tool/resource name (default: struct name)#[mcp(description = "...")]- Set the description
Field-level attributes
#[mcp(skip)]- Exclude field from input schema (for internal state fields)
Example