Skip to content

basalt / mcp/src / RPC_ERRORS

Variable: RPC_ERRORS ​

> const RPC_ERRORS: object

Defined in: mcp-core/src/protocol.ts:37

Standard JSON-RPC error codes.

Type Declaration ​

INTERNAL_ERROR ​

> readonly INTERNAL_ERROR: -32603 = -32603

INVALID_PARAMS ​

> readonly INVALID_PARAMS: -32602 = -32602

INVALID_REQUEST ​

> readonly INVALID_REQUEST: -32600 = -32600

METHOD_NOT_FOUND ​

> readonly METHOD_NOT_FOUND: -32601 = -32601

PARSE_ERROR ​

> readonly PARSE_ERROR: -32700 = -32700

SERVER_BUSY ​

> readonly SERVER_BUSY: -32000 = -32000

Implementation-defined (the -32000…-32099 server range): the transport refused the request because too many are already in flight on this connection. Retry once an earlier request has been answered.

Released under the MIT License.