Skip to main content

Module error

Module error 

Source
Expand description

Error types (re-exported from tower-mcp-types).

See the module documentation for JSON-RPC and MCP-specific error codes.

Structs§

JsonRpcError
JSON-RPC error object
MissingRequiredClientCapabilityData
SEP-2575 error data for MissingRequiredClientCapability (-32021).
ToolError
Tool execution error with context
UnsupportedProtocolVersionData
SEP-2575 error data for UnsupportedProtocolVersion (-32022).

Enums§

Error
tower-mcp error type
ErrorCode
Standard JSON-RPC error codes
McpErrorCode
MCP-specific error codes (in the -32000 to -32099 range).

Traits§

ResultExt
Extension trait for converting errors into tower-mcp tool errors.

Type Aliases§

BoxError
Type-erased error type used for middleware composition.
Result
Result type alias for tower-mcp