pub enum McpServer {
Stdio(McpServerStdio),
Http(McpServerHttp),
Sse(McpServerSse),
}Expand description
Configuration for connecting to an MCP server.
A discriminated union over the three transports the
schema names: stdio (the baseline every agent
supports), http, and sse.
Variants§
Stdio(McpServerStdio)
Stdio transport. All agents MUST support this.
Http(McpServerHttp)
HTTP transport. The agent advertises support
via McpCapabilities::http.
Sse(McpServerSse)
SSE transport. The agent advertises support
via McpCapabilities::sse.
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
impl Eq for McpServer
impl StructuralPartialEq for McpServer
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