Engineer’s entry point

REST and MCP share a permission check.

Cix serves both interfaces in its host daemon. An MCP call runs the underlying API handler with the caller’s directory permissions. The CLI and dashboard use REST to reach those same resources.

Native access for AI agents

MCP runs inside the control plane.

Cixd serves eligible API operations as typed tools through POST /v1/mcp. Calls use the REST handlers, permissions, and audit path. Long-running operations can park and resume, and non-JSON files return as typed base64 resources.

Each agent uses a directory identity and revocable app password. Group membership supplies role-based access control (RBAC): tool discovery is filtered by permissions, and execution checks them again. The standard agent group grants reads and gateway access; writes require additional grants. MCP is disabled until an operator enables it.

Permissions apply to an area and verb. For example, services:write permits changes to both DNS records and DNS servers; a DNS-record-only role is not currently expressible. App passwords never satisfy identity:write, even for an administrator’s identity. The app password authenticates the request; directory membership determines its permissions.

Connect an agent and choose its role →
POST /v1/mcpdirectory identitiesgroup permissionsaudited calls

The boundary

Follow a request into cixd.

The daemon is the only process with direct access to runtime and host primitives. Clients send intent over HTTP/JSON; the OpenAPI document defines the operations, fields, and responses that are actually implemented.

Open the OpenAPI contract
cixctlREST client
DashboardREST client
{ }AI agentMCP client
HTTP / JSON
ONE AUTHORITY · ONE CONTRACTcixdvalidate · persist · reconcile
01

Read first

Authenticate before reading protected state.

Cix keeps liveness public, but host state is protected once authentication is active. health, login, logout, and whoami remain available without a session; reads such as boot, containers, networks, storage, services, packages, and logs require the permission named by the API contract.

GET /v1/healthGET /v1/whoamiGET /v1/containerscontainers:read
02

Change safely

Write intent, then read the effect back.

Mutations are ordinary REST requests: create or update a resource, then read the resulting state and its derived readiness. The CLI and dashboard do not have privileged side channels, so an integration can use the same evidence as the first-party clients.

curl -s http://cix-host/v1/health → {"status":"ok","auth_gating_active":false}
POSTPUTDELETEderived state
03

Authorisation

Permissions follow the contract.

Every operation declares one permission in OpenAPI. A session or app password receives the union of its groups; missing credentials return 401, while a valid identity without the required permission returns 403. App passwords are for automation and are sent as HTTP Basic credentials on each request.

POST /v1/login → {"token":"…","expires_in_seconds":900}
sessionsapp passwords401 / 403OpenAPI permissions

Deployment API

Version a deployment before applying it.

Read site definitions at GET /v1/deployments. For a definition owned by a writable source, submit the new version to POST /v1/deployments/{name}/commit. A successful submission returns 202. Poll GET /v1/pkg/recipe-commit for the outcome, then use the deployment’s apply operation to change the workload.

The MCP tool commitDeployment requires containers:write in addition to gateway access. Configure the deployment source.

Integration boundaries

What a credential can reach.

Check the permission on the operation, the grants on the caller’s groups and any restrictions on the credential itself.

Canonical references

Integrate from the source.

Use the human guide for orientation and OpenAPI for implementation.

Read the API guide Open OpenAPI