Available on crate feature
macros only.Expand description
Procedural macros for defining MCP servers and tools.
This module re-exports the macros from model-context-protocol-macros.
Attribute Macrosยง
- mcp_
server - Marks a struct as an MCP server or an impl block as containing MCP tools.
- mcp_
tool - Marks a method as an MCP tool.