#mcp #macro #tool #uuid #mmcp-macros

macro mmcp-macros

Procedural macros for the MMCP framework

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 10, 2025

#483 in Procedural macros

MIT/Apache

11KB
210 lines

MMCP Macros

GitHub MIT/Apache 2.0 Crates.io docs.rs GitHub Repo stars

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