| Crates.io | mmcp-macros |
| lib.rs | mmcp-macros |
| version | 0.1.0 |
| created_at | 2025-04-10 04:05:03.31944+00 |
| updated_at | 2025-04-10 04:05:03.31944+00 |
| description | Procedural macros for the MMCP framework. |
| homepage | https://github.com/ryo33/mmcp |
| repository | https://github.com/ryo33/mmcp |
| max_upload_size | |
| id | 1627632 |
| size | 13,478 |
Procedural macros for the MMCP framework.
This crate provides procedural macros like #[tool] to make using the MMCP framework more ergonomic.
use mmcp::{tool, server::primitives::tool::Text};
use uuid::Uuid;
/// Generate a UUID
#[tool]
fn generate_uuid() -> Text<Uuid> {
Text(Uuid::new_v4())
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.