PulseEngine MCP Macros
Procedural macros for the PulseEngine MCP Framework that dramatically simplify server and tool development.
Overview
This crate provides macros that reduce boilerplate code and enable a more developer-friendly experience while maintaining the enterprise-grade capabilities of PulseEngine MCP.
Macros
#[mcp_tool]
Automatically generates MCP tool definitions from Rust functions:
use mcp_tool;
async
#[mcp_backend]
Auto-implements the McpBackend trait:
use mcp_backend;
;
#[mcp_server]
Complete server generation from a simple struct:
use mcp_server;
;
Features
- Zero Boilerplate: Focus on business logic, not protocol details
- Type Safety: Compile-time validation of tool definitions
- Auto Schema Generation: JSON schemas derived from Rust types
- Doc Comments: Function documentation becomes tool descriptions
- Progressive Complexity: Start simple, add enterprise features as needed
Usage
Add this to your Cargo.toml:
[]
= "0.5"
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.