Overview
Resource errors cover failures related to MCP resources — not found, read failures, and invalid URIs.ResourceNotFoundError includes a custom toJsonRpcError() method that returns an MCP-compliant JSON-RPC error with the resource URI.
Error Reference
ResourceNotFoundError
Thrown when a requested resource URI does not match any registered resource.ResourceReadError
Thrown when reading a resource fails. This is an internal error — details are hidden from clients. A public error thrown fromexecute() or passed to this.fail(), such as ResourceNotFoundError, is not wrapped.