pub struct McpServerHandle {
pub name: String,
pub transport: McpClientTransport,
pub resolved_headers: HashMap<String, String>,
pub enabled: bool,
}Expand description
A pool-ready handle for one MCP server: identifier + transport + already- resolved authorization headers.
Built by the host (e.g. distri-cloud) by looking up kind = Mcp connections
in scope and resolving their auth_type into bearer headers. Passed into
McpClientPool::new so the pool itself never has to touch the connection
store.
Fields§
§name: StringStable name used by agents in ToolsConfig.mcp[].server.
transport: McpClientTransport§resolved_headers: HashMap<String, String>Headers to merge into the transport at connect time. Typically contains
Authorization: Bearer … if the backing connection is OAuth.
enabled: boolImplementations§
Trait Implementations§
Source§impl Clone for McpServerHandle
impl Clone for McpServerHandle
Source§fn clone(&self) -> McpServerHandle
fn clone(&self) -> McpServerHandle
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 moreAuto Trait Implementations§
impl Freeze for McpServerHandle
impl RefUnwindSafe for McpServerHandle
impl Send for McpServerHandle
impl Sync for McpServerHandle
impl Unpin for McpServerHandle
impl UnsafeUnpin for McpServerHandle
impl UnwindSafe for McpServerHandle
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