# MCP server (/docs/integrate/mcp)



Decision Control exposes a **Model Context Protocol** server, so agents and MCP-capable clients —
Claude, Claude Code, Cursor, VS Code, and any other Streamable-HTTP client — can execute decisions
and author them: read a draft, validate, simulate, backtest, publish and deploy.

The server is **remote and over HTTP** (the Streamable HTTP transport) and authenticates with an
API key, so there is nothing to install.

## Endpoint [#endpoint]

```
POST https://<your-console>/api/v1/mcp
```

The console shows the exact URL under **Settings → MCP**, with copy-paste configuration for the
common clients.

## Authentication [#authentication]

Every request carries an API key in the `x-api-key` header (or `Authorization: Bearer`). The key
belongs to one project and one environment; its **scopes** decide which tools it is offered:

| Scope      | What it unlocks                                                                                |
| ---------- | ---------------------------------------------------------------------------------------------- |
| `execute`  | `execute_decision`, `execute_decision_batch`                                                   |
| `ingest`   | `ingest_observations`                                                                          |
| `read`     | List and read decisions, tables, versions, executions, traces and monitoring                   |
| `write`    | Create and edit decisions and tables, save drafts, validate, simulate, backtest and test cases |
| `publish`  | Publish, restore a version, request a publication, publish tables                              |
| `deploy`   | Deploy a version and promote between environments                                              |
| `schedule` | Scheduled jobs and their runs (pick it explicitly: `manage` does not include it)               |
| `manage`   | Everything `read`, `write`, `publish` and `deploy` allow                                       |

An authoring scope also opens the console's own routes to the key, as a **service principal** for
its project. It is a narrower principal than a member: it never holds `project.manage`,
`member.manage`, `apikey.manage`, `integration.manage`, `environment.manage`, `review.approve` or
`deploy.protected`, so it cannot change access, integrations or approvals, and cannot deploy to a
protected environment. An `execute`-only key keeps exactly the reach it had.

## Client configuration [#client-configuration]

Create a key under **Settings → MCP** and paste it into your client. Claude Desktop, Cursor and most
clients take the same `mcpServers` shape:

```json
{
  "mcpServers": {
    "decision-control": {
      "type": "http",
      "url": "https://<your-console>/api/v1/mcp",
      "headers": { "x-api-key": "<your-key>" }
    }
  }
}
```

VS Code uses `servers` instead of `mcpServers`, in `.vscode/mcp.json`:

```json
{
  "servers": {
    "decision-control": {
      "type": "http",
      "url": "https://<your-console>/api/v1/mcp",
      "headers": { "x-api-key": "<your-key>" }
    }
  }
}
```

## Tools [#tools]

Grouped by the scope that unlocks them.

**Execute**

* `execute_decision` — run a published (or pinned) version with an input.
* `execute_decision_batch` — run many records against one version.

**Read**

* `list_decisions`, `get_decision`, `get_decision_draft`, `list_decision_versions`, `get_decision_version`
* `list_tables`, `get_table`, `get_table_draft`, `get_table_version`
* `list_executions`, `get_execution`, `get_execution_trace`, `explain_execution`
* `get_decision_monitoring`, `get_decision_experiment`, `get_decision_runtime_bundle`, `list_environments`, `list_publish_requests`, `get_publish_request`
* `list_cases`, `get_case`, `list_tags`, `list_datasets`, `get_dataset`, `get_dataset_version`, `list_globals`

**Author**

* `create_decision`, `update_decision`, `save_decision_draft`, `validate_decision`, `simulate_decision`, `delete_decision`
* `create_table`, `update_table`, `save_table_draft`, `validate_table`, `evaluate_table`, `delete_table`
* `list_decision_tests`, `create_decision_test`, `update_decision_test`, `delete_decision_test`, `run_decision_tests`
* `backtest_decision`, `restore_decision`, `restore_table`, `import_decision`, `import_table`, `import_decision_bundle`
* `set_decision_tags`, `create_tag`, `update_tag`, `delete_tag`
* `create_dataset`, `create_dataset_version`, `delete_dataset`, `restore_dataset`
* `create_global`, `update_global`, `delete_global`
* `assistant_draft_decision`, `assistant_explain_decision`, `assistant_suggest_tests`, `assistant_find_dead_rules`

**Publish**

* `publish_decision`, `create_publish_request`, `restore_decision_version`, `publish_table`

**Deploy**

* `deploy_decision`, `promote_environment`, `start_experiment`, `stop_experiment`, `promote_experiment`

**Ingest**

* `ingest_observations` — send observations for a feature.

**Schedule**

* `list_scheduled_jobs`, `get_scheduled_job`, `create_scheduled_job`, `update_scheduled_job`, `delete_scheduled_job`, `pause_scheduled_job`, `resume_scheduled_job`
* `test_scheduled_source`, `preview_scheduled_job`, `run_scheduled_job`
* `list_scheduled_runs`, `get_scheduled_run`, `list_scheduled_run_items`, `retry_scheduled_run`, `cancel_scheduled_run`

## Publishing and four-eyes [#publishing-and-four-eyes]

When a project requires approval to publish, `publish_decision` answers `APPROVAL_REQUIRED`. Submit
`create_publish_request` instead: it freezes the current draft for review, and a **person** approves
or rejects it. The MCP server cannot approve a publication — that stays a human decision.

## Notes [#notes]

* Drafts use optimistic concurrency: `save_decision_draft` carries the `revision` you read, and a
  stale one is refused with `409`.
* Every write the key makes is in the audit log, attributed to `api-key:<name>`.
* The endpoint is stateless: each call authenticates on its own, so it scales with the API.
