AI assistants over MCP Pro
Let Claude Code, Cursor, VS Code and other MCP clients work in your working copies, and decide whether they may publish, roll back and commit.
On this page
Temper Pro runs an MCP server on your site, so AI assistants such as Claude Code, Cursor, VS Code, Claude Desktop, ChatGPT and claude.ai can read, write and check the files of your themes and plugins. They work on the same private working copies you do, and every write passes the same save checks. Nothing they write reaches visitors until it's published.
You decide whether an assistant may also publish, roll back, activate and commit. That's off until you turn it on.
Set it up#
- Go to Temper › Settings and open the AI tools (MCP) tab. In the editor, the AI tab's Set up AI tools link opens it too.
- Under New key for, name the key after where you'll use it, such as "Claude Code on my laptop".
- Click Create key.
- Copy the setup for your assistant. The key is shown only once.
Then follow Connect an AI client for your assistant.
Keys#
Each key acts as the administrator who created it. The assistant can do what Temper lets that person do, and nothing more: if they lose access to Temper, so does the key.
The AI tools (MCP) tab lists every key with its name, who it Acts as, and when it was Last used. Click Revoke to stop a key at once; clients using it stop working immediately. Temper stores only a hash of each key, so a lost key can't be shown again. Create a new one instead.
Creating a key is logged in every project's Activity.
Permissions#
The tab has one switch: Let AI tools run code, publish and commit. It's off by default.
| Off | On | |
|---|---|---|
| Read, write, edit, rename and delete files in the working copy | Yes | Yes |
| Check files, see unpublished changes, search, list snapshots | Yes | Yes |
| Create themes, plugins and starters as working copies | Yes | Yes |
Render templates and template parts (render_preview on .html files) | Yes | Yes |
| Pull from GitHub or GitLab into the working copy, see Git status, list repositories | Yes | Yes |
| Check the build | Yes | Yes |
| Install Composer packages into the working copy | No | Yes |
Render blocks and patterns (render_preview runs their PHP) | No | Yes |
| Publish and roll back | No | Yes |
| Activate themes and plugins, and deactivate plugins | No | Yes |
| Commit to GitHub or GitLab, create repositories, and change which repository a project uses | No | Yes |
While it's off, those tools answer: "The site owner has not allowed AI tools to publish or commit. Ask them to review the changes in Temper and publish from there."
Turn it on only for assistants you trust with your live site. Activating a plugin runs its code on the live site, which is why it needs this permission.
What an assistant can't do#
- Change anything outside a theme or plugin's working copy, or touch
.git,.htaccessand other server files. - Skip the save checks.
- Build Tailwind, Sass or JavaScript. Builds run in your browser when someone opens Temper. An assistant can see whether the build is out of date with
get_build_status, and publishing waits until it's current. See Asset builds.
The review-before-preview hold#
Previewing runs the working copy's PHP on your server, signed in as you. So after an assistant changes a working copy, Temper holds the preview until you've looked:
- The editor's preview pane says "AI tools changed this working copy" and waits for I've reviewed them, show the preview.
- A View site tab shows Review the AI changes first.
Review the files in the Changes tab, then choose to preview. The hold comes back the next time an assistant changes something. See Preview.
How an assistant works with Temper#
When an assistant connects, Temper tells it how to work: which project is selected, that every write is checked, to prefer edit_file for small changes, where code belongs (a plugin for anything that must survive a theme switch), and to finish by telling you to review the changes in Temper with the preview link from get_theme_info.
The file tools work on one project at a time. The assistant switches with select_theme or select_plugin, which changes which project you have selected in Temper too, because the key acts as you. See the MCP tool reference.
When the licence isn't active#
Without an active Pro licence, the MCP server answers every request with an error saying it's part of Temper Pro, and the tab says what Pro adds. Saved keys are kept and connect again as soon as the licence is active. See Renewals and expiry.
WordPress Abilities API#
On WordPress 6.9 and later, Temper also registers its tools with the WordPress Abilities API, in a Temper category, as abilities such as temper/edit-file. The official WordPress MCP adapter can expose them. They follow the same permission switch and need the same access to Temper.