#[non_exhaustive]pub enum StatelessMcpClientError {
Show 33 variants
Endpoint(ProviderEndpointError),
HttpClient,
Authorization(McpAuthorizationError),
Timeout,
RequestIdExhausted,
ClientBindingIdExhausted,
RequestSerialization,
RequestTooLarge,
Transport,
AuthorizationRequired,
InvalidAuthorizationChallenge,
PermissionDenied,
ResponseTooLarge,
InvalidEventStream,
UnexpectedContentType,
HttpStatus(u16),
Protocol,
Remote(McpRemoteError),
UnsupportedProtocolVersion,
DiscoveryVersionMismatch,
InvalidDiscovery,
InvalidToolCatalog,
ToolsNotAdvertised,
ToolCatalogTooLarge,
ToolCatalogPageLimit,
InvalidPagination,
DuplicateToolName,
ForeignToolBinding,
InvalidToolArguments,
InvalidHeaderArgument,
InputResponseKeysMismatch,
InvalidToolResult,
TooManyNotifications,
}Expand description
Closed failure from the modern stateless MCP client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Endpoint(ProviderEndpointError)
Endpoint normalization failed.
HttpClient
The bounded no-redirect HTTP client could not be built.
Authorization(McpAuthorizationError)
Request authorization could not be resolved.
Timeout
The request deadline elapsed. A Tool with external effects may require authoritative reconciliation before any retry.
RequestIdExhausted
A unique local request identifier could no longer be allocated.
ClientBindingIdExhausted
A unique client binding identifier could no longer be allocated.
RequestSerialization
JSON request serialization failed.
RequestTooLarge
The serialized request exceeded its configured byte ceiling.
Transport
The network exchange failed without a trustworthy protocol outcome.
AuthorizationRequired
The endpoint requires authorization.
InvalidAuthorizationChallenge
An HTTP authorization challenge exceeded its syntax or resource bounds.
PermissionDenied
The supplied authorization lacks permission.
ResponseTooLarge
The complete response exceeded its configured byte ceiling.
InvalidEventStream
The request-scoped event stream violated framing or resource bounds.
UnexpectedContentType
The response did not use JSON or request-scoped SSE.
HttpStatus(u16)
The endpoint returned an HTTP failure without a valid JSON-RPC error.
Protocol
The response was not a valid matching JSON-RPC response.
Remote(McpRemoteError)
The server returned a bounded JSON-RPC error.
UnsupportedProtocolVersion
Version negotiation produced no mutually supported modern revision.
DiscoveryVersionMismatch
Discovery did not advertise the required modern revision.
InvalidDiscovery
Discovery returned an invalid result.
InvalidToolCatalog
A tools/list result was invalid.
ToolsNotAdvertised
Discovery did not advertise the Tool capability.
ToolCatalogTooLarge
Catalog entries exceeded the configured ceiling.
ToolCatalogPageLimit
Catalog pagination did not terminate within its configured ceiling.
InvalidPagination
A cursor was empty, too large, or repeated.
DuplicateToolName
A usable Tool name appeared more than once.
ForeignToolBinding
The Tool descriptor belongs to another endpoint binding.
InvalidToolArguments
Tool arguments were not a JSON object.
InvalidHeaderArgument
An annotated argument was not a safe value for its declared header type.
InputResponseKeysMismatch
MRTR response keys did not exactly match the pending input requests.
InvalidToolResult
The Tool result was neither complete nor a valid input-required result.
TooManyNotifications
Too many notifications preceded the final SSE response.
Trait Implementations§
Source§impl Debug for StatelessMcpClientError
impl Debug for StatelessMcpClientError
Source§impl Display for StatelessMcpClientError
impl Display for StatelessMcpClientError
Source§impl Error for StatelessMcpClientError
impl Error for StatelessMcpClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<McpAuthorizationError> for StatelessMcpClientError
impl From<McpAuthorizationError> for StatelessMcpClientError
Source§fn from(source: McpAuthorizationError) -> Self
fn from(source: McpAuthorizationError) -> Self
Source§impl From<ProviderEndpointError> for StatelessMcpClientError
impl From<ProviderEndpointError> for StatelessMcpClientError
Source§fn from(source: ProviderEndpointError) -> Self
fn from(source: ProviderEndpointError) -> Self
Source§impl From<StatelessMcpClientError> for McpSkillClientError
impl From<StatelessMcpClientError> for McpSkillClientError
Source§fn from(source: StatelessMcpClientError) -> Self
fn from(source: StatelessMcpClientError) -> Self
Auto Trait Implementations§
impl Forget for StatelessMcpClientError
impl Freeze for StatelessMcpClientError
impl Move for StatelessMcpClientError
impl RefUnwindSafe for StatelessMcpClientError
impl Send for StatelessMcpClientError
impl Sync for StatelessMcpClientError
impl Unpin for StatelessMcpClientError
impl UnsafeUnpin for StatelessMcpClientError
impl UnwindSafe for StatelessMcpClientError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request