pub struct McpServerConfig { /* private fields */ }Expand description
Configuration for an MCP server.
Use the builder pattern to create a configuration, then pass it to McpServer::run().
§Example
ⓘ
use mcp::{McpServerConfig, McpServer, tools};
let config = McpServerConfig::builder()
.name("my-server")
.version("1.0.0")
.with_stdio_transport()
.with_tools(tools![MyTool])
.build();
McpServer::run(config).await?;Implementations§
Auto Trait Implementations§
impl Freeze for McpServerConfig
impl !RefUnwindSafe for McpServerConfig
impl Send for McpServerConfig
impl Sync for McpServerConfig
impl Unpin for McpServerConfig
impl !UnwindSafe for McpServerConfig
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