Expand description
Procedural macros for the Icarus SDK
This crate provides derive macros and attribute macros to reduce boilerplate when building MCP servers for ICP.
Attribute Macros§
- icarus_
canister - Crate-level attribute macro that scans for all icarus_tool functions and generates the list_tools query function automatically.
- icarus_
module - Module-level attribute macro that collects all icarus_tool functions and generates the list_tools query function automatically.
- icarus_
server - Attribute macro for MCP server setup
- icarus_
tool - Attribute macro for individual tool methods Usage: #[icarus_tool(“Tool description”)]
- icarus_
tools - Attribute macro for marking impl blocks that contain tool methods
Derive Macros§
- Icarus
Storable - Derive macro for ICP storable types
- Icarus
Storage - Derive macro for simplified storage declaration
- Icarus
Tool - Derive macro for creating MCP tools
- Icarus
Type - Derive macro for common Icarus type patterns