Developer Mode for WordPress

Give one eligible AI connection time-limited access to developer tools. Check deployment readiness and review its requests in WordPress.

Enable a connection

Site requirements

Plugins
Use MCPMate Free and Pro 2.0.0 or later for these workspaces and the production opt-in.
Environment
Developer Mode supports local and staging deployments. On a production deployment, explicitly set MCPMATE_ENABLE_PRODUCTION_DEVELOPER_MODE=1 in the PHP process environment.
Deployment key
Set MCPMATE_DEVELOPER_SITE_KEY in the PHP process environment. Use a unique 64-character hexadecimal key for each deployment. Keep it outside the WordPress files and database so it stays behind when you copy the site.

Connection setup

  1. Authorize the connection

    After setting the deployment key, connect the AI app and approve read and write access as a site administrator. Open Access Authorization in the MCPMate sidebar to check deployment readiness, choose a duration and grant the session. Reconnect an existing app if the page reports that it needs a new grant.

  2. Choose the tools

    In Tools & Permissions, open the MCP tools tab and enable the Developer Mode tools you need. For a Custom connection, add each tool to its allowed list.

  3. If you enable file edits

    In wp-config.php, set MCPMATE_DEVELOPER_FILE_DIRS to the directories the app may edit inside a theme draft or a disabled sandbox plugin.

Review the work on the target site

  • Reviewed PHP Jobs

    Filter retained jobs and inspect the reviewed code, target site and bounded output. Each job links to its approval and audit entry. An approved job has 15 minutes to start and rechecks access before it runs.

    PHP configuration
  • WP-CLI Shell & Jobs

    Filter retained jobs, inspect reviewed command arguments and bounded output, and open the associated approval and audit entry. A limited set of reads can run immediately on single-site installations. Other supported commands need manual approval and run as background jobs.

    Server-side WP-CLI configuration
  • Load a sandbox helper

    Review the helper’s files and target site before enabling it. WordPress checks the connection each time the helper loads.

    Sandbox plugin controls

Review a proposed change

Draft post

In Approvals, compare the current and proposed values for the title, excerpt or allowed text metadata. If the draft changed since review, ask the app for a fresh preview before approving.

Example draft approval
Target site
Bookshop · Staging
Field
Post title
Before
November events
After
November author readings

File edit

Open Developer File Editor to find eligible files, view their current contents and inspect proposed changes and review history. The app can propose edits to existing CSS, JavaScript and JSON files in the directories you selected.

Restore a previous version

Choose an eligible revision from the review history, then inspect and approve the restore as a separate request. If a file changed since review, request a fresh preview.

Manage connection access

Check the expiry
New sessions default to one hour. Access Authorization shows when each connection’s session expires. Sandbox plugins authorized through that connection stop loading when the session expires.
Turn off access
In Access Authorization, turn off Developer Mode for that connection. Queued jobs recheck access before running, and its sandbox helpers stop loading. Site-wide Read mode also blocks developer tools.
After copying a site or changing its key
Reconnect the bound apps on the copy or the site with the new key. Grant Developer Mode again to each connection that needs it.

Try it on your own site

Install the plugin, paste one address into your AI app, and approve it in WordPress. Pause or revoke access any time.