pub struct McpServersLoadedServer {
pub error: Option<String>,
pub name: String,
pub plugin_name: Option<String>,
pub plugin_version: Option<String>,
pub server_metadata: Option<McpServerMetadata>,
pub source: Option<McpServerSource>,
pub status: McpServerStatus,
pub transport: Option<McpServerTransport>,
}Expand description
A single MCP server status summary in session.mcp_servers_loaded, including name, status, source, transport, and plugin metadata.
Fields§
§error: Option<String>Error message if the server failed to connect
name: StringServer name (config key)
plugin_name: Option<String>Name of the plugin that supplied the effective MCP server config, only when source is plugin
plugin_version: Option<String>Version of the plugin that supplied the effective MCP server config, only when source is plugin
server_metadata: Option<McpServerMetadata>Server-advertised metadata for a connected server. Omitted when no live connection metadata is available, including while pending or when failed, disabled, stopped, or not configured.
source: Option<McpServerSource>Configuration source: user, workspace, plugin, or builtin
status: McpServerStatusConnection status: connected, failed, needs-auth, pending, disabled, stopped, or not_configured
transport: Option<McpServerTransport>Transport mechanism: stdio, http, sse (deprecated), or memory (in-process MCP server)
Trait Implementations§
Source§impl Clone for McpServersLoadedServer
impl Clone for McpServersLoadedServer
Source§fn clone(&self) -> McpServersLoadedServer
fn clone(&self) -> McpServersLoadedServer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more