> ## 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.

# Mcp

> JSON-RPC response. Parse errors are also returned with HTTP 200 and a -32700 error object.

### Request body

`object`

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

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

<ParamField body="id" type="object">
  JSON-RPC id (string or number)
</ParamField>

### Response

`object`

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

<ResponseField name="result" type="object">
  Present on success
</ResponseField>

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

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

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

<ResponseField name="id" type="object" required>
  Echo of the request id
</ResponseField>

### Status codes

| Code  | Meaning                                                                                      |
| ----- | -------------------------------------------------------------------------------------------- |
| `200` | JSON-RPC response. Parse errors are also returned with HTTP 200 and a `-32700` error object. |
| `400` | Validation error                                                                             |
| `401` | Unauthorized                                                                                 |
| `404` | Not found                                                                                    |
| `429` | Rate limited                                                                                 |
| `500` | Internal error                                                                               |

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

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