pub struct McpServer {
pub error: Option<String>,
pub name: String,
pub source: Option<McpServerSource>,
pub source_plugin: Option<String>,
pub source_plugin_version: Option<String>,
pub status: McpServerStatus,
}Expand description
Schema for the McpServer type.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§error: Option<String>Error message if the server failed to connect
name: StringServer name (config key)
source: Option<McpServerSource>Configuration source: user, workspace, plugin, or builtin
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, or not_configured
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
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 McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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