Variant
operation-error
Composite error type for MCP operations.
This variant allows different error types to be composed and handled uniformly across the MCP implementation.
variant operation-error {
stream(stream-error),
protocol(mcp-error),
validation(string),
transport(string),
}Cases
| Case | Payload | Description |
|---|---|---|
| stream | stream-error | Stream-related errors from I/O operations |
| protocol | mcp-error | Protocol-level MCP errors |
| validation | string | Request validation errors |
| transport | string | Transport-specific errors |