pub struct McpStartServerRequest {
pub config: Option<Value>,
pub server_name: String,
}Expand description
Server name and optional configuration for an individual MCP server start. Omit config for a config-free start-by-name of an already-configured server.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§config: Option<Value>MCP server configuration (stdio process or remote HTTP/SSE). Omit to start the server with its already-registered configuration (config-free start-by-name).
server_name: StringName of the MCP server to start
Trait Implementations§
Source§impl Clone for McpStartServerRequest
impl Clone for McpStartServerRequest
Source§fn clone(&self) -> McpStartServerRequest
fn clone(&self) -> McpStartServerRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpStartServerRequest
impl Debug for McpStartServerRequest
Source§impl Default for McpStartServerRequest
impl Default for McpStartServerRequest
Source§fn default() -> McpStartServerRequest
fn default() -> McpStartServerRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpStartServerRequest
impl<'de> Deserialize<'de> for McpStartServerRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpStartServerRequest
impl RefUnwindSafe for McpStartServerRequest
impl Send for McpStartServerRequest
impl Sync for McpStartServerRequest
impl Unpin for McpStartServerRequest
impl UnsafeUnpin for McpStartServerRequest
impl UnwindSafe for McpStartServerRequest
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