pub struct McpServerConfig {
pub name: String,
pub transport: McpTransport,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub env: Option<HashMap<String, String>>,
pub url: Option<String>,
pub headers: Option<HashMap<String, String>>,
}Expand description
Configuration for a single MCP server
Fields§
§name: StringUnique name for this server (used as tool prefix)
transport: McpTransportTransport type (stdio or http)
command: Option<String>Command to execute (for stdio transport)
args: Option<Vec<String>>Arguments to pass to the command
env: Option<HashMap<String, String>>Environment variables to set (supports ${VAR} expansion)
url: Option<String>URL for HTTP transport
headers: Option<HashMap<String, String>>Custom headers for HTTP transport (supports ${VAR} expansion)
Trait Implementations§
Source§impl Clone for McpServerConfig
impl Clone for McpServerConfig
Source§impl Debug for McpServerConfig
impl Debug 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