model-context-protocol-macros-0.1.2 has been yanked.
MCP Macros
Procedural macros for the Model Context Protocol (MCP) Rust implementation.
Features
This crate provides procedural macros to reduce boilerplate when defining MCP servers:
#[mcp_server]- Define server metadata and collect tools#[mcp_tool]- Mark a method as an MCP tool#[mcp_internal]- Mark a server as built-in (no stdio wrapper)
Usage
use ;
use ToolResult;
use Value;
;
Parameter Documentation
Tool parameters can be documented using doc comments:
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.