View as Markdown

API reference: @salmonui/mcp

ErrorCodeconst

import { ErrorCode } from '@salmonui/mcp';
const ErrorCode: Readonly<{
    ParseError: -32700;
    InvalidRequest: -32600;
    MethodNotFound: -32601;
    InvalidParams: -32602;
    InternalError: -32603;
    UnsupportedProtocolVersion: -32022;
}>;

JSON-RPC 2.0 and MCP error codes.