mmcp-macros

Crates.iommcp-macros
lib.rsmmcp-macros
version0.1.0
created_at2025-04-10 04:05:03.31944+00
updated_at2025-04-10 04:05:03.31944+00
descriptionProcedural macros for the MMCP framework.
homepagehttps://github.com/ryo33/mmcp
repositoryhttps://github.com/ryo33/mmcp
max_upload_size
id1627632
size13,478
Ryo Hirayama (ryo33)

documentation

README

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.

Commit count: 19

cargo fmt