pub struct McpRuntimeServer {
pub name: String,
pub transport: McpRuntimeTransport,
pub description: Option<String>,
pub tags: Vec<String>,
pub tools: Option<McpToolConfig>,
}Expand description
Resolved runtime configuration for an MCP server, ready for spawning or connecting.
Fields§
§name: String§transport: McpRuntimeTransport§description: Option<String>§tools: Option<McpToolConfig>Implementations§
Source§impl McpRuntimeServer
impl McpRuntimeServer
Sourcepub fn from_definition(
name: impl Into<String>,
definition: McpServerDefinition,
) -> Self
pub fn from_definition( name: impl Into<String>, definition: McpServerDefinition, ) -> Self
Builds a runtime config from a stored server definition.
Sourcepub fn into_launcher(self, defaults: &StdioServerConfig) -> McpServerLauncher
pub fn into_launcher(self, defaults: &StdioServerConfig) -> McpServerLauncher
Converts a runtime server into a launcher/connector, merging stdio defaults.
Sourcepub fn to_launcher(&self, defaults: &StdioServerConfig) -> McpServerLauncher
pub fn to_launcher(&self, defaults: &StdioServerConfig) -> McpServerLauncher
Convenience clone-preserving conversion to a launcher/connector.
Trait Implementations§
Source§impl Clone for McpRuntimeServer
impl Clone for McpRuntimeServer
Source§fn clone(&self) -> McpRuntimeServer
fn clone(&self) -> McpRuntimeServer
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 McpRuntimeServer
impl Debug for McpRuntimeServer
Source§impl<'de> Deserialize<'de> for McpRuntimeServer
impl<'de> Deserialize<'de> for McpRuntimeServer
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
Source§impl From<McpServerEntry> for McpRuntimeServer
impl From<McpServerEntry> for McpRuntimeServer
Source§fn from(entry: McpServerEntry) -> Self
fn from(entry: McpServerEntry) -> Self
Converts to this type from the input type.
Source§impl PartialEq for McpRuntimeServer
impl PartialEq for McpRuntimeServer
Source§impl Serialize for McpRuntimeServer
impl Serialize for McpRuntimeServer
impl Eq for McpRuntimeServer
impl StructuralPartialEq for McpRuntimeServer
Auto Trait Implementations§
impl Freeze for McpRuntimeServer
impl RefUnwindSafe for McpRuntimeServer
impl Send for McpRuntimeServer
impl Sync for McpRuntimeServer
impl Unpin for McpRuntimeServer
impl UnsafeUnpin for McpRuntimeServer
impl UnwindSafe for McpRuntimeServer
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<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.