Skip to content
Reference

Exceptions ​

ExceptionMeaning
MCPErrorBase public MCP failure.
ProtocolErrorInvalid or failed MCP protocol exchange.
TransportErrorProcess, stream, or HTTP transport failure.
OperationTimeoutConfigured deadline elapsed.
OperationCancelledCaller or owning runtime cancelled the work.
CleanupErrorResource cleanup failed.
KitClosedWork was requested after the kit closed.
SessionBusyConcurrent work conflicts with the session state.
SessionStillOpenA finalized result was requested before session closure.
TraceNotFinalizedFinal trace data was requested too early.
TraceUnavailableThe execution has no usable trace.
RawEvidenceUnavailableRequired raw evidence was not captured or retained.
RawEvidenceIntegrityErrorStored raw evidence failed integrity checks.
ExecutionNotFoundRequested execution identity is absent.
InvalidTransitionErrorExecution state transition is invalid.
ModelValidationErrorPublic input or result model failed validation.
UnsupportedFeatureThe selected integration does not support the operation.
ElicitationExpectationErrorAn input request did not satisfy its plan.
ElicitationRoundLimitErrorThe supported interaction round limit was exceeded.

Normal MCP tool errors usually remain typed tool results rather than raised exceptions. Test result.is_error when the server intentionally returned a tool-level failure.