Developer options, off by default

Opt-in

Optional access for developers who need more than MCPMate’s standard tools.

Before enabling an option

Each option requires MCPMate Pro, its own enable constant set to true in wp-config.php, and a separate administrator switch. Both are off by default.

Define only the constants for the options you need, then enable their controls below. A WP-CLI executable path alone does not enable access.

PHP, real WP-CLI and browser login can reach beyond the standard draft and trash protections. Review the specific access and approval boundary below; the audit log is a record, not an automatic undo.

Options and remaining safeguards

Run PHP

Opt-in · off by default

The execute_php tool runs administrator-approved PHP. This is a developer escape hatch: arbitrary PHP can change live data beyond the standard draft and trash safeguards.

Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.

wp-config.php
MCPMATE_ENABLE_EXECUTE_PHP set to true.
Admin switch
MCPMate → Tools → Core → Run PHP: enable execute_php..

What still protects the site

  • Approval and access: Every call waits for an administrator’s approval, showing the exact code before execution. The AI cannot approve its own request.
  • Audit: The code is stored in the audit row, with the requesting user and result. Review code before approval; syntax checks do not prove it is safe.
  • Read mode: Read mode refuses PHP execution, including code described as read-only.
  • Code is linted and runs in a separate request with a time limit; captured output is capped.
  • Normal WordPress permissions, pause and revoke remain in force; no automatic undo is promised.

Real WP-CLI passthrough

Opt-in · off by default

Run the actual WP-CLI executable instead of MCPMate’s reviewed PHP command handlers. Commands can change live data and are not limited to standard draft operations.

Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.

wp-config.php
MCPMATE_ENABLE_SHELL_CLI set to true.
Admin switch
MCPMate → Tools → Core → WP-CLI on the server: enable run_wp_cli_shell..

Additional prerequisite: MCPMATE_CLI_PATH. An administrator must define the path to the WP-CLI executable. A path alone does not enable passthrough.

What still protects the site

  • Approval and access: Every non-read command waits for approval. Review the exact command and arguments; the AI cannot approve it.
  • Audit: Requests and their results remain in the audit log, attributed to the requesting user.
  • Read mode: Read mode refuses the entire passthrough route, including read commands. Use the standard read tools instead.
  • Arguments are passed directly as argv without a shell, and output is capped.
  • This is separate from both the standard AI command allowlist and the Free wp mcpmate terminal management commands.

Ghost Mode

Opt-in · off by default

Hide MCPMate’s menu, notices and admin-bar item from selected administrators for client handoff. This changes visibility, not permissions.

Requires both the option’s enable constant in wp-config.php and an administrator switch. Both start off; installing Pro or defining a path does not turn an option on.

wp-config.php
MCPMATE_ENABLE_GHOST_MODE set to true.
Admin switch
MCPMate → Settings → Ghost Mode: select the affected administrators..

What still protects the site

  • Approval and access: An administrator explicitly enables it and chooses the affected administrators. It never hides from the administrator who enabled it; tool approvals still apply.
  • Audit: Auditing never stops. Ghost Mode remains listed in Site Health, so MCPMate cannot be fully hidden.
  • Read mode: Read mode continues to refuse AI writes. Hiding interface elements cannot disable read mode, approvals, pause or revoke.
  • Use it to simplify the client interface, not to conceal activity or grant access.

Disable access after the work

Turn off the administrator switch and remove the option’s enable constant or set it to false. Pause or revoke the relevant AI connection. Pause, Read mode and connection revocation also end sessions created by login links. End ordinary WordPress browser sessions separately.

Read the Security overview