MCP Server
The AI Admin Panel includes a built-in MCP (Model Context Protocol) server. This lets AI apps such as Claude Code, Codex, Cursor, Windsurf, claude.ai, Claude Desktop and ChatGPT manage your panel programmatically.
Which apps can connect
| App | How it connects |
|---|---|
| Claude Code, Codex, Cursor, Windsurf, VS Code and other apps that send an API key | Create an admin API key and use one of the setups below |
| Claude in the browser (claude.ai), the Claude desktop app and ChatGPT | Sign in with your panel account; no key. See Sign in instead of a key |
Sign-in needs the bundled Keycloak and a public PANEL_URL that claude.ai and ChatGPT can reach. Settings → MCP Server says the same above its switch, and Settings → AI Providers → Ways to run the Assistant explains why a Claude or ChatGPT plan is used through such an app rather than signed in to the panel.
The MCP server is served by the panel itself — it shares the panel's domain and TLS certificate, so there is no extra port, subdomain, or firewall rule to open.
Connect my agent
The panel is built to be run by your AI agent, not only clicked. The quickest way to connect Claude, ChatGPT, Claude Code, Codex or another MCP client is Dashboard → Connect my agent: a large card on a fresh install, one compact row afterwards. Its dialog asks one thing per screen:
- Switch on MCP. The dialog says in plain words what the agent can do and the risk, and asks you to confirm. Only an administrator who may change settings (
settings.update) can switch MCP on; the panel checks this on the server and records asettings.updateaudit entry formcp.enabled. If MCP is already on, the dialog skips this step. If you leave the dialog without connecting an app (Close, the X, Escape, a click outside it, or leaving the page), the dialog switches MCP off again. MCP stays on once you click Done after choosing an app, or create a key for one. MCP that was already on before you opened the dialog stays on. - Choose your app. Which app do you want to connect? shows Claude and ChatGPT as two large cards, the other apps under More apps (Cursor, VS Code, Goose, LM Studio, Replit, Claude Code, Codex, Gemini CLI, Windsurf and Any MCP client), a Not listed? list of apps with their own guide, and the server URL with a copy button.
- Connect. Only the chosen app's setup: its one-click link, its guided steps or its copy-ready text, each with your panel's real
/mcpaddress. All apps goes back.
Only an app that needs a key asks for one: Claude Code, Codex, Gemini CLI, Windsurf, LM Studio, Replit, Cursor and VS Code when sign-in is off, and the API key variant of Any MCP client. Create a key now makes an admin API key, the same kind as under Settings → Security → API Keys, and fills it into the setup. It expires after 90 days; create a new one here when it does, or make a key with another lifetime under API Keys. It is shown once, is kept only in the open dialog, and is never written to your browser storage. Without a new key the setup shows <YOUR_API_KEY> where yours goes. Claude, ChatGPT and the apps that sign in create nothing.
One-click links
Settings → MCP Server shows the same two steps in a card. No link ever contains a key: a link ends up in browser history and chat logs. Apps that sign in with your panel account need none; the others get a placeholder or read the key from somewhere else.
| App | What the link does | Needs |
|---|---|---|
| claude.ai, Claude Desktop | Add to Claude opens Claude's Add custom connector dialog with the name and URL filled in; you confirm, then sign in. A Team or Enterprise Owner uses Add it for your organization. | HTTPS and sign-in (OAuth) |
| ChatGPT | No link exists for this (the setup says why); five guided steps with Open ChatGPT and copy buttons for the name and URL: Plugins (chatgpt.com/plugins) → + → Add custom MCP server, a name, the URL, OAuth, Create, then sign in. An older ChatGPT has it under Settings → Apps → Advanced settings → Developer mode → Create. | HTTPS and sign-in (OAuth) |
| Cursor | Add to Cursor opens Cursor's install screen. With sign-in on, Cursor signs in with your panel account; without it, Cursor reads the key from the AAP_API_KEY environment variable. | — |
| VS Code | Add to VS Code opens VS Code's server editor. With sign-in on, VS Code signs in; without it, VS Code asks for the key and keeps it in its secret storage. | — |
| Goose | Add to Goose adds a Streamable HTTP extension; Goose signs in with your panel account. | Sign-in (OAuth) |
| LM Studio | Add to LM Studio adds the server with <YOUR_API_KEY> in its header; replace it with your key in LM Studio's mcp.json. | — |
| Replit | Add to Replit adds the server with <YOUR_API_KEY> in its header; replace it with your key in Replit before you connect. | HTTPS |
An app that cannot work on your panel is marked Unavailable in step 1, and its link is greyed out with the reason: Needs an HTTPS address when the panel is reached over plain HTTP, Needs sign-in with OAuth when the panel has no Keycloak or no PANEL_URL (see Sign in instead of a key). The connector name is your panel's company name from Settings → Branding.
Cline, Zed, JetBrains AI Assistant, Warp, Amazon Q Developer, Augment and LibreChat have no install link; Not listed? links to each one's own guide. Any MCP client shows the JSON in two variants: OAuth (no key), for clients that sign in, and API key:
{
"mcpServers": {
"ai-admin-panel": { "type": "http", "url": "https://your-panel.example.com/mcp" }
}
}
Setups for terminal agents
Claude Code (run in a terminal on the computer where Claude Code runs):
claude mcp add --transport http ai-admin-panel https://your-panel.example.com/mcp \
--header "Authorization: Bearer YOUR_ADMIN_API_KEY"
Codex (add to ~/.codex/config.toml; Codex reads the key from the environment variable, so it is not stored in the file):
[mcp_servers.ai-admin-panel]
url = "https://your-panel.example.com/mcp"
bearer_token_env_var = "AAP_API_KEY"
export AAP_API_KEY="YOUR_ADMIN_API_KEY"
Cursor: click Add to Cursor in the dialog (see One-click links), or paste the JSON from Connecting from Claude Code / Cursor into ~/.cursor/mcp.json. The link never contains the key.
VS Code: click Add to VS Code, or put this in .vscode/mcp.json. VS Code asks for the key the first time it connects and keeps it in its secret storage, so the key is not in the link or the file:
{
"servers": {
"ai-admin-panel": {
"type": "http",
"url": "https://your-panel.example.com/mcp",
"headers": { "Authorization": "Bearer ${input:aap-api-key}" }
}
},
"inputs": [
{ "type": "promptString", "id": "aap-api-key", "description": "AI Admin Panel API key", "password": true }
]
}
Gemini CLI:
gemini mcp add --transport http ai-admin-panel https://your-panel.example.com/mcp \
--header "Authorization: Bearer YOUR_ADMIN_API_KEY"
Windsurf (mcp_config.json; Windsurf reads serverUrl, not url):
{
"mcpServers": {
"ai-admin-panel": {
"serverUrl": "https://your-panel.example.com/mcp",
"headers": { "Authorization": "Bearer YOUR_ADMIN_API_KEY" }
}
}
}
Other clients (JSON): see Connecting from Claude Code / Cursor.
Treat the key like a password. MCP plus an admin key is full admin control of the panel. Keep the key only in your agent's settings. To stop access at once, revoke the key under Settings → Security → API Keys or switch MCP off.
The syntax follows the clients' own documentation: Claude Code's MCP guide, Codex's MCP configuration, Cursor's install links, VS Code's install URL and MCP configuration, the Gemini CLI, Windsurf, Claude's install links, OpenAI's custom MCP server steps, Goose, LM Studio and Replit, as checked on 2026-11-14.
Enabling the Admin MCP Server
The MCP server is disabled by default for security (its tools are admin-scoped). Switch it on from Dashboard → Connect my agent (above), or from the settings — no terminal or restart needed:
- Go to Settings → MCP Server.
- Toggle Enable MCP Server on.
The connection endpoints and ready-to-paste client configs appear once it's enabled; the endpoints answer only while it is on. Enabling and disabling take effect immediately, with no restart. Both places need the settings.update permission; without it PUT /api/v1/mcp answers 404 and nothing changes.
Authentication
Admin MCP requests require an admin API key sent as a Bearer token:
- Create an admin API key in Dashboard → Connect my agent, or under Settings → Security → API Keys.
- Use it as
Authorization: Bearer <key>in your MCP client config.
Only platform-admin keys are accepted: customer keys, constrained administrator keys and organization-bound keys are rejected before tools run. Tenant connections use the separate endpoint and key type below.
Sign in instead of a key (claude.ai, Claude Desktop, ChatGPT)
claude.ai, Claude Desktop and ChatGPT connect with a login instead of a key. The panel's built-in Keycloak is the sign-in server (OAuth 2.1); there is nothing to set up beyond PANEL_URL.
- claude.ai and Claude Desktop: choose Claude in Connect my agent or Settings → MCP Server, then click Add to Claude; it opens Claude's dialog with the name and URL filled in. By hand: open Claude's connector settings (individual Pro/Max: Customize → Connectors → Add custom connector; Team/Enterprise: an Owner adds it under Organization settings → Connectors), paste
https://your-panel.example.com/mcp, and leave the advanced (OAuth) settings empty. Claude registers itself with the panel. - ChatGPT: choose ChatGPT there for the guided steps, or open Plugins (chatgpt.com/plugins), select +, then Add custom MCP server (older ChatGPT: Settings → Apps → Advanced settings → Developer mode → Create), enter a name and the same URL, choose OAuth and select Create. ChatGPT registers itself automatically.
- Cursor, VS Code and Goose sign in the same way through their one-click links.
You then sign in with your panel account and approve the request on a consent screen. The app acts as you: it may do on /mcp what a platform administrator's key without a deny list may do, and the licence still decides which tools run (edition_required). Each access lasts 5 minutes and renews on its own; the renewal works only for the app it was issued to.
What the panel checks on every request:
- the token is signed by your Keycloak (RS256 and similar only;
alg: noneand HMAC are refused), comes from the configured issuer, is not expired, lives at most 5 minutes, and names this server (audis exactlyhttps://your-panel.example.com/mcp, scopemcp:admin). A token for/mcp/tenant, or a normal panel login token, is refused. - the Keycloak account is linked to a panel user. Your browser sign-in to the panel makes the link. An account that has not signed in in a browser since the panel was updated to 2.26.0 is linked at its first app sign-in instead: the panel asks Keycloak for that account's email and links the panel user with that email, as a browser sign-in would, only when Keycloak marks the email verified. It never creates a user, and never moves a link a user already has.
- the user is still an active platform administrator. A demoted or deactivated user's token stops working at once, before it expires.
Each audit entry an MCP tool writes records auth_method (oauth or api_key) and, for OAuth, azp: which app made the call.
MCP clients find the sign-in server through https://your-panel.example.com/.well-known/oauth-protected-resource/mcp (RFC 9728). A request without a token is answered 401 with a WWW-Authenticate header naming that document. Claude uses a client ID metadata document, ChatGPT and local clients register themselves (RFC 7591); Keycloak accepts only redirect addresses on claude.ai, claude.com, chatgpt.com and the local computer, and refuses any other server address (invalid_target).
API keys keep working next to sign-in. Use a key for Claude Code, Codex, LM Studio, Replit and other clients that send a header.
Calls that wait for approval need a key. An approval belongs to the API key that asked for it (see Calls that wait for approval), and a signed-in app has no key. Such a call from a signed-in app is refused with approval_needs_api_key: nothing runs and nothing is queued. Make that call with an admin API key, or do it in the panel.
To stop a signed-in app: in the Keycloak admin console, Users → your user → Consents → Revoke ends its renewals; the last access ends within 5 minutes. Demoting or deactivating the user, or switching off Settings → MCP Server, stops it at once.
What a key is refused
A platform key can carry a deny list, the same one the REST API subtracts (set when the key is created under Settings → Security → API Keys). Every admin tool needs one permission; a tool whose permission is on the key's deny list answers an error starting with permission_denied and does nothing: it reads nothing, queues no job and writes no row. The check runs once for every tool on the server, so a tool added later is covered too. A key with an empty deny list keeps every tool. The deny list is read again on every request, so editing a key takes effect on the next call.
| Tool | Needs |
|---|---|
list_services, get_service_status, get_service_connection, get_resource_usage, get_deploy_history, get_dashboard, get_system_health, get_health, get_attention_summary, list_service_env, list_service_domains, list_service_backups, list_backup_schedules, get_service_domain, check_service_domain_dns, get_service_webhook, get_service_disk_usage, get_service_health, list_service_snapshots, get_service_snapshot, get_service_metrics, get_services_metrics_summary, list_service_containers, get_service_guide, list_ai_servers, list_ai_runtimes, get_ai_runtime_gpu, get_ai_runtime_health, list_ai_models, get_ai_model, list_running_ai_models, get_activity_summary, get_job_health, get_host_metrics, get_host_disk_usage, get_host_resources, get_host_gpus, get_network_isolation, get_host_disk_report, get_platform_health, get_certificate_status, get_firewall_status, get_approval_status, preview_tool_call | services.view |
get_logs, get_deploy_log | services.view_logs |
restart_service, stop_service, start_service, restart_all_services, restart_service_container | services.start_stop |
update_service_env, pull_model, delete_service_env, delete_service_webhook, update_resource_limits, delete_ai_model, move_service_to_customer, update_git_source | services.manage |
list_service_secrets, get_secrets_status, list_secrets, list_secret_versions, validate_secret_ref | secrets.view |
delete_service | services.delete |
manage_domains, update_service_subdomain | services.manage_domain |
deploy_template, deploy_git, create_service, check_deploy, list_git_branches, list_github_repos, list_github_branches, analyze_repo, get_repo_analysis, redeploy_service | services.deploy |
list_customers, list_organizations, get_customer, get_organization, get_organization_tree, get_customer_capabilities, get_customer_ai_usage, get_customer_remaining_quotas, get_customer_backup_overview, list_subscriptions, get_subscription | organizations.view |
create_customer, create_organization | organizations.create |
update_organization, set_organization_branding, reset_organization_branding, set_portal_onboarding, set_customer_capability, clear_customer_capability, update_customer, set_status_email_customers | organizations.update |
send_customer_welcome_email | users.update |
create_subscription, update_subscription | subscriptions.manage |
list_organization_users, list_user_roles | users.view |
list_organization_projects, list_projects, get_project, list_project_members | projects.view |
create_project | projects.create |
update_project | projects.update |
get_audit_log | audit.view |
list_api_keys | secrets.manage |
get_usage_metering | metering.view |
export_audit_log | audit.export |
list_templates, get_template | templates.view |
create_template, update_template, update_template_description | templates.manage |
get_backup, get_backup_storage_status, get_backup_kill_switch, list_platform_backup_destinations | backups.view |
run_backup | backups.run |
create_backup_schedule, update_backup_schedule, delete_backup, delete_backup_schedule | backups.policy |
list_plans, get_plan, get_plan_ai_models, get_ai_model_access, create_plan, update_plan, get_plan_capabilities, set_plan_capability, clear_plan_capability, list_plan_quotas, set_plan_quota, clear_plan_quota, delete_plan, get_plan_template_exceptions, set_plan_template_exceptions, get_github_self_service, set_github_self_service | settings.plans_manage |
list_permissions, list_roles, get_role | settings.roles_manage |
get_github_app, get_autofix_policy, get_license_status, get_ai_provider_settings | settings.view |
set_ai_model | settings.ai_provider |
list_github_connections | git_connections.view |
reconcile_github_connections, check_dns | settings.update |
check_github_app, get_update_status, check_for_update, get_update_result | system.update |
read_service_file | services.files.read |
edit_service_file, restore_service_file | services.files.write |
exec_in_service | services.exec |
apply_panel_update | system.update.apply |
clean_docker_disk, restart_platform_component | system.host.maintain |
remove_project_member | projects.manage_members |
restore_backup | backups.restore |
set_backup_kill_switch | backups.admin |
update_github_connection | git_connections.manage |
health | nothing |
edit_service_file, restore_service_file and exec_in_service need Power User or Web Host; on Free the call is refused with edition_required: … needs the service-console module … before anything is queued. When an administrator switched the App Console off in Settings → Modules, they are refused on every edition with module_disabled: … needs the service-console module, which an administrator turned off … (see Turning a module off). The same goes for every changing tool whose module is switched off, for example manage_domains with Domains off or create_subscription with Service Plans off. The three App Console tools never run straight from this server: each call waits for an admin to approve it in the panel (see Calls that wait for approval). read_service_file runs at once. An approved edit_service_file returns an undo_id; restore_service_file with service_id and that undo_id puts the old content back within 7 days, once, and only while the file is still what the edit wrote. See Work inside a service. get_approval_status needs services.view. preview_tool_call needs services.view and the permission of the tool it previews.
Where the matching REST route checks a permission, the tool needs the same one. A few REST routes check only platform authority (for example GET /api/v1/templates); their tools still need the closest permission above, so a key that denies it is held back on MCP.
What the licence refuses
A tool that changes something needs the same edition as the REST route it mirrors. When the licence does not include that route's module, the tool answers an error starting with edition_required and does nothing, on the admin server, the tenant server and in the panel chat alike. The text names the module and the edition that includes it, for example:
edition_required: manage_domains needs the domains module, which the power-user edition includes; this install has the free edition. Upgrade the licence to use it.
Each refusal writes a license.module_access_denied audit entry, as a refused REST write does. Tools that only read are never refused for the edition, so data stays visible after a downgrade. Today this affects manage_domains on Free (custom domains need Power User) and set_github_self_service below Web Host (plan settings), plus every module tool while the licence is expired or revoked. See Licensing.
Endpoints
The admin transports are served from your panel's domain:
| Transport | URL | Use with |
|---|---|---|
| Streamable HTTP | https://<your-panel>/mcp | Claude Code, Codex, Cursor, modern clients; claude.ai, Claude Desktop and ChatGPT with sign-in |
| SSE compatibility | https://<your-panel>/sse | Existing legacy clients only |
The Settings → MCP Server tab shows the exact URLs for your deployment.
Connecting from Claude Code / Cursor
"type": "http" is required: Claude Code reads an entry with a url and no type as a local (stdio) server and skips it.
{
"mcpServers": {
"ai-admin-panel": {
"type": "http",
"url": "https://your-panel.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_ADMIN_API_KEY"
}
}
}
}
Connecting a remote client
Clients that support MCP sign-in (claude.ai, Claude Desktop, ChatGPT) connect with a login, see Sign in instead of a key. Other remote clients need Streamable HTTP and a custom Authorization header: set the server URL to https://your-panel.example.com/mcp and supply Bearer YOUR_ADMIN_API_KEY through the client's secret settings. The placeholder is not a usable key. Client menus and connector availability vary by client version and plan; use the client's current connection instructions.
For browser-originated MCP HTTP requests, including the legacy SSE/message compatibility routes, the panel validates the exact normalized scheme, hostname, and effective port against PANEL_URL, or https://${PANEL_DOMAIN} when PANEL_URL is unset. It never trusts request Host or forwarding headers for this check. Native/cloud connector requests without an Origin header remain supported. Both MCP endpoints speak protocol 2026-07-28, the current MCP revision, and keep serving 2025-11-25, 2025-06-18 and 2025-03-26 clients. A 2026-07-28 client starts with server/discover and sends its version in every request; there is no initialize step and no session. Older clients still start with initialize. A request naming any other version is answered 400 with an UnsupportedProtocolVersion error that lists the versions above, and duplicate or comma-combined version values are rejected as ambiguous.
Short demo and recovery
For a non-destructive demo, enable the connector for one conversation and ask Claude to list the panel's services. Confirm the returned names/statuses match the panel. Do not approve a write tool for this connection check.
If the connector does not load tools, verify the admin URL ends in /mcp. With sign-in, a 403 that says the account is not linked means the panel found no panel user for that Keycloak account: the account's email in Keycloak matches no panel user or is not verified, the user is already linked to another Keycloak account, or the panel could not reach Keycloak. Sign in to the panel once in a browser with the same account and connect again. With a key, check that the transport is Streamable HTTP and the request header contains the full Bearer value. Remove and re-add the custom connector if its settings cannot be edited. To stop access immediately, revoke the admin API key under Settings → Security → API Keys; disabling Settings → MCP Server stops all admin MCP requests without deleting the key.
Tenant MCP
Customers use https://your-panel.example.com/mcp/tenant with a customer-owned, organization-scoped key carrying the mcp scope, created through the customer portal's MCP page. The MCPTenant capability controls access. Admin keys and ordinary non-MCP keys are not substitutes. Tenant keys do not authenticate to the admin MCP server or the ordinary REST API.
Customers can also sign in instead of using a key (claude.ai, Claude Desktop, ChatGPT; same steps as above with https://your-panel.example.com/mcp/tenant, scope mcp:tenant). The app then acts for the customer of the member's home organization (the oldest organization-wide membership, the one the portal uses), only when that customer has MCP (MCPTenant) and is not suspended. The member's role limits the tools as on the portal: a member without services.start_stop cannot restart a service. The customer always comes from the membership in the database, never from the token or a tool argument, so a service of another customer answers the same "not found" as a missing one. A login whose home organization is not a customer's (platform staff, a reseller) is refused with 403.
Tenant SSE compatibility routes are /mcp/tenant/sse and /mcp/tenant/message. The admin Settings toggle controls admin MCP; tenant MCP uses its own capability check. Revoking a tenant key stops that key's access.
The tenant registry contains health, list_services, get_service_status, get_logs, start_service, stop_service, restart_service, list_service_containers and restart_service_container (the containers of the customer's own Compose app, and a restart of one of them, as GET /api/v1/services/{id}/containers and POST …/containers/{containerId}/restart), get_service_metrics and get_services_metrics_summary (live CPU and memory of the customer's own services, as GET /api/v1/services/{id}/metrics; the same JSON as the admin tools, with CPU in percent of one logical core, and available: false in the summary when a service has no fresh sample; another customer's service answers service_not_found), redeploy_service, deploy_template, get_usage, list_plan_ai_models, get_backup_capabilities, list_local_backups, list_backup_destinations, get_capabilities (what the customer's plan allows, as GET /api/v1/portal/capabilities), list_github_connections (the customer's own GitHub connections, as GET /api/v1/github/connections), list_github_repos / list_github_branches (the repositories and branches of a connection the customer may use, as GET /api/v1/github/connections/{id}/repos and …/branches), and deploy_git / update_git_source (deploy from, or rebuild from, a repository of one of the customer's GitHub connections, as POST /api/v1/portal/services/git and PUT /api/v1/portal/services/{id}/git-source; needs the provider's Customers may deploy from Git switch, takes no customer_id, repo_url, deploy_key or resource_limits, and uses only connections shared with the whole organization), and check_deploy (check a git or template deploy before making it, as POST /api/v1/portal/services/check; read-only, no AI, takes no customer_id, checks the customer's own plan, only templates that plan offers, and never names another customer's app, see Check before deploy), and five reads of the customer's own account (AI-1323): get_ai_config (as GET /api/v1/portal/ai-config, the key is never returned), get_ai_gateway (as GET /api/v1/portal/ai-gateway, status, endpoint and this month's spend, no key material), list_api_keys and list_mcp_tokens (as GET /api/v1/portal/api-keys and GET /api/v1/portal/mcp, metadata of the token's own organization's keys, only those no stronger than the calling token), and export_customer_data (as GET /api/v1/portal/export). None of them takes a customer or organization argument. Making a service public (POST /api/v1/portal/services/{id}/publish) stays in the portal: it needs a person to confirm the app's admin account is under their control. The authenticated key supplies the customer identity. Each tool needs one permission of the Customer role, and a tool whose permission is on the key's deny list answers permission_denied (see What a token is refused). Existing-service tools check ownership, and deployment uses the customer's configured per-template quota. deploy_template takes no resource limits: the service runs with the template's declared minimum CPU and memory, and the call is refused when the customer's plan has no room for that, or with service_limit_reached when the plan's number of services is already reached, or with template_not_in_plan when the customer's plan does not offer the template (see Templates a plan offers). A template that needs a GPU gets every GPU of the server, and is refused with gpu_required on a server that cannot give one. A caller-supplied service ID does not select a different customer's resources.
update_service_env stores the value as sensitive (masked in the panel and in list_service_env) when you pass sensitive: true, when the variable is already sensitive, or when its name or value looks like a secret (a password, token or key name, or a URL with a password). Passing false never makes a sensitive variable readable. The result's sensitive field says how the value was stored. A sensitive value is write-only: no MCP tool, Assistant answer or REST list returns it, and the Assistant's stored conversation keeps [REDACTED] in its place. PUT /api/v1/services/{id}/env applies the same rule to each isSensitive flag. On both, the value ******** (what list_service_env and GET /api/v1/services/{id}/env show for a sensitive value) for a variable that already exists keeps the stored value.
deploy_template refuses a name the platform reserves (for example auth, www or status) with the tool error validation_failed: the name "auth" is reserved for the platform; choose another name; no service is created. The same applies to the admin server's deploy_template. The list is under reserved names.
Available Tools
The admin registry includes the common tools below. It also exposes health, delete_service, get_resource_usage, get_system_health, update_service_env, manage_domains, list_organizations, get_audit_log, analyze_repo, get_repo_analysis, list_git_branches, deploy_git, pull_model (see AI runtimes), restart_all_services (not offered by the in-panel Assistant, where one approval covers one change), get_approval_status, preview_tool_call and the tools that wait for approval, the captured deployment reads (get_deploy_history, get_deploy_log), the GitHub App tools (get_github_app, check_github_app, list_github_connections, reconcile_github_connections; see Connect GitHub), check_dns (the named DNS checks of Settings → DNS; read-only, never returns the token), the key-function reads and redeploy and back up the service and template tools and the customer and subscription tools. Availability of the underlying operation depends on configured dependencies. An admin key can invoke broad and destructive operations; it is not a read-only assistant credential.
| Tool | Description |
|---|---|
list_permissions | Read selectable permission UUIDs; platform authority and settings.roles_manage without a deny required |
list_services | List all deployed services with status. Like the Services page, it leaves out the panel's own bundled Ollama (aiadminpanel_ollama), so a panel with no apps returns an empty list (AI-2623) |
get_service_status | Get detailed service info including containers |
get_service_connection | Read verified internal and qualified public addresses, with symbolic password references and no password values |
get_plan_ai_models | Read which AI models a customer plan allows, with availability and the models the panel serves now (as GET /api/v1/plans/{id}/ai-models); takes plan_id. Changing the list stays in the panel's plan editor |
get_ai_model_access | Read which customer plans allow which AI models: each plan (all models, a list, or none) and each model with the plans that include it and whether the panel serves it now (as GET /api/v1/ai/access, AI-2195). Read-only |
restart_service | Restart a service |
list_service_containers | List the containers of one service: Compose service name, status, health, image, restart count, exposed ports and whether it carries the main address (as GET /api/v1/services/{id}/containers) |
get_service_guide | How to operate one service's app, for any app: its template and links, each container's name, user, volume paths (editable or not) and environment variable names (never values), a general operating method, and an optional runbook for some catalog apps (ContextForge, OpenClaw, Hermes Agent). The guide is data; it does not change which calls need approval |
restart_service_container | Restart one container of a service; the others keep running. container is the Compose service name, the container ID or a 12+ character ID prefix (as POST /api/v1/services/{id}/containers/{containerId}/restart) |
stop_service | Stop a running service |
start_service | Start a stopped service |
list_templates | Browse the template catalog; with customer_id, each template carries planAccess for that customer's plan |
list_customers | List customers with plans |
get_dashboard | Get dashboard metrics summary |
get_health | Read the platform Health verdict, machine-readable attention items and observation time |
get_attention_summary | Read what needs a person right now: Health plus stopped services, failed or overdue backups, failed certificates, licence state and pending updates, most urgent first, each with a panel link (as GET /api/v1/attention) |
deploy_template | Deploy a template with parameters |
get_logs | Get service container logs |
list_git_branches | A public repository's default branch, branches and tags (as GET /api/v1/git/refs) |
get_repo_analysis | Read an analysis started with analyze_repo (as GET /api/v1/analyze/{id}) |
deploy_git | Deploy a new private service from a Git repository (as POST /api/v1/services/git) |
check_deploy | Check a Compose file, image, Git repository or template before deploying it and explain the findings (as POST /api/v1/services/check); read-only, no AI. See Check before deploy |
deploy_git takes name, repo_url, and optionally branch, build_method, port, env, customer_id and resource_limits. It runs the same checks and writes the same rows and audit entry (service.git_created, with the API key's owner as the actor) as the REST route: without branch it builds the repository's default branch or refuses when that cannot be read, and env follows the same rules (at most 50 string values, PORT, AAP_*, PANEL_* and LITELLM_* refused, values stored encrypted and never returned). A deploy key cannot be passed over MCP. The tool needs no extra approval step: a platform admin key can already start the same build through the REST route.
Tool hints and structured results
Every tool on both servers carries a title and the four MCP tool hints, so a client can tell a read from a change before it calls one:
| Hint | Set to true when |
|---|---|
readOnlyHint | The tool changes nothing (every list_* and get_* tool, health, check_github_app, check_dns) |
destructiveHint | The call can stop, delete, overwrite or recreate something (stop_service, restart_service, delete_service, update_service_env, manage_domains, redeploy_service, set_backup_kill_switch, ...) |
idempotentHint | Calling again with the same arguments changes nothing more (start_service, stop_service, delete_service, pull_model, ...) |
openWorldHint | The call reaches a third party: GitHub, a git remote, an image or model registry, or the AI provider, or public DNS and the DNS provider (deploy_template, deploy_git, redeploy_service, analyze_repo, pull_model, the GitHub tools, check_dns, check_service_domain_dns) |
Clients such as Claude and Cursor use these hints to decide when to ask you before a call. They are hints only: the panel still checks the key, its deny list and the licence on every call.
health, get_health and get_service_status also declare an outputSchema and return the result as structuredContent. The text result carries the same JSON as before, so older clients see no change.
Key-function reads
Every key operation of the panel is reachable over the REST API and over MCP. These read-only admin tools return the same JSON as the REST route named next to them:
| Tool | Arguments | Same as |
|---|---|---|
list_service_env | service_id | GET /api/v1/services/{id}/env |
list_service_domains | service_id | GET /api/v1/services/{id}/domains |
get_template | template_id, optional customer_id (adds planAccess) | GET /api/v1/templates/{id} |
get_customer | customer_id | GET /api/v1/customers/{id} (without the login email) |
list_plans | kind (customer or resource), optional page, per_page | GET /api/v1/plans |
get_plan | plan_id | GET /api/v1/plans/{id} |
list_service_backups | service_id | GET /api/v1/services/{id}/backups |
get_backup | backup_id | GET /api/v1/backups/{id} |
list_backup_schedules | service_id | GET /api/v1/services/{id}/backup-schedules |
list_service_env shows ******** for every sensitive value and never reveals one; revealing a value stays a panel action. The backup tools only read: each backup carries a recovery object that says whether it can be restored now, but starting a restore stays in the panel.
Each tool needs the permission its REST route checks (for example services.view, organizations.view or settings.plans_manage; see What a key is refused). A key that has the permission on its deny list gets permission_denied, and nothing is read.
Redeploy and back up
Two admin tools change something, each through the same code as its REST route:
| Tool | Arguments | Same as |
|---|---|---|
redeploy_service | service_id | POST /api/v1/services/{id}/redeploy |
run_backup | service_id, optional backup_type (database, volume or full) | POST /api/v1/services/{id}/backups |
redeploy_service re-pulls the images of a Compose or template service and recreates its containers. A Git service is cloned and built again from its stored repository and branch; a Git service without a stored repository is refused with git_source_missing, and one deployed from a connected GitHub account whose connection cannot be used (disconnected, uninstalled or suspended on GitHub, owner left, moved away) with github_connection_unusable and the reason, before anything is queued. The key needs services.deploy (not on its deny list).
run_backup starts a backup and returns its id with status pending; read the outcome with get_backup. It is refused the same way as the REST route: backups_not_configured when no storage target is set, restore_not_available for a full backup of a service a customer owns, backup_worker_unavailable when the worker is down. The key needs backups.run (not on its deny list). The audit log records backup.requested with the API key's owner as the actor.
Restoring or deleting a backup (restore_backup, delete_backup) waits for an admin to approve it in the panel; see Calls that wait for approval. The in-panel Assistant asks the admin every time too (AI-2118). Rolling a service back is not on MCP.
Services and templates
These admin tools each run the same code as the REST route next to them, with the same permission and the same refusals (AI-2063). Reads change nothing; the others change something, and the in-panel Assistant asks before each one.
| Tool | Arguments | Same as |
|---|---|---|
get_service_domain | service_id, domain_id | GET /api/v1/services/{id}/domains/{domainId} |
check_service_domain_dns | service_id, domain_id | GET /api/v1/services/{id}/domains/{domainId}/dns-check |
get_service_webhook | service_id | GET /api/v1/services/{id}/webhook |
list_service_secrets | service_id | GET /api/v1/services/{id}/secrets |
get_service_disk_usage | service_id | GET /api/v1/services/{id}/disk-usage |
get_service_health | service_id | GET /api/v1/services/{id}/health. docker_health is healthy or unhealthy only when the container's Docker healthcheck reported it; none means not checked (no healthcheck, or none has run yet). traefik_health is the proxy's verdict on the service's main address: healthy (a backend is up), unreachable (none is) or unknown (the proxy has not reported it); traefik_routers lists each of the service's routers (other ports, routes, custom domain) with its own health |
list_service_snapshots | service_id | GET /api/v1/services/{id}/snapshots. The saved versions, newest first, with defaultTargetId (where a rollback without a snapshot goes). Versions of a previous owner are listed with blockedReason previous_owner |
get_service_snapshot | service_id, snapshot_id | GET /api/v1/services/{id}/snapshots/{snapshotId}. A snapshot of another service or of a previous owner is not found |
get_service_metrics | service_id, optional range (1h, 6h, 24h) | GET /api/v1/services/{id}/metrics. Live CPU (percent of one logical core) and memory per container. get_resource_usage returns only the configured limits |
get_services_metrics_summary | optional service_ids | GET /api/v1/services/metrics/summary. Current CPU% and memory% with a 1-hour sparkline, keyed by service id; without ids every service, at most 200. Unknown ids are skipped |
delete_service_env | service_id, key | DELETE /api/v1/services/{id}/env/{key}. Waits for approval |
delete_service_webhook | service_id | DELETE /api/v1/services/{id}/webhook. Waits for approval |
update_service_subdomain | service_id, domain_id, subdomain | PUT /api/v1/services/{id}/domains/{domainId}/subdomain. Recreates the container on the new address; the old one stops working. Needs services.manage_domain |
set_domain_target | service_id, domain_id, optional container, port | PUT /api/v1/services/{id}/domains/{domainId}/target. Sends one address of a multi-container app to a container of the same app (its Compose service name, as list_service_containers shows it) and a port it exposes; no container and port 0 go back to the automatic choice. Recreates the app's containers (an app built from Git: at its next deploy). Needs services.manage_domain |
create_service | name, compose_yaml, optional description, customer_id, cpu_cores, memory_mb, disk_mb | POST /api/v1/services. Creates the service from Compose and queues its first deploy; answers serviceId, deploymentId and status pending. The service starts private |
move_service_to_customer | service_id, customer_id | PUT /api/v1/services/{id}/customer. Waits for approval; once approved it queues the move, and the containers are recreated on the new customer's network |
update_resource_limits | service_id, any of cpu_cores, memory_mb, disk_mb | PUT /api/v1/services/{id}/resource-limits |
create_backup_schedule | service_id, cron_expression, optional backup_type (database, the default, volume or full; any other value is refused with validation_failed), retention_days, enabled | POST /api/v1/services/{id}/backup-schedules |
create_template | name, spec, optional display_name, description, category, icon, tags | POST /api/v1/templates |
update_template | template_id, spec, optional catalog fields | PUT /api/v1/templates/{id} |
update_template_description | template_id, description | PATCH /api/v1/templates/{id}/description |
No tool returns a secret value. get_service_webhook leaves the signing secret out, even masked, and says only whether one is stored (secret_set). list_service_secrets returns each vault secret's key, rotation class, version count and last change. Rotating or revealing a secret stays in the panel. The snapshot tools list sensitive environment variables by name only, never a value. Rolling back to a snapshot stays in the panel.
update_resource_limits changes only the fields you send and keeps a GPU reservation. CPU and memory change on the running containers at once; a disk limit applies at the next redeploy. Its liveApply answer says what waits for a redeploy and why a live change failed. update_template refuses curated catalog templates and keySignedAPI, and a spec must pass the template rules and the Docker security baseline, as in the panel. To unsuspend a service, use start_service: POST /api/v1/services/{id}/unsuspend queues the same start job.
update_service_subdomain refuses names the platform uses, names already taken, a second address of an app and multi-container services, as the panel does, and then changes nothing. Each change is in the audit log as domain.subdomain_updated, with the caller as actor. create_service and move_service_to_customer refuse what the panel refuses, before anything is written or queued: a Compose file that breaks the security baseline, a taken name, a full plan, a template the destination's plan does not offer, a secret the destination lacks, an unfinished operation on the service. An unknown customer is customer not found. Both are in the audit log (service.created, service.reassign) with the caller as actor. Making a service public (POST /api/v1/services/{id}/publish) has no tool: a person confirms in the panel that the app's admin account is under their control before it is exposed.
An id that does not exist gets the REST route's not-found answer (service not found, domain not found, no webhook found for service, template not found), and nothing changes. A domain id of another service counts as not found.
Customers and subscriptions
These admin tools also run the same code as their REST routes, with the same permission (AI-2063, batch B2). The Assistant asks before each change.
| Tool | Arguments | Same as |
|---|---|---|
create_customer | first_name, plan_id, optional last_name, company | POST /api/v1/customers, without the login (see below) |
update_customer | customer_id, first_name, optional last_name, company, plan_id | PUT /api/v1/customers/{id} |
send_customer_welcome_email | customer_id | POST /api/v1/customers/{id}/welcome-email |
get_customer_capabilities | customer_id | GET /api/v1/customers/{id}/capabilities |
set_customer_capability | customer_id, capability, enabled, optional note, ai_budget_cents, ai_tpm_limit, ai_rpm_limit, max_api_keys | PUT /api/v1/customers/{id}/capabilities/{capability} |
clear_customer_capability | customer_id, capability | DELETE /api/v1/customers/{id}/capabilities/{capability} |
get_customer_ai_usage | customer_id | GET /api/v1/customers/{id}/ai-usage |
get_customer_remaining_quotas | customer_id | GET /api/v1/customers/{id}/quotas/remaining |
get_customer_backup_overview | customer_id | GET /api/v1/customers/{id}/backup-overview |
list_subscriptions | optional customer_id, organization_id, plan_id, status | GET /api/v1/subscriptions |
get_subscription | subscription_id | GET /api/v1/subscriptions/{id} |
create_subscription | plan_id and one of customer_id, organization_id; optional status, expires_at, external_id | POST /api/v1/subscriptions |
update_subscription | subscription_id, any of plan_id, status, expires_at, external_id | PUT /api/v1/subscriptions/{id} |
list_user_roles | user_id | GET /api/v1/users/{uid}/roles |
capability is one of byok_ai, metered_ai, api_keys or mcp. The AI limits apply to metered_ai only and max_api_keys to api_keys only, as in the panel. A metered_ai change also updates the AI gateway for that customer. get_customer_capabilities says whether the customer's own AI key reaches its deployments (byokKeyForDeployments); it never returns the key.
A subscription for a customer needs a customer plan, and one for an organization needs a resource plan. Its owner never changes. Setting status to suspended or expired cuts the owner off from its plan, so the tool is marked destructive. Each change is in the audit log with the API key's owner as the actor.
A customer id that does not exist gets customer not found, the answer of GET /api/v1/customers/{id}, and nothing changes. A subscription id that does not exist gets resource not found, as REST.
create_customer creates the customer, its subscription and its organization, all or nothing, and counts towards your edition's customer limit, as the panel's form does (AI-2084). It differs from POST /api/v1/customers in one way: it creates no login. The REST route and the panel's form also create the customer's first user as its Owner and email that person a set-password link. Giving a person access stays in the panel (owner decision, AI-2118), so the tool's answer says the customer has no login yet and links to the customer page (customerPage). There an admin invites the first user, who becomes the Owner. No tool returns a password.
update_customer saves the contact name and company as the panel's edit form does: an empty last_name or company clears it. A new plan_id also moves the customer's subscription and updates its AI gateway limits. Renaming the contact also renames the customer's primary login.
send_customer_welcome_email sends the short welcome text to the address the customer's primary login already has, through the panel's email provider. It holds no link, password or code. A customer without a login gets no_login, and a panel without an email provider gets email_not_configured.
Some customer actions stay in the panel:
- Inviting a user, resending an invitation and reactivating a customer: each one gives a person a login or a set-password link. They stay in the panel's own forms, for agents and for the in-panel Assistant alike (owner decision, AI-2118).
Organizations, projects and roles
These admin tools also run the same code as their REST routes, with the same permission (AI-2063, batch B3). The Assistant asks before each change.
| Tool | Arguments | Same as |
|---|---|---|
create_organization | name, optional type (reseller or customer), parent_id, plan_id, external_id | POST /api/v1/organizations |
get_organization | organization_id | GET /api/v1/organizations/{id} |
get_organization_tree | none | GET /api/v1/organizations/tree |
update_organization | organization_id, any of name, plan_id, external_id | PUT /api/v1/organizations/{id} |
set_organization_branding | organization_id, any of logo, primary, sider_bg, company_name | PUT /api/v1/organizations/{id}/branding |
reset_organization_branding | organization_id | DELETE /api/v1/organizations/{id}/branding |
set_portal_onboarding | organization_id, enabled (boolean) | PUT /api/v1/organizations/{id}/portal-onboarding (reseller organizations only; switches the customers' Getting started list) |
list_organization_users | organization_id | GET /api/v1/organizations/{org_id}/users |
list_organization_projects | organization_id | GET /api/v1/organizations/{org_id}/projects |
create_project | organization_id, name, optional description | POST /api/v1/organizations/{org_id}/projects |
list_projects | none | GET /api/v1/projects |
get_project | project_id | GET /api/v1/projects/{id} |
update_project | project_id, any of name, description | PUT /api/v1/projects/{id} |
list_project_members | project_id | GET /api/v1/projects/{id}/members |
list_roles | none | GET /api/v1/roles |
get_role | role_id | GET /api/v1/roles/{id} |
create_organization with a plan_id creates the organization's subscription with it, all or nothing. Without type the new organization follows its parent. Organizations nest at most 5 deep; an unknown parent_id gets parent organization not found. Creating an organization gives nobody access.
Changing an organization's plan also moves its subscription to that plan, as in the panel. Branding colours must be #RRGGBB; the panel's checks apply. Editing or resetting overwrites the stored values, so those tools are marked destructive.
An id that does not exist gets the REST route's not-found answer (organization not found, project not found, role not found), and nothing changes.
Some actions stay in the panel:
- Adding a person to an organization, unsuspending an organization, and adding a project member: each one gives or restores a person's access. They stay in the panel's own forms, for agents and for the in-panel Assistant alike (owner decision, AI-2118).
- Removing a project member (
remove_project_member) waits for an admin to approve it in the panel; see Calls that wait for approval.
AI runtimes, backups and plans
These admin tools also run the same code as their REST routes, with the same permission (AI-2063, batch B4). The Assistant asks before each change.
| Tool | Arguments | Same as |
|---|---|---|
list_ai_servers | none | GET /api/v1/ai/servers: each server with its hardware, its engines (shared or dedicated) and their models. Today one server, the panel host, id local (AI-2195) |
list_ai_runtimes | none | GET /api/v1/ai/services |
get_ai_runtime_gpu | service_id | GET /api/v1/ai/services/{id}/gpu |
get_ai_runtime_health | service_id | GET /api/v1/ai/services/{id}/inference-health |
list_ai_models | service_id | GET /api/v1/ai/services/{id}/models |
get_ai_model | service_id, model | GET /api/v1/ai/services/{id}/models/{name} |
delete_ai_model | service_id, model | DELETE /api/v1/ai/services/{id}/models/{name}. Waits for approval |
pull_model | service_id, model_name | POST /api/v1/ai/services/{id}/models/pull: queues the same download job, onto that runtime's disk. An unknown service_id answers AI runtime not found (AI-2103) |
list_running_ai_models | service_id | GET /api/v1/ai/services/{id}/running |
get_backup_storage_status | none | GET /api/v1/backup-storage |
update_backup_schedule | schedule_id, cron_expression, retention_days, enabled | PUT /api/v1/backup-schedules/{id} |
create_plan | kind, name, optional display_name and settings | POST /api/v1/plans |
update_plan | plan_id, changes | PUT /api/v1/plans/{id} |
get_plan_capabilities | plan_id | GET /api/v1/plans/{id}/capabilities |
set_plan_capability | plan_id, capability, enabled, optional limits | PUT /api/v1/plans/{id}/capabilities/{capability} |
clear_plan_capability | plan_id, capability | DELETE /api/v1/plans/{id}/capabilities/{capability} |
list_plan_quotas | plan_id | GET /api/v1/plans/{planId}/quotas |
set_plan_quota | plan_id, template_name, optional max_instances | PUT /api/v1/plans/{planId}/quotas |
clear_plan_quota | plan_id, template_name | DELETE /api/v1/plans/{planId}/quotas/{templateName} |
get_plan_template_exceptions | plan_id | GET /api/v1/plans/{id}/template-exceptions |
set_plan_template_exceptions | plan_id, exceptions (the whole new list of {template_name, allowed}; [] clears it) | PUT /api/v1/plans/{id}/template-exceptions |
settings and changes take the REST body's field names (priceCents, maxServices, maxMemoryMb, permissions and so on). update_plan changes only the fields you name; the REST PUT replaces every limit with the body. A field name the panel does not know is refused. A plan's new limits apply to everyone on it, so update_plan and the capability and quota changes are marked destructive.
update_backup_schedule needs all of cron_expression, retention_days and enabled, so a paused schedule is not resumed by accident. get_backup_storage_status never returns a key.
An id that does not exist gets the REST route's not-found answer (AI runtime not found, backup schedule not found, plan not found), and nothing changes. An AI runtime is a service the AI Models page lists; any other service id is AI runtime not found.
Some actions stay in the panel:
- Deleting a plan or a backup schedule, restoring a backup (
delete_plan,delete_backup_schedule,restore_backup): they remove or overwrite data, so each call waits for an admin to approve it in the panel; see Calls that wait for approval. - Testing the storage connection: a setup step for the Settings page.
- The AI sysadmin's host changes,
clean_docker_disk,restart_platform_componentandapply_panel_update(AI-2183): the in-panel Assistant asks every time, and an agent's call waits for an admin to approve it in the panel; see Calls that wait for approval. Their REST routes arePOST /api/v1/system/docker-cleanupandPOST /api/v1/system/platform/{component}/restart(permissionsystem.host.maintain, platform administrators only) and the existingPOST /api/v1/system/update/apply.
System, audit, secrets and settings
These admin tools read what the matching REST routes read, by calling the same handler code, with the same permission (AI-2063, batch B5). None changes anything, so the Assistant runs them without asking.
| Tool | Arguments | Same as |
|---|---|---|
get_activity_summary | optional since (RFC3339) | GET /api/v1/activity/summary |
export_audit_log | optional action, resource_type, search, actor, customer, service, date_from, date_to, limit | POST /api/v1/audit-logs/export |
list_api_keys | none | GET /api/v1/api-keys |
get_autofix_policy | none | GET /api/v1/settings/autofix |
get_job_health | none | GET /api/v1/job-health |
get_license_status | none | GET /api/v1/license/status |
get_ai_provider_settings | none | GET /api/v1/settings/ai-provider |
set_ai_model | model, optional role (panel_ai, the default, or provider_ai) | the model field of PUT /api/v1/settings/ai-provider |
get_usage_metering | scope (organization, service, global), id | GET /api/v1/metering |
get_host_metrics | optional range (1h, 6h, 24h, 7d) | GET /api/v1/system/metrics |
get_host_disk_usage | none | GET /api/v1/system/disk-usage |
get_host_resources | none | GET /api/v1/system/resources |
get_host_gpus | optional template, memory_share (auto or a fraction), devices (GPU indexes, comma-separated): with template, also whether deploying it would leave the panel's Local AI short of GPU memory, with the numbers (AI-2312) | GET /api/v1/system/gpus |
get_network_isolation | none | GET /api/v1/system/network-isolation |
get_host_disk_report | none | GET /api/v1/system/disk-report |
get_platform_health | none | GET /api/v1/system/platform-health |
get_certificate_status | none | GET /api/v1/system/certificates |
get_firewall_status | none | GET /api/v1/system/firewall |
get_update_status | none | GET /api/v1/system/update-status |
check_for_update | none | POST /api/v1/system/update/check |
get_update_result | none | GET /api/v1/system/update/result |
get_secrets_status | none | GET /api/v1/secrets/status |
list_secrets | optional customer_id | GET /api/v1/secrets |
list_secret_versions | optional customer_id, path | GET /api/v1/secrets/versions |
validate_secret_ref | service_id, ref | POST /api/v1/secrets/validate-ref |
export_audit_log returns the export's CSV, with the same filters, date rules and cell escaping as the panel's export. It returns 500 rows unless you set limit (at most 10,000). list_api_keys lists the keys of the person whose key or session makes the call.
No tool returns a secret value. list_secrets and list_secret_versions return names, fields and version numbers; validate_secret_ref returns valid and a reason; list_api_keys returns each key's prefix, never the key or its hash; get_license_status leaves out even the masked licence key; get_ai_provider_settings says only whether a key is stored. set_ai_model changes the model alone: provider, base URL and key stay, and a key is added or replaced only in Settings → AI Providers. Without customer_id, the secret tools read the platform's own secrets. With it, a path the customer does not own answers secret not found, the same as a missing secret.
An id that does not exist gets the REST route's answer: resource not found for metering, secret not found for a secret path, and valid: false with service not found for a reference check.
check_for_update asks the release server, so it is marked open world, and the Assistant asks before running it. It installs nothing.
Some actions stay in the panel:
- Revealing a secret value, minting or revoking an API key: they hand out or remove a credential.
- Applying a panel update, changing the update channel, and changing the autofix policy: installation settings the operator changes in Settings.
Health verdict for agents
get_health takes no arguments and returns {state, items, checkedAt}. It is read-only and uses the Health page's shared verdict precedence: bad for an urgent item, warn for other attention items, partial when an incomplete read cannot establish health, error when all sources fail, and ok when the loaded sources have no attention items. checkedAt is the latest successful observation, or null if no source loaded. It is distinct from health, which checks MCP connectivity.
The tool combines current disk/memory projections, sustained CPU use, services in error or degraded, and service auto-fix outcomes and anomalies from the last 24 hours. Each item has severity (bad or warn) and a machine kind, with optional serviceId, serviceName, metric, value and projectedHours. The agent phrases the explanation; audit details and credentials are not returned. Anomalies expose only a known metric ID and its numeric value, without unrestricted audit labels or other fields. Repeated auto-fix restarts produce one item per service, and an escalation takes priority.
The activity source holds the latest 200 events. Reaching that bound, or the service reader's 10,000-service safety bound, marks the read incomplete rather than reporting all healthy. Observed problems still appear even when another source is incomplete. A fresh metrics buffer has no measured samples; an unavailable metrics dependency is a failed source. The result is a current observation across sources, not a transactionally consistent server snapshot. The tenant MCP server does not expose get_health.
What needs attention, for agents
get_attention_summary takes no arguments and returns {state, items, total, sources, checkedAt}, the same list the Assistant's What needs attention right now? briefing shows, and the same as GET /api/v1/attention. It is read-only, needs services.view, and calls no AI.
itemsholds theget_healthitems plusservice_stopped,backup_failed,backup_overdue,tls_failed,licence_invalid,licence_rebind,licence_grace,licence_expiring,trial_endingandupdate_available. Each hasseverity(badorwarn), a machinekindandlink, the panel path of the page that fixes it. Optional fields:serviceId,serviceName,metric,value,projectedHours,host,version,at,untilanddaysLeft. No free-form error, log or licence-server text is returned.- Items are ordered
badfirst, then by area: server, services, backups, certificates, licence, auto-fix, anomalies, updates. At most 30 are returned;totalis the full count. sourcessays forhealth,services,backups,tls,licenceandupdateswhether the check ran (ready,truncatedorfailed).stateisbadorwarnfrom the items,okonly when every check ran and found nothing,partialwhen nothing was found but a check failed, anderrorwhen no check ran.
Certificates are judged by the panel's SSL check (a failed or expired certificate), not by a days-until-expiry warning yet (planned in AI-2091). The tenant MCP server does not expose this tool.
Calls that wait for approval
Every admin tool is in one of three lanes, set by the panel by tool name (AI-927): read (changes nothing), change (runs at once) or destructive (removes something, overwrites data the panel cannot give back, or hands a customer's data to someone else). A caller cannot move a call to another lane. An agent can ask for the sixteen destructive tools, but the call does not run until a platform admin approves it in the panel (AI-1324):
| Tool | What it does |
|---|---|
delete_service | deletes a service with its containers, volumes and deployments; cannot be undone |
delete_service_env | deletes one environment variable of a service |
delete_service_webhook | deletes a service's deploy webhook and its signing secret |
delete_ai_model | deletes a downloaded model from an AI runtime |
move_service_to_customer | hands a service and its data to another customer |
restore_backup | overwrites a service's data with a backup |
delete_backup | deletes a backup |
delete_backup_schedule | removes a backup schedule |
delete_plan | deletes a plan |
remove_project_member | removes a person's access to a project |
edit_service_file | changes one text file in a service's volume |
restore_service_file | puts back a file's content from before an approved edit |
exec_in_service | runs one command in a service's container |
clean_docker_disk | removes dangling images and unused build cache on the server |
restart_platform_component | restarts one of the panel's own platform containers |
apply_panel_update | updates the panel to the available version |
Their descriptions say they wait for an admin's approval. In the tool list they are marked destructive, not read-only. Every other change, such as stop_service or update_service_env, still runs at once.
Before 2026-11 (AI-927) delete_service, delete_service_env, delete_service_webhook, delete_ai_model and move_service_to_customer ran at once. An agent that calls them now gets pending_approval and polls get_approval_status, like the tools above. A signed-in app (OAuth) cannot request an approval yet and is refused with approval_needs_api_key; use an admin API key, or switch approvals off for a key that must keep running them unattended.
Dry run. preview_tool_call with {"tool": "delete_service", "arguments": {"service_id": "…"}} changes nothing and answers what the call would do:
{
"tool": "delete_service",
"lane": "destructive",
"irreversible": true,
"waits_for_approval": true,
"target": { "serviceId": "…", "serviceName": "shop-db", "customerName": "Acme" }
}
target is the card the admin will see, resolved by the panel from its database. A key that may not use the tool, bad arguments or a target that does not exist are refused exactly as the call would be. Nothing is queued and nothing is written to the audit log as a run. For a read tool the answer has no target. waits_for_approval is false when the key's approvals are switched off.
What happens:
The agent calls the tool as usual. The panel checks the arguments, the key's deny list and the target now. A target it cannot find, bad arguments or a denied permission are refused at once and nothing is stored.
Otherwise the call is stored, not run. The answer is a normal (not an error) result:
{ "status": "pending_approval", "approval_id": "6f1c…", "expires_at": "2026-11-08T21:14:00Z", "approve_in_panel": "/approvals", "message": "An admin must approve this call in the panel …" }A platform admin approves or declines it in the panel. The request carries no arguments: what runs is exactly what the agent asked for. Before it runs, the panel checks again that the API key is still valid and has the same owner, that its deny list does not now refuse the tool, that the admin holds the tool's permission, and that the target is still the one the card showed. If anything changed, the call is marked
failedwith the reason and nothing runs. Anapply_panel_updatecard names the release it installs: when the update check has found a newer one before you approve, the card no longer matches and nothing is installed, so the agent must ask again for the new version. An estimate the card shows only for information is not part of that check:clean_docker_diskstill runs when the space it would free has changed since the request, and the card keeps the estimate you saw.An approved call runs as the API key's owner, with the key's deny list, and is written to the audit log like any other MCP change, with the approval's id and the admin who approved it. When the call changed a service (a restore, a file edit, a command), the panel then checks the service's status and health for up to 20 seconds and adds that to the result.
The agent polls
get_approval_statuswith{"approval_id": "…"}. It answerspending,declined,expired,failed(witherror) orexecuted(withresult, masked like the chat's tool output and at most 16 KiB).
Limits:
- A call waits one hour. After that it is
expiredand cannot be approved; the agent asks again. - One API key can have at most 20 calls waiting. The 21st is refused until one is decided or expires.
get_approval_statusanswers only for calls made with the same API key. Any other id, including another key's, is "approval not found".- An agent cannot approve its own call: no MCP tool decides an approval, and the decision route refuses API keys. Only a person signed in to the panel decides.
- Decided calls are kept for 90 days, then deleted.
In the panel: platform admins find the calls under Manage → Approvals. The menu entry shows how many are waiting and refreshes every 30 seconds. Each call shows which API key and which user asked, and when, a red From an external agent label, and the same card the Assistant shows before a change. Approve runs the call and Decline discards it. History lists decided calls with their outcome and, for a failed one, the reason. Other admins, resellers and customers do not see the entry.
In the audit log (surface: mcp): mcp.approval_requested (actor: the key's owner), mcp.approval_decided (actor: the admin), mcp.<tool> when it runs, and mcp.approval_expired (no actor). None of them contains the call's arguments.
The REST routes behind the panel page are GET /api/v1/approvals?status=pending (newest first, at most 100; never the arguments) and POST /api/v1/approvals/{id}/decision with {"decision": "approve"} or {"decision": "decline"}. Both are for platform admins only. Anything that cannot be decided (unknown, already decided or expired) is 404.
Switching approvals off for one API key
A platform admin can turn on Run high-risk tools without approval for one of their own platform API keys (Settings → Security → API Keys, AI-2237). That key's calls to the tools above then run at once instead of waiting, and the client's own permission prompts become the only safeguard. Set those up first: Recommended MCP Client Configuration.
- It is off for every key until an admin turns it on, and applies only to that key.
- The calls are still audited:
mcp.<tool>withapproval: skipped,api_key_idandapi_key_name. Commands and file edits also write theirassistant.*row withdecision: approval_skipped. - The key's deny list and the licence still apply. Reseller and customer keys are not affected.
- Only a person signed in to the panel can change it:
PUT /api/v1/approvals/clients/{keyId}with{"skipApproval": true}orfalserefuses API keys (403) and needssecrets.manage. A key that is not yours, is bound to an organization or is revoked is404. Each change is audited asmcp.approval_mode_changed. There is no MCP tool for it. GET /api/v1/approvals/clientslists the keys that run without approval and the tools that wait (queuedTools). The Approvals page shows that count.
Example Usage
Once connected, you can ask your AI assistant:
- "List all running services on the panel"
- "Restart the n8n service"
- "What templates are available?"
- "Show me the dashboard metrics"
Connection metadata
get_service_connection is available on the platform MCP server and takes a service_id UUID. It returns the same typed internal, public and internalState fields as the Services API. The tool preserves the REST ownership fence and does not reveal passwords.
A configured non-sensitive database name can appear as database; a sensitive or unreadable name is omitted with databaseUnavailable: true. A symbolic passwordRef remains subject to the existing credential reveal permissions and audit. The public list includes active/verified primary and named routes while preserving their existing sign-on gates. Address metadata is not a connectivity probe. The connection-details UI remains the separate Service C8 slice.
Captured deployment reads
The platform-admin registry exposes the read-only get_deploy_history tool (service_id, optional bounded page and page_size) and get_deploy_log (service_id, deployment_id). Neither is registered on the tenant MCP endpoint. Existing service/container get_logs remains separate.
History omits raw output and capture-ownership metadata and reports hasLog. The selected transcript returns deploymentId, status, redacted errorMessage, ordered lines: [{seq,text}], truncated and finalized. A terminal status alone does not confirm the deferred output flush; require finalized: true as well. Both IDs must identify the same capture. Unstructured legacy logs are hidden. See captured deployment output for the bounds and HTTP contract.
LOCAL backup list
The tenant list_local_backups tool accepts service_id and returns the same list as GET /api/v1/portal/services/{id}/backups/local: restorable LOCAL points of the service's current ownership and its recent backup or restore requests. It requires backups.view. No tenant tool starts a backup or restore; those need a signed-in customer administrator in the portal.
Read-only backup capabilities
The tenant get_backup_capabilities tool accepts service_id and reads only the authenticated token’s customer-owned service. It requires backups.view and an active, unexpired subscription. The result shares the portal’s safe plan, policy and readiness projection; a locked backup-view plan withholds policy values.
The existing organization-bound machine identity has no current human administrator qualification. Its actor qualification is unavailable, administrator and action authorization are false, physical usage is null, and every execution action is unavailable. The tool never infers authority from its creator or accepts a caller-supplied customer or administrator claim. It does not create keys/repositories, call a provider, or enqueue work.
Selectable permission catalog
The platform-only read tool list_permissions returns the selectable permission UUIDs, machine names, categories and descriptions used by role creation and edit forms. It shares GET /api/v1/permissions and requires current platform authority plus settings.roles_manage without an explicit key deny. Actor presence or a caller-supplied platform claim does not grant this read. The tool is absent from the tenant endpoint and performs no role or permission changes.