fastmcp-rust 0.3.1

Fast, cancel-correct MCP framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// Tests that #[resource] with parameters but no URI template produces a compile error.

use fastmcp_rust::{McpContext, resource};

#[resource(uri = "static://data")]
fn my_resource(name: String) -> String {
    format!("data for {name}")
}

fn main() {}