Trait McpClientHandler

Source
pub trait McpClientHandler {
    // Required method
    fn create_message(
        &self,
        p: CreateMessageRequestParams,
    ) -> impl Future<Output = Result<CreateMessageResult>> + Send;
}
Expand description

Trait for implementing client features

Used with McpClientBuilder::with_handler to create an MCP client that supports client features.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§