pub enum McpIntegrationError {
Sdk(Error),
Connection(String),
Discovery(String),
ToolConversion(String),
InvalidSchema(String),
}
Expand description
Errors that can occur while integrating with an MCP server.
These errors typically arise when discovering available tools, connecting to the server, or converting MCP actions into the agent’s internal tool representation.
Variants§
Sdk(Error)
A lower-level error bubbled up from the rmcp
SDK.
Connection(String)
Failure establishing a connection to an MCP server.
Discovery(String)
Failure discovering MCP actions or capabilities.
ToolConversion(String)
Failure converting an MCP action into an Tool
.
InvalidSchema(String)
Provided MCP schema was missing or invalid (e.g. not a JSON object).
Trait Implementations§
Source§impl Debug for McpIntegrationError
impl Debug for McpIntegrationError
Source§impl Display for McpIntegrationError
impl Display for McpIntegrationError
Source§impl Error for McpIntegrationError
impl Error for McpIntegrationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorData> for McpIntegrationError
impl From<ErrorData> for McpIntegrationError
Source§impl From<McpIntegrationError> for AgentError
impl From<McpIntegrationError> for AgentError
Source§fn from(err: McpIntegrationError) -> Self
fn from(err: McpIntegrationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for McpIntegrationError
impl RefUnwindSafe for McpIntegrationError
impl Send for McpIntegrationError
impl Sync for McpIntegrationError
impl Unpin for McpIntegrationError
impl UnwindSafe for McpIntegrationError
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<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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.