Skip to main contentCrate wasmcp_macros
Source - 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).