pub enum McpServersOption {
None,
Servers(HashMap<String, McpServerConfig>),
Raw(String),
}Expand description
MCP server configuration option for ClaudeAgentOptions.
§Variants
None— No MCP servers configured (default).Servers— A map of server name toMcpServerConfig.Raw— A raw JSON string or file path to an MCP configuration.
Variants§
None
No MCP servers are configured.
Servers(HashMap<String, McpServerConfig>)
Explicit map of server names to server configs.
Raw(String)
Raw CLI --mcp-config payload (JSON string or path).
Trait Implementations§
Source§impl Clone for McpServersOption
impl Clone for McpServersOption
Source§fn clone(&self) -> McpServersOption
fn clone(&self) -> McpServersOption
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 moreSource§impl Default for McpServersOption
impl Default for McpServersOption
Source§fn default() -> McpServersOption
fn default() -> McpServersOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for McpServersOption
impl !RefUnwindSafe for McpServersOption
impl Send for McpServersOption
impl Sync for McpServersOption
impl Unpin for McpServersOption
impl UnsafeUnpin for McpServersOption
impl !UnwindSafe for McpServersOption
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