pub struct McpServerSettings {
pub id: String,
pub transport: McpTransportSettings,
pub inherited_environment: Vec<String>,
pub tools: Vec<McpToolSettings>,
pub limits: McpLimitsSettings,
pub lifecycle: McpLifecycleSettings,
pub reconnect: Option<McpReconnectSettings>,
}Expand description
Strict serializable settings for one explicitly configured MCP server.
Fields§
§id: StringStable canonical server ID.
transport: McpTransportSettingsExact shell-free transport settings.
inherited_environment: Vec<String>Exact environment variable names resolved only at spawn time.
tools: Vec<McpToolSettings>Host-owned remote tool policies.
limits: McpLimitsSettingsOptional protocol and output limit overrides.
lifecycle: McpLifecycleSettingsOptional lifecycle deadline overrides.
reconnect: Option<McpReconnectSettings>Explicit reconnect policy; absent means disabled.
Implementations§
Source§impl McpServerSettings
impl McpServerSettings
Sourcepub fn resolve(&self) -> Result<McpServerConfig, CodingError>
pub fn resolve(&self) -> Result<McpServerConfig, CodingError>
Converts trusted sparse settings into one fully validated pure config.
§Errors
Rejects malformed identities, paths, arguments, environment names, policies, limits, or lifecycle values before any process can start.
Trait Implementations§
Source§impl Clone for McpServerSettings
impl Clone for McpServerSettings
Source§impl Debug for McpServerSettings
impl Debug for McpServerSettings
Source§impl<'de> Deserialize<'de> for McpServerSettings
impl<'de> Deserialize<'de> for McpServerSettings
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 McpServerSettings
Source§impl PartialEq for McpServerSettings
impl PartialEq for McpServerSettings
Source§impl Serialize for McpServerSettings
impl Serialize for McpServerSettings
impl StructuralPartialEq for McpServerSettings
Auto Trait Implementations§
impl Freeze for McpServerSettings
impl RefUnwindSafe for McpServerSettings
impl Send for McpServerSettings
impl Sync for McpServerSettings
impl Unpin for McpServerSettings
impl UnsafeUnpin for McpServerSettings
impl UnwindSafe for McpServerSettings
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.