pub struct McpServerLaunch {
pub name: String,
pub command: String,
pub arguments: Vec<String>,
pub env: BTreeMap<String, String>,
}Expand description
One stdio MCP server the caller wants mounted into the session it is
starting. Uniform shape; each backend translates it into whatever its own
harness accepts (the ACP backend into session/new’s mcpServers).
Fields§
§name: StringServer name the harness registers the tools under.
command: StringExecutable to spawn.
arguments: Vec<String>Arguments passed to it.
env: BTreeMap<String, String>Extra environment for the spawned server.
Trait Implementations§
Source§impl Clone for McpServerLaunch
impl Clone for McpServerLaunch
Source§fn clone(&self) -> McpServerLaunch
fn clone(&self) -> McpServerLaunch
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 moreSource§impl Debug for McpServerLaunch
impl Debug for McpServerLaunch
Source§impl Default for McpServerLaunch
impl Default for McpServerLaunch
Source§fn default() -> McpServerLaunch
fn default() -> McpServerLaunch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpServerLaunch
impl<'de> Deserialize<'de> for McpServerLaunch
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
impl Eq for McpServerLaunch
Source§impl PartialEq for McpServerLaunch
impl PartialEq for McpServerLaunch
Source§impl Serialize for McpServerLaunch
impl Serialize for McpServerLaunch
impl StructuralPartialEq for McpServerLaunch
Auto Trait Implementations§
impl Freeze for McpServerLaunch
impl RefUnwindSafe for McpServerLaunch
impl Send for McpServerLaunch
impl Sync for McpServerLaunch
impl Unpin for McpServerLaunch
impl UnsafeUnpin for McpServerLaunch
impl UnwindSafe for McpServerLaunch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.