Cloudflare abilities for MCP. Clear cache for entire site or specific URLs.
Tested up to: 7.0 Stable tag: 1.0.8 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html
Cloudflare abilities for MCP. Clear cache for entire site or specific URLs.
This plugin is part of the Devenia MCP abilities ecosystem. It gives an MCP-capable agent a focused, authenticated way to work with Cloudflare work inside WordPress through MCP.
Example: "Handle this WordPress maintenance task directly." - The agent can inspect the site, call the relevant ability, and return the result without making the human click through wp-admin for every step.
In practice, the human should not have to memorize every ability name.
The normal pattern is:
- install the base MCP stack
- install only the add-ons the site actually needs
- let the agent discover the available abilities
- give the agent a clear task with boundaries
- verify the result in WordPress
The human's job is mostly to describe the goal. The agent's job is to figure out the mechanics.
Most WordPress automation still leaves the repetitive part to the human.
This plugin is different because the agent can act inside the site through a narrow, authenticated ability surface:
- inspect current site state before changing anything
- run the specific action needed for the task
- return structured results that are easy to verify
- keep the workflow inside WordPress instead of a separate checklist
That changes the experience from:
Here is what you should do in wp-admin
to:
Tell the agent what needs doing, and let it carry out the work
- ask the AI what to do
- copy the answer into WordPress by hand
- click through wp-admin for the repetitive bits
- postpone maintenance because the task is tedious
- tell the agent what needs doing
- let it inspect the relevant WordPress state
- let it run the targeted ability
- verify the result and move on
This is a good fit for:
- agencies managing WordPress sites with AI-assisted maintenance
- operators who want agents to do real WordPress work instead of producing instructions
- teams already using MCP Expose Abilities
- sites where this WordPress area is updated often enough to deserve automation
It is especially useful when the manual version is repetitive enough that important maintenance gets delayed.
Start with the main plugin page and base stack documentation:
If you are using an AI agent, the simplest instruction is often just:
Read https://github.com/bjornfix/mcp-expose-abilities and figure out the stack before making changes.
If you are new to the stack, use this order:
- Install Abilities API.
- Install MCP Adapter.
- Install MCP Expose Abilities.
- Install MCP Abilities - Cloudflare.
- Confirm the new abilities appear in discovery.
- Give the agent a clear task that uses this add-on.
If you skip base-stack verification and start with add-ons immediately, troubleshooting gets harder than it needs to be.
| Ability | Description |
|---|---|
cloudflare/clear-cache |
Purge entire Cloudflare cache or specific URLs |
cloudflare/get-zone |
Get active Cloudflare zone details |
cloudflare/get-development-mode |
Read current Cloudflare Development Mode status |
cloudflare/set-development-mode |
Enable or disable Cloudflare Development Mode |
{
"ability_name": "cloudflare/clear-cache",
"parameters": {
"purge_everything": true
}
}{
"ability_name": "cloudflare/clear-cache",
"parameters": {
"purge_everything": false,
"files": [
"https://example.com/page-1/",
"https://example.com/page-2/"
]
}
}- Fixed Cloudflare API Token installs where the official Cloudflare plugin stores the token in
cloudflare_api_key. - Matched the official Cloudflare plugin's Global API Key vs API Token credential-format detection.
- Retried cache purge requests with alternate auth when Cloudflare returns
Authentication error. - Updated zero-parameter ability schemas to accept the empty/null representations that MCP/WordPress paths can produce for
{}.
- Fixed zero-parameter schemas so they stay object-shaped without using stdClass-backed
properties. - Fixed validator-path
Cannot use object of type stdClass as arrayfailures for object-shaped inputs.
- Fixed stdClass-shaped MCP inputs and Cloudflare API response data normalization before array access.
- Fixed
cloudflare/get-zoneso{}calls do not throwCannot use object of type stdClass as array.
- Fixed Cloudflare API auth handling for installs using API tokens instead of only email + global API key.
- Added auth-header fallback for Cloudflare responses that report invalid request headers.
- Fixed zero-parameter abilities so
{}inputs are accepted by MCP clients.
- Fixed zero-parameter ability schemas so MCP Adapter 0.4.x clients do not receive invalid
properties: []JSON
- Fixed: Removed hard plugin header dependency on abilities-api to avoid slug-mismatch activation blocking
- Improve zone ID lookup caching and API header reuse
- Added: Stored zone_id optimization
- Initial release
PRs welcome. Keep changes focused on the plugin's WordPress ability surface and preserve authenticated, explicit workflows.
GPL-2.0+
Devenia - We've been doing SEO and web development since 1993.
If this plugin saves you time or makes WordPress maintenance easier to verify, please:
- star the repo
- share it with people running WordPress sites
- point them to the main plugin page so they can see what the ecosystem can actually do
Why do it?
Because agent-friendly open WordPress tooling helps more of the boring but important work get done.