pub struct McpServer {
pub display_name: Option<String>,
pub error: Option<String>,
pub name: String,
pub server_metadata: Option<McpServerMetadata>,
pub source: Option<McpServerSource>,
pub source_plugin: Option<String>,
pub source_plugin_version: Option<String>,
pub status: McpServerStatus,
}Expand description
MCP server status entry, including config source/plugin source and any connection error.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§display_name: Option<String>Human-readable display name supplied by a managed server catalog.
error: Option<String>Error message if the server failed to connect
name: StringServer name (config key)
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, builtin, or managed
source_plugin: Option<String>Plugin name that provided this server, when source is plugin.
source_plugin_version: Option<String>Plugin version that provided this server, when source is plugin.
status: McpServerStatusConnection status: connected, failed, needs-auth, pending, disabled, stopped, or not_configured