ErrorCode

Standard JSON-RPC 2.0 and MCP SDK error codes.

Properties

Link copied to clipboard

Connection was closed

Link copied to clipboard
const val INTERNAL_ERROR: Int

Internal JSON-RPC error

Link copied to clipboard
const val INVALID_PARAMS: Int

Invalid method parameter(s)

Link copied to clipboard
const val INVALID_REQUEST: Int

The JSON sent is not a valid Request object

Link copied to clipboard

The method does not exist or is not available

Link copied to clipboard
const val PARSE_ERROR: Int

Invalid JSON was received

Link copied to clipboard
const val REQUEST_TIMEOUT: Int

Request timed out

Link copied to clipboard

Resource not found