rust-mcp-sdk 0.9.0

An asynchronous SDK and framework for building MCP-Servers and MCP-Clients, leveraging the rust-mcp-schema for type safe MCP Schema Objects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Trait for generating unique identifiers.
///
/// This trait is generic over the target ID type, allowing it to be used for
/// generating different kinds of identifiers such as `SessionId` or
/// transport-scoped `StreamId`.
///
pub trait IdGenerator<T>: Send + Sync
where
    T: From<String>,
{
    fn generate(&self) -> T;
}