Team & account

Coding agents (MCP)

Let Claude Code, Cursor or Codex work on one website with scoped, revocable access.

Updated in v0.4.775 sections · 16 steps

Create access#

Each website has its own MCP endpoint. A coding agent connects with a token that works for that site only.

  1. Open the site's Coding Agents page. Only Organization owners and admins can see it.
  2. Name the access, pick a tier and an expiry of 1, 7, 30 or 90 days. A site can have up to 10 active grants.
  3. Copy the token right away; it is shown once. Revoke it at any time from the same page.

Access tiers#

  1. Read: site info, list and read files, search, and tail the site's own Nginx logs.
  2. Write: everything in Read, plus write, delete and revert files.
  3. Full: everything in Write, plus allowlisted commands: WP-CLI, Composer, Artisan and read-only Git. There is no shell.
  4. Tools above a grant's tier are not offered, and calls to them are refused and logged.

Connect your client#

The Coding Agents page shows these commands with your site's MCP address and token already filled in. The examples below use placeholders.

  1. Claude Code: run the claude mcp add command shown on the page.
  2. Cursor: add the JSON snippet to ~/.cursor/mcp.json or a project's .cursor/mcp.json.
  3. Codex: export the token as an environment variable and run the codex mcp add command shown.
  4. Any MCP client that supports Streamable HTTP with a bearer token can connect the same way.
Claude Code
claude mcp add --transport http gpanel-example-com <site-mcp-url> --header "Authorization: Bearer <token>"
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "gpanel-example-com": {
      "url": "<site-mcp-url>",
      "headers": { "Authorization": "Bearer <token>" }
    }
  }
}
Codex
export GPANEL_MCP_TOKEN="<token>"
codex mcp add gpanel-example-com --url <site-mcp-url> --bearer-token-env-var GPANEL_MCP_TOKEN

Safety and undo#

  1. Every action runs as the site's own Linux user through a signed agent job, confined to the site folder.
  2. Secrets such as .env values, wp-config.php credentials and private keys are redacted. Protected files can only be changed with Full access.
  3. Writes go to the live site, and each change is backed up first. Use revert to restore a file; the page lists every action the agent took.
  4. Calls are rate-limited per grant and per site.

Coming later#

  1. OAuth sign-in for coding agents, staging copies with an approval step before going live, and approval gates for destructive actions.

Something unclear or missing? Tell us and we will improve this guide.