pub struct McpServerEntry {
pub name: String,
pub transport: McpTransport,
pub command: Option<String>,
pub args: Vec<String>,
pub env: IndexMap<String, String>,
pub url: Option<String>,
pub headers: IndexMap<String, HeaderValue>,
}Expand description
An MCP server entry ready to be written into a target config file.
Env values are variable names (symbolic). Adapters translate them to the
target’s interpolation syntax (e.g. ${VAR} for Claude, plain name for Codex).
Fields§
§name: StringServer name as it appears in the target config.
transport: McpTransportTransport kind.
command: Option<String>Launch command (stdio only).
args: Vec<String>Launch arguments.
env: IndexMap<String, String>Env vars: config key → environment variable name (symbolic, never resolved).
url: Option<String>Remote URL (http only).
headers: IndexMap<String, HeaderValue>HTTP headers (http only).
Trait Implementations§
Source§impl Clone for McpServerEntry
impl Clone for McpServerEntry
Source§fn clone(&self) -> McpServerEntry
fn clone(&self) -> McpServerEntry
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 moreAuto Trait Implementations§
impl Freeze for McpServerEntry
impl RefUnwindSafe for McpServerEntry
impl Send for McpServerEntry
impl Sync for McpServerEntry
impl Unpin for McpServerEntry
impl UnsafeUnpin for McpServerEntry
impl UnwindSafe for McpServerEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more