pub struct MCPServerConfig {
pub command: String,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub url: String,
pub internal_only: bool,
}Expand description
MCP server connection configuration (stdio or HTTP).
Fields§
§command: StringCommand to run (for stdio transport, e.g. "npx").
args: Vec<String>Command arguments (for stdio transport).
env: HashMap<String, String>Extra environment variables (for stdio transport).
url: StringStreamable HTTP endpoint URL (for HTTP transport).
internal_only: boolIf true, MCP session is created but tools are NOT registered in ToolRegistry. Infrastructure servers (claude-flow, claude-code) should be internal.
Trait Implementations§
Source§impl Clone for MCPServerConfig
impl Clone for MCPServerConfig
Source§fn clone(&self) -> MCPServerConfig
fn clone(&self) -> MCPServerConfig
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 Debug for MCPServerConfig
impl Debug for MCPServerConfig
Source§impl Default for MCPServerConfig
impl Default for MCPServerConfig
Source§impl<'de> Deserialize<'de> for MCPServerConfig
impl<'de> Deserialize<'de> for MCPServerConfig
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 MCPServerConfig
impl RefUnwindSafe for MCPServerConfig
impl Send for MCPServerConfig
impl Sync for MCPServerConfig
impl Unpin for MCPServerConfig
impl UnsafeUnpin 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