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§
Sourcefn with_defaults() -> Selfwhere
Self: Default,
fn with_defaults() -> Selfwhere
Self: Default,
Create server with default configuration
Sourcefn configure_stdio_logging()
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.