pub struct McpServerConfig {
pub transport: McpTransport,
pub command: Option<String>,
pub args: Vec<String>,
pub url: Option<String>,
pub env: BTreeMap<String, EnvRef>,
pub headers: BTreeMap<String, HeaderRef>,
pub metadata: Option<McpServerMetadata>,
}Expand description
Declaration of an external MCP server (type = "mcp-server").
Secrets never appear here: every [server.env] value must be an
EnvRef, and every [server.headers] value a HeaderRef, naming
the variable to read on the developer’s machine, so a manifest can be
committed and shared without leaking anything.
Fields§
§transport: McpTransport§command: Option<String>§args: Vec<String>§url: Option<String>§env: BTreeMap<String, EnvRef>§headers: BTreeMap<String, HeaderRef>HTTP request headers, keyed by header name. Skipped when empty so a server that declares none serializes byte-for-byte as it did before headers existed, and no installed record drifts on upgrade.
metadata: Option<McpServerMetadata>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