pub struct McpHostState {
pub clients: Vec<String>,
pub disabled_servers: Vec<String>,
pub failed_servers: HashMap<String, McpServerFailureInfo>,
pub filtered_servers: Vec<String>,
pub mcp3p_enabled: bool,
pub needs_auth_servers: HashMap<String, McpServerNeedsAuthInfo>,
pub pending_connections: Vec<String>,
}Expand description
Host-level state, omitted when no MCP host is initialized.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§clients: Vec<String>Names of currently-connected MCP clients.
disabled_servers: Vec<String>Configured servers that are explicitly disabled.
failed_servers: HashMap<String, McpServerFailureInfo>Map of server name to recorded connection failure.
filtered_servers: Vec<String>Configured servers filtered out by enterprise allowlist policy.
mcp3p_enabled: boolWhether third-party MCP servers are policy-enabled for this session.
needs_auth_servers: HashMap<String, McpServerNeedsAuthInfo>Map of server name to recorded pending-auth state.
pending_connections: Vec<String>Names of servers with in-flight connection attempts.
Trait Implementations§
Source§impl Clone for McpHostState
impl Clone for McpHostState
Source§fn clone(&self) -> McpHostState
fn clone(&self) -> McpHostState
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 McpHostState
impl Debug for McpHostState
Source§impl Default for McpHostState
impl Default for McpHostState
Source§fn default() -> McpHostState
fn default() -> McpHostState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpHostState
impl<'de> Deserialize<'de> for McpHostState
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 McpHostState
impl RefUnwindSafe for McpHostState
impl Send for McpHostState
impl Sync for McpHostState
impl Unpin for McpHostState
impl UnsafeUnpin for McpHostState
impl UnwindSafe for McpHostState
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