Skip to content
Early access

Search the docs

Find a page or a section by keyword.

MCP for AI agents

Sahabti speaks the Model Context Protocol, so an AI assistant can work with your workspace directly: list what's running, read the provisioning log of the instance that failed, run a query, take a backup before a migration, resize a box that's out of memory.

The endpoint is:

text
https://api.sahabti.com/mcp

It's the same control plane the dashboard uses. There is no second implementation of any rule behind it — each tool call runs the exact route the dashboard calls, so your role, your token's scopes and your quota are enforced the same way whether a person or a model made the request.

Every connection acts in exactly one workspace. An assistant can't reach your other workspaces, your account, billing, the workspace's members or its tokens — see what it deliberately can't do.

Rather not set up a client? PromptOps is the assistant built into the console: the same tools in a chat, and it asks before it changes anything.

Connect a client

The panel is on your workspace's API tokens page, under MCP, with a copy-ready snippet for each client. Two ways to authenticate:

OAuth — add the endpoint with no token. Your client registers itself and opens a browser for you to sign in and choose the one workspace it may act in. It then acts as you, with your role in that workspace only, re-checked on every request. Each time the app renews its access, the token it renewed stops working a minute later, so a copied token is good only until the app's next renewal. This is the one to use on your own machine.

Before any app gets access, Sahabti asks you — every time. Apps register themselves under any name they like, so the screen marks each one Unverified app and shows the address it will send you back to: approve only if you started this from that app and recognize the address. An app may only send you back to an HTTPS address, or to a listener on your own machine; one that registers anything else is refused, and can use a static token instead. Account → Sessions → Apps with access lists every app you've approved, with the workspace it acts in, and revokes any of them.

Static token — mint a workspace token and send it as an x-api-key header. The token names one workspace and carries the scopes you gave it, which makes it the right fit for a CI job or an agent running unattended.

Claude Code, with a token:

bash
claude mcp add --transport http sahabti https://api.sahabti.com/mcp --header "x-api-key: <token>"

Cursor, VS Code, and anything else that takes a config file:

json
{
  "mcpServers": {
    "sahabti": {
      "url": "https://api.sahabti.com/mcp",
      "headers": { "x-api-key": "<token>" }
    }
  }
}

For OAuth, drop the headers block and let the client handle sign-in.

A browser session cookie is deliberately not accepted, and neither is a signed-in session sent any other way. If it were, any page you happened to have open could reach every mutating tool.

One workspace per connection

A token names the one workspace it was created in. An app you approve over OAuth acts in the workspace you chose on the approval screen, even if you belong to others, and your role there and the workspace's two-step requirement are read again on every call. Remove someone from the workspace and their apps stop working there at once.

Anything in another workspace answers exactly as if it didn't exist: an instance, cluster or load balancer id from elsewhere gets the same 404 as an id nobody holds, and naming a workspace the connection isn't bound to gets the same 401 as naming one that doesn't exist. To let an assistant work in two workspaces, connect it twice, once for each.

An app you approved before workspaces were chosen keeps working in the workspaces you belong to until 16 November 2026, and you get one email about it. Apps with access marks it with that date and offers Reconnect: that ends its access to every workspace, and when you connect it again from the app it asks you to choose one. From that date on its token is refused and can't be renewed, so the app asks you to sign in again and choose one workspace; until then whoami names the date as stopsWorkingAt.

What an agent can do

A hundred and seventeen tools, grouped roughly as:

Orientationwhoami — the one workspace this connection acts in, and what it may do there. An agent should call this first.
Instancesmanaged services, virtual machines and game servers: list, get, create, start, stop, restart, retry a failed provision, rename, resize, delete
Observabilityprovisioning log, metrics, a health check of a running database, cache or broker (its own statistics, never its data), quota usage
Datarun a SQL query against a PostgreSQL, MySQL or MariaDB instance (needs instance:query, for a SELECT too); the rows come back with card numbers and secrets masked, and each query is recorded first (what is masked)
Backupslist, create, restore into a fresh instance, delete
Network accessan instance's inbound rules — list, forward a port, change who may reach it, remove — and making an instance public or private
SSH keyslist, add, remove
Certificateslist, import, rename, delete
Load balancerslist, get, create, rename, delete; their listeners, target groups and targets; protection, blocked and denied sources; metrics and metered usage
Kubernetesclusters — list, get, create, scale, delete — with their node pools, volumes, API access, managed gateway with its hostnames and its security settings, who has access (read only), their settings (turning deletion protection and Pod Security on, the maintenance window), their Kubernetes upgrades (list, start, schedule, start a waiting one now), their insights on what to fix (read only), what needs attention and each worker's CPU and memory history
Inside a clusteras you: read namespaces, workloads, pods and their containers' logs, events, Services, routes, volume claims and live node usage; apply manifests, scale and restart workloads, create namespaces and delete objects
Web appslist apps, their deployments and running processes; read what an app printed in the last 24 hours, with a filter; change how an app runs; redeploy or roll back
Workspacelist networks, list notifications, read and raise a quota increase request

The tools that read inside a cluster work like the console's Kubernetes dashboard: as the person who approved the app, with their role on that cluster, so a viewer's app sees what a viewer sees and an editor's names one namespace at a time. A workspace token names no person, so it doesn't get them. They never read Secrets or the namespaces the cluster runs itself in. The tools that change a cluster act the same way, as that person, so the cluster's access rules decide. Each takes dryRun: true to preview the change field by field, asks the person to confirm with that preview when the client can ask, is recorded in the audit log, and refuses the namespaces the cluster runs itself in, objects the platform manages, cluster-wide kinds and privileged pods. A Secret's values never come back, and a manifest with a Secret is refused: Secrets are made in the cluster's Secrets & config section, so their values never pass through a connected app.

Everything writes through the same intent-and-reconcile path as the dashboard: a create or a resize is recorded and answered immediately, and the instance converges to it. An agent that wants to know what happened should read the instance back, or watch the provisioning log — not assume.

What it deliberately can't do

  • Anything outside its workspace. Ids, names and lists from another workspace are refused as if they didn't exist, including workspaces you belong to.
  • Your account, billing or the workspace's people. No tool changes a password, an email address, two-step verification, passkeys or sessions; none touches billing or plans, members, invitations, roles or ownership, API tokens or connected apps; and none gives or takes away anyone's access to a cluster. Those stay in the console, signed in as you.
  • Work anywhere but here. A connected app's token is accepted only on this endpoint: the REST API refuses it, so it can't reach routes the tool catalog leaves out.
  • Act for staff. A support session acting as you can't use MCP, approve an app or create an API token.
  • Connection secrets. No tool returns an instance's password, an app's environment variables, a kubeconfig or a Kubernetes Secret, and none writes a Kubernetes Secret. A tool result becomes model context: it gets logged, and it travels to whichever provider the client uses. Connection details stay on the instance page in the dashboard.
  • Read secrets or card numbers whole, out of your database or your logs. A query's rows and errors, an app's or a container's log lines and a build log come back masked: card numbers, values shaped like credentials and, in rows, every value of a column named like a secret are replaced, and each read is on our audit trail before it is sent, under the app and its person or the token and the person who created it. Queries are limited to 30 a minute per connection and 60 per workspace. Read whole values in the dashboard or through the REST API with a token.
  • Anything operator-level. Platform-wide and staff routes aren't in the catalog, and a workspace credential could never reach them anyway.
  • Lift a cluster's deletion protection. An agent can turn it on, never off: that takes a cluster admin, or a workspace owner or admin, signed in to the console.
  • More than the credential holds. A read-only token gets read-only tools; an app approved by a viewer gets read-only tools too, and can't start an instance. The permission check is the route's, not the tool's.
  • Get around a workspace's two-step requirement. In a workspace that requires two-step verification, an app acting for someone who hasn't set it up — approved by them, or with a token they created — gets 403 TWO_FACTOR_REQUIRED from every tool there. whoami marks such a workspace with blockedBy: "TWO_FACTOR_REQUIRED".

Next steps

  • API tokens — scoping the token an unattended agent uses
  • Database tools — the same query channel, from the dashboard
  • Instances — what the lifecycle tools actually do
  • PromptOps — the same tools from a chat in the console