Skip to content

Connect an AI agent ​

QvDC runs an MCP server: the Model Context Protocol endpoint that AI clients such as Claude Code use to read and operate Quantix. An agent connects with an ordinary API key, and the key's permissions decide everything it can do.

Prerequisites ​

  • An administrator account that can create API keys in the Admin Panel.
  • An AI client that supports MCP over streamable HTTP.
  • A computer that can reach QvDC over HTTPS and trusts its certificate. Some clients refuse QvDC's default self-signed certificate; install one your computer trusts under Certificates.

Step 1 — Create a key for the agent ​

  1. Go to Admin Panel → People & access → API keys and click Create API key.
  2. Give it a Name that identifies this agent, for example claude-code-ops-alice. Actions the agent takes are recorded under this name.
  3. Choose an Expiry.
  4. Under Permissions, choose what the agent may do. Start with read permissions only; see Choose an agent's permissions.
  5. Click Create key, copy the key and store it safely. It is shown only once.

Step 2 — Copy the connect URL ​

Open Admin Panel → Assistant → Assistant connections (page title Quantix-MCP). The status card should show Running. Copy the Connect URL; it has the form https://<qvdc-address>/mcp.

Step 3 — Connect your AI client ​

sh
claude mcp add --transport http quantix https://<qvdc-address>/mcp \
  --header "Authorization: Bearer <api-key>"

Or add it to the client's configuration file:

json
{
  "mcpServers": {
    "quantix": {
      "type": "http",
      "url": "https://<qvdc-address>/mcp",
      "headers": { "Authorization": "Bearer <api-key>" }
    }
  }
}

Keep the key out of shared configuration files and repositories: use your client's secret storage or an environment variable where it supports one.

Step 4 — Check what the agent can see ​

Ask the agent something read-only, for example:

List the VMs in my Quantix datacenter and tell me which are powered off.

Expected result: the agent answers from your live inventory.

The agent can also attach Quantix state as context instead of calling a tool: the inventory, hosts, storage pools, network topology, recent operations, and single VMs, hosts and container applications are offered as MCP resources (in Claude Code, type @). Only the resources the key may read are offered.

Change what an agent may do ​

A key's permissions cannot be edited. To change what an agent may do:

  1. Create a new key with the permissions you want.
  2. Replace the key in the agent's configuration.
  3. Revoke the old key under Admin Panel → People & access → API keys.

Troubleshooting ​

The client is refused ("unauthorized") — the key was copied wrongly, has expired or was revoked, or the account that created it is disabled. Check the key under API keys, or create a new one. An access token that the QvDC created when it was installed is not an API key and no longer connects: create an API key for the agent instead.

The agent says a tool is missing — the key lacks the permission for it. Quantix tells the agent so, and the agent should ask you rather than work around it. Create a key with the missing permission; see Choose an agent's permissions.

The client refuses the connection because of the certificate — install a certificate the client's computer trusts under Certificates.

"the control plane could not verify this API key; try again" — QvDC could not check the key at that moment. Try again; if it persists, check that QvDC is healthy.

The status card is not Running — follow the message on the card. Where a restart fixes it, click Restart MCP server.