Protocol-level MCP / JSON-RPC error.
Returned as {:error, %Noizu.MCP.Error{}} from handlers to produce a JSON-RPC
error response. Distinct from tool execution errors — return
{:error, "message"} from a tool handler to produce an isError: true tool
result the model can read and self-correct from.
Use the constructors (invalid_params/2, resource_not_found/1, custom/3, …)
rather than building the struct by hand so spec error codes stay consistent.
Summary
Functions
Application-defined error. Codes above -32000 are reserved for the protocol.
Build from a decoded JSON-RPC error object.
Render as a JSON-RPC error object map.
Types
Functions
Application-defined error. Codes above -32000 are reserved for the protocol.
Build from a decoded JSON-RPC error object.
Render as a JSON-RPC error object map.