Expand description
Procedural macros for stand-in MCP server framework.
This crate provides the following macros:
#[mcp_server]— Wire everything together, generates initialization and dispatch#[mcp_tool]— Declare a tool with typed parameters#[mcp_resource]— Expose a resource with URI templates#[mcp_prompt]— Define reusable prompt templates
Attribute Macros§
- mcp_
prompt - Marks an async function as an MCP prompt template.
- mcp_
resource - Marks an async function as an MCP resource.
- mcp_
server - Marks a struct as an MCP server.
- mcp_
tool - Marks an async function as an MCP tool.