pub struct McpSdkServerConfig {
pub type_: String,
pub name: String,
pub instance: Arc<McpSdkServer>,
}Expand description
Configuration for an in-process SDK MCP server.
Created via create_sdk_mcp_server(). The server
runs within your Rust application and handles tool calls in-process.
§Fields
type_— Always"sdk".name— Unique name identifier for the server.instance— Shared reference to theMcpSdkServerinstance.
Fields§
§type_: StringDiscriminator for in-process SDK transport ("sdk").
name: StringLogical server name used in MCP config maps.
instance: Arc<McpSdkServer>In-process server instance.
Trait Implementations§
Source§impl Clone for McpSdkServerConfig
impl Clone for McpSdkServerConfig
Source§fn clone(&self) -> McpSdkServerConfig
fn clone(&self) -> McpSdkServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpSdkServerConfig
impl !RefUnwindSafe for McpSdkServerConfig
impl Send for McpSdkServerConfig
impl Sync for McpSdkServerConfig
impl Unpin for McpSdkServerConfig
impl UnsafeUnpin for McpSdkServerConfig
impl !UnwindSafe for McpSdkServerConfig
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