Skip to main content

Module macros

Module macros 

Source
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.