pub struct McpServerBuilder { /* private fields */ }Expand description
MCP Server Builder - Convenient server configuration
Implementations§
Source§impl McpServerBuilder
impl McpServerBuilder
Sourcepub fn with_capabilities(self, capabilities: ServerCapabilities) -> Self
pub fn with_capabilities(self, capabilities: ServerCapabilities) -> Self
Set server capabilities
Sourcepub fn with_auth_handler<H: AuthHandler + 'static>(self, handler: H) -> Self
pub fn with_auth_handler<H: AuthHandler + 'static>(self, handler: H) -> Self
Set authentication handler
Sourcepub fn with_tool_provider<P: ToolProvider + 'static>(self, provider: P) -> Self
pub fn with_tool_provider<P: ToolProvider + 'static>(self, provider: P) -> Self
Set tool provider
Sourcepub fn with_server_info(self, server_info: ServerInfo) -> Self
pub fn with_server_info(self, server_info: ServerInfo) -> Self
Set server info
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpServerBuilder
impl !RefUnwindSafe for McpServerBuilder
impl Send for McpServerBuilder
impl Sync for McpServerBuilder
impl Unpin for McpServerBuilder
impl UnsafeUnpin for McpServerBuilder
impl !UnwindSafe for McpServerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more