pub struct McpManager {
pub connections: HashMap<String, McpProcess>,
pub tool_map: HashMap<String, String>,
pub discovered_tools: Vec<McpTool>,
pub active_config_signature: Option<String>,
pub configured_servers: usize,
pub startup_errors: Vec<String>,
pub discovery_errors: Vec<String>,
pub next_id: u64,
}Fields§
§connections: HashMap<String, McpProcess>§tool_map: HashMap<String, String>§discovered_tools: Vec<McpTool>§active_config_signature: Option<String>§configured_servers: usize§startup_errors: Vec<String>§discovery_errors: Vec<String>§next_id: u64Implementations§
Source§impl McpManager
impl McpManager
pub fn new() -> Self
pub async fn initialize_all(&mut self) -> Result<()>
pub fn load_mcp_config(&self) -> McpConfig
pub async fn discover_tools(&mut self) -> Vec<McpTool>
pub async fn call_tool( &mut self, full_name: &str, args: &JsonValue, ) -> Result<String>
pub fn runtime_report(&self) -> McpRuntimeReport
Auto Trait Implementations§
impl Freeze for McpManager
impl !RefUnwindSafe for McpManager
impl Send for McpManager
impl Sync for McpManager
impl Unpin for McpManager
impl UnsafeUnpin for McpManager
impl !UnwindSafe for McpManager
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more