Skip to main content

Crate wasmcp_macros

Crate wasmcp_macros 

Source

Attribute Macrosยง

mcp_component
mcp_prompts
Mark a module as containing MCP prompts. Functions in this module will be automatically registered as prompts.
mcp_resources
Mark a module as containing MCP resources. Functions in this module will be automatically registered as resources.
mcp_tools
Mark a module as containing MCP tools. Functions in this module will be automatically registered as tools.
prompt
Mark a function as an MCP prompt.
resource
Mark a function as an MCP resource.
tool
Mark a function as an MCP tool (for backwards compatibility).