AI AdminPanel Documentation

Recommended MCP Client Configuration

When an AI client (Claude Code, Codex, Cursor, Claude Desktop) is connected to the panel over MCP, a few of its tools can change things that are hard to undo: run a command inside a service, edit a file in a service, restore or delete a backup. By default those calls wait for an admin on the panel's Approvals page (see Calls that wait for approval).

If you do not want to approve every call in the panel, you can switch approvals off for one API key (below). Then the client's own permission prompt is the only safeguard. This page shows how to make each client ask you before it runs one of those tools, so that switching panel approvals off stays safe.

The tools to protect

These are the tools that wait for approval in the panel. With approvals switched off for a key, the client runs them on its own:

ToolWhat it does
exec_in_serviceruns one command in a service's container
edit_service_filechanges one text file in a service's volume
restore_backupoverwrites a service's data with a backup
delete_backupdeletes a backup
delete_backup_scheduleremoves a backup schedule
delete_plandeletes a plan
remove_project_memberremoves a person's access to a project
clean_docker_diskremoves dangling images and unused build cache on the server
restart_platform_componentrestarts one of the panel's own platform containers
apply_panel_updateupdates the panel to the available version
delete_servicedeletes a service with its containers, volumes and deployments
delete_service_envdeletes one environment variable of a service
delete_service_webhookdeletes a service's deploy webhook
delete_ai_modeldeletes a downloaded model from an AI runtime
move_service_to_customerhands a service and its data to another customer
restore_service_fileputs back a file's content from before an approved edit

The warning in the panel lists the same tools, read from your panel's tool registry, so a newer panel may list more. Use that list when it differs from this table.

The examples below assume you named the server ai-admin-panel, as the panel's Connect an agent dialog does. If you chose another name, use it instead.

Switch approvals off for one API key

  1. Go to Settings → Security → API Keys.
  2. In the key's row, turn on Run high-risk tools without approval.
  3. Read the warning: it names the tools above and says the client's own prompts become the only safeguard. Confirm.

What this changes and what it does not:

  • It applies to that key only. Other keys keep waiting for approval. It is off for every new key.
  • Only a platform admin signed in to the panel can change it, and only on their own platform keys. An API key cannot change it, and there is no MCP tool for it, so an agent cannot switch off its own approvals.
  • Every change is in the audit log as mcp.approval_mode_changed.
  • Calls that run without approval are still in the audit log as mcp.<tool>, with approval: skipped and the key's id and name.
  • The key's deny list and the licence still apply; only the waiting step is skipped.
  • Reseller and customer (portal) keys are not affected.
  • The Approvals page shows how many keys run without approval, with a link here.

Claude Code

Claude Code checks permission rules in this order: deny, then ask, then allow. The first match wins, so an ask rule prompts even if a broader allow rule also matches (Claude Code: Configure permissions). An MCP tool is named mcp__<server>__<tool>.

Put this in .claude/settings.json in your project (shared with your team), or in ~/.claude/settings.json for all your projects:

{
  "permissions": {
    "allow": [
      "mcp__ai-admin-panel__*"
    ],
    "ask": [
      "mcp__ai-admin-panel__exec_in_service",
      "mcp__ai-admin-panel__edit_service_file",
      "mcp__ai-admin-panel__restore_backup",
      "mcp__ai-admin-panel__delete_backup",
      "mcp__ai-admin-panel__delete_backup_schedule",
      "mcp__ai-admin-panel__delete_plan",
      "mcp__ai-admin-panel__remove_project_member",
      "mcp__ai-admin-panel__clean_docker_disk",
      "mcp__ai-admin-panel__restart_platform_component",
      "mcp__ai-admin-panel__apply_panel_update",
      "mcp__ai-admin-panel__delete_service",
      "mcp__ai-admin-panel__delete_service_env",
      "mcp__ai-admin-panel__delete_service_webhook",
      "mcp__ai-admin-panel__delete_ai_model",
      "mcp__ai-admin-panel__move_service_to_customer",
      "mcp__ai-admin-panel__restore_service_file"
    ]
  }
}

The allow line lets the everyday tools (list services, read logs, restart a service) run without a prompt. Leave it out if you want Claude Code to ask for every panel tool.

To block a tool completely instead, put it under "deny".

Do not run Claude Code in bypassPermissions mode (--dangerously-skip-permissions) with this key: that mode skips permission prompts, including your ask rules. You can lock it out with "disableBypassPermissionsMode": "disable" under "permissions".

Codex

Codex sets approval per MCP server and per tool in ~/.codex/config.toml (or .codex/config.toml in a trusted project): default_tools_approval_mode for the server, and tools.<tool>.approval_mode for one tool (Codex: MCP). The supported values are auto, prompt, writes and approve; writes prompts for every tool not marked read-only, and prompt asks every time.

[mcp_servers.ai-admin-panel]
url = "https://your-panel.example.com/mcp"
bearer_token_env_var = "AAP_API_KEY"
# Ask before any panel tool that is not read-only.
default_tools_approval_mode = "writes"

# Always ask before the high-risk tools.
[mcp_servers.ai-admin-panel.tools.exec_in_service]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.edit_service_file]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.restore_backup]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_backup]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_backup_schedule]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_plan]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.remove_project_member]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.clean_docker_disk]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.restart_platform_component]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.apply_panel_update]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_service]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_service_env]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_service_webhook]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.delete_ai_model]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.move_service_to_customer]
approval_mode = "prompt"

[mcp_servers.ai-admin-panel.tools.restore_service_file]
approval_mode = "prompt"

The panel marks every one of these tools as destructive, not read-only, so writes alone already asks for them; the per-tool lines keep them asking if you later relax the server default. To hide a tool from Codex completely, list it in disabled_tools.

Cursor

Cursor asks before it uses an MCP tool by default, and MCP tools follow the same Run Mode as terminal commands (Cursor: MCP, Cursor: Run Modes).

  1. Open Settings → Agents → Approvals & Execution.
  2. Choose Allowlist. Actions on your allowlist run without approval; everything else asks.
  3. Do not add any of the tools above to the allowlist. Add only read tools you trust, or leave the allowlist empty to be asked for every call.
  4. Do not use Run Everything: it runs every tool call without asking. Auto-review lets a classifier decide instead of you; do not rely on it for these tools.

In ~/.cursor/mcp.json, keep the key out of the file by reading it from the environment:

{
  "mcpServers": {
    "ai-admin-panel": {
      "url": "https://your-panel.example.com/mcp",
      "headers": { "Authorization": "Bearer ${env:AAP_API_KEY}" }
    }
  }
}

Claude Desktop

Claude sets permissions per connector tool: Always allow, Needs approval or Blocked (Claude: Use connectors).

  1. Go to Customize → Connectors and select the AI Admin Panel connector.
  2. Under Tool permissions, set each tool in the table above to Needs approval (or Blocked if the client should never use it).
  3. When Claude asks during a chat, choose Allow once. Always allow stops it asking for that tool from then on; you can undo it in the same place.

On Team and Enterprise plans an owner can set the same per-tool policy for the whole organization under Organization settings → Connectors.

If a client cannot ask

A client that runs without a person watching (a CI job, a scheduled agent) has no one to answer its prompts. Keep panel approvals on for its key, or give it a key whose deny list removes the permissions it does not need (API keys).