1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 10, 2025 |
---|
#483 in Procedural macros
11KB
210 lines
MMCP Macros
Procedural macros for the MMCP framework.
This crate provides procedural macros like #[tool]
to make using the MMCP framework more ergonomic.
Example
use mmcp::{tool, server::primitives::tool::Text};
use uuid::Uuid;
/// Generate a UUID
#[tool]
fn generate_uuid() -> Text<Uuid> {
Text(Uuid::new_v4())
}
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Dependencies
~1–1.4MB
~27K SLoC