Trait McpServerBuilder

Source
pub trait McpServerBuilder: McpBackend + Sized {
    // Provided methods
    fn with_defaults() -> Self
       where Self: Default { ... }
    fn configure_stdio_logging() { ... }
}
Expand description

Simplified builder trait that provides common functionality for all MCP servers

Provided Methods§

Source

fn with_defaults() -> Self
where Self: Default,

Create server with default configuration

Source

fn configure_stdio_logging()

Configure stdio logging to redirect logs to stderr

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§