# JsonRpcError (@salmonui/mcp)

> The JsonRpcError interface of @salmonui/mcp.

Canonical: https://salmonui.dev/docs/reference/mcp/JsonRpcError

```ts
import type { JsonRpcError } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: interface

```ts
interface JsonRpcError {
    readonly jsonrpc: '2.0';
    readonly id: JsonRpcId | null;
    readonly error: {
        readonly code: number;
        readonly message: string;
        readonly data?: unknown;
    };
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `jsonrpc` | `readonly jsonrpc: '2.0';` |  |  |
| `id` | `readonly id: JsonRpcId \| null;` |  |  |
| `error` | `readonly error: {     readonly code: number;     readonly message: string;     readonly data?: unknown; };` |  |  |
