> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Handle a JSON-RPC 2.0 request against the MCP surface for a tenant.

> JSON-RPC response

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

### Request body

`McpRequest`

<ParamField body="id" type="object" />

<ParamField body="jsonrpc" type="string" />

<ParamField body="method" type="string" required />

<ParamField body="params" type="any" />

### Response

`McpResponse`

<ResponseField name="error" type="object">
  <Expandable title="error">
    <ResponseField name="code" type="integer (int32)" required />

    <ResponseField name="data" type="object" />

    <ResponseField name="message" type="string" required />
  </Expandable>
</ResponseField>

<ResponseField name="id" type="object" />

<ResponseField name="jsonrpc" type="string" required />

<ResponseField name="result" type="object" />

### Status codes

| Code  | Meaning               |
| ----- | --------------------- |
| `200` | JSON-RPC response     |
| `204` | Notification accepted |
| `401` | Unauthorized          |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/mcp' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "id": null,
    "jsonrpc": "string",
    "method": "string",
    "params": null
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "error": {
      "code": 1,
      "data": null,
      "message": "Two-person tent, green — replacement for damaged pole set."
    },
    "id": null,
    "jsonrpc": "string",
    "result": null
  }
  ```
</ResponseExample>
