jsonRpcCode.PARSE_ERROR
const · packages/agent-mcp/src/jsonRpc.ts:42
PARSE_ERROR: -32700Agent / foldkit-agent-mcp
namespace · packages/agent-mcp/src/jsonRpc.ts:41
const jsonRpcCode = {
PARSE_ERROR,
INVALID_REQUEST,
METHOD_NOT_FOUND,
INVALID_PARAMS,
INTERNAL_ERROR,
REQUEST_FAILED,
}The codes MCP relies on.
INVALID_PARAMS is the one that carries meaning here: the spec puts an
unknown tool and arguments that fail the advertised schema on this side, and
everything the application decided -- unavailable, unauthorized, cancelled --
in a result with isError.
jsonRpcCode.PARSE_ERRORconst · packages/agent-mcp/src/jsonRpc.ts:42
PARSE_ERROR: -32700jsonRpcCode.INVALID_REQUESTconst · packages/agent-mcp/src/jsonRpc.ts:43
INVALID_REQUEST: -32600jsonRpcCode.METHOD_NOT_FOUNDconst · packages/agent-mcp/src/jsonRpc.ts:44
METHOD_NOT_FOUND: -32601jsonRpcCode.INVALID_PARAMSconst · packages/agent-mcp/src/jsonRpc.ts:45
INVALID_PARAMS: -32602jsonRpcCode.INTERNAL_ERRORconst · packages/agent-mcp/src/jsonRpc.ts:46
INTERNAL_ERROR: -32603jsonRpcCode.REQUEST_FAILEDconst · packages/agent-mcp/src/jsonRpc.ts:48
REQUEST_FAILED: -32002Used by MCP for "not initialized" and "resource not found".