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

CasePayloadDescription
streamstream-error

Stream-related errors from I/O operations

protocolmcp-error

Protocol-level MCP errors

validationstring

Request validation errors

transportstring

Transport-specific errors