Skip to content

Troubleshooting

The symptoms people hit most, with the fix. More get added as they come up.

When OAuth is enabled, clients find your site by fetching two documents under /.well-known/: /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. WordPress serves both, but the request has to actually reach WordPress. Some servers deny anything that starts with a dot before PHP runs, and that blocks discovery.

On nginx the usual cause is a dotfile deny rule (location ~ /\. { deny all; }). Add a more specific block ahead of it so /.well-known/ falls through to WordPress:

location ^~ /.well-known/ {
try_files $uri $uri/ /index.php?$args;
}

The ^~ prefix tells nginx to prefer this block over the dotfile deny. Other hidden files stay denied.

Apache usually works as-is, because the WordPress .htaccess sends anything that is not a real file to index.php, /.well-known/ included. If a host or security plugin is blocking dotfiles, look for that rule (often in the vhost or a hardening snippet, not WordPress itself) and let /.well-known/ through.

To check, request https://your-site/.well-known/oauth-protected-resource. A working setup returns a JSON document instead of a 403 or 404.

On a site installed in a subfolder, such as example.com/blog, some clients also try /blog/.well-known/openid-configuration. Since 1.11.1 the plugin answers it with the same authorization server document. A site that runs its own OpenID Connect provider can turn that off by returning false from the aafm_serve_openid_configuration filter, and clients still find the oauth-authorization-server form.

When an agent cannot connect and you do not know why, open the Connection tab and click Check my connection (the Connection Doctor, new in 1.8.0). It runs the checks from your own server, sends nothing to anyone else, and says who can fix each problem it finds. As of 1.13.0 it checks:

  • that the MCP endpoint answers, and whether it redirects (http to https, adding or dropping www or a trailing slash, or to another address)
  • that the Authorization header reaches WordPress
  • that the MCP request headers and the JSON request body arrive intact, since some hosts strip the headers and some firewalls empty the body
  • that Application Passwords are available, the site uses HTTPS and pretty permalinks are on, and whether a security plugin that can restrict the REST API or Application Passwords is active
  • with OAuth on, that both discovery documents are reachable and current, not a stale copy or a static file under /.well-known/ naming the wrong address
  • that Pause all access is off
  • whether another plugin, such as WP Rocket or Rank Math, runs its own MCP server here. The Other MCP servers row appears only when one does. With OAuth on it shows a warning: both servers use the same two discovery addresses and this plugin answers them first, so an AI client meant for the other server can end up here and may refuse to connect. The plugin switches nothing off.

Show passing checks lists the ones that passed too, and Copy report for support copies the results. The entries below cover the causes it does not reach, such as a CDN or firewall blocking the /mcp path or a local site with a self-signed certificate.

ChatGPT will not connect and reports a discovery failure

Section titled “ChatGPT will not connect and reports a discovery failure”

ChatGPT and Claude add themselves as a client the first time you connect them, using dynamic client registration. It has its own switch, which since 1.10.0 sits on the Connection tab, under OAuth, in the Token lifetimes and client registration card. Before 1.10.0 it was on the Settings tab. With that switch off neither one can register, and ChatGPT reports a discovery failure rather than naming the setting that caused it.

From 1.7.2 it is on by default, and sites that never changed the old default-off setting are switched on when they update. If you turned it off yourself, turn it back on before you add the connector.

If every agent call is refused with 403 Forbidden and a message that access is paused by the site’s owner, Pause all access is on. A notice heads the Connection tab while it is, and Check my connection lists it as a failed check. Choose Resume all access in the Pause all access card.

If only one connection is refused, check its row under Active grants on the Connection tab. A paused connection shows Paused and keeps its sign-in. Since 1.10.1 it can still list tools, and each tool call returns a message that the connection is paused, so Resume brings it back without a new approval. A connection past its end date shows Expired and needs a site administrator to renew it. See Controlling each connection.

Since 1.10.1 the MCP endpoint refuses a request sent from a web page on another site, as the MCP specification requires. The refusal is a 403 with the code aafm_origin_not_allowed and the message “This site does not accept MCP requests from that web page.” Desktop apps, command-line tools, requests with no Origin header, the site’s own pages and the hosted ChatGPT and Claude apps are not affected. A developer can allow a browser client they trust with the aafm_mcp_allowed_origins filter.

Since 1.10.1 four refusals say what stopped them, so the agent can pass the reason on instead of guessing:

  • A paused connection still signs in and lists tools, and each tool call says the connection is paused.
  • A blocked address gets a 403 with the code aafm_ip_blocked: the request signed in, but from an address the IP allowlist does not include.
  • The rate limit names which limit refused the call, the site-wide one or the connection’s own, and its number.
  • An unknown ACF field on an ACF update names the top-level field that does not exist (aafm_acf_unknown_field).

Other status codes are unchanged. The Activity Log records each refusal as before.

The agent says a value was refused and nothing was saved

Section titled “The agent says a value was refused and nothing was saved”

Since 1.11.1 a tool refuses input it used to save or quietly ignore, names the problem and changes nothing. The ones you are most likely to see:

  • A bad URL in an SEO plugin’s URL fields (canonical, social images), a menu item or a venue or organizer website, such as a javascript: or data: link or junk text, returns aafm_invalid_url. An empty string still clears the field.
  • An event that ends before it starts, or a date that cannot be read, returns aafm_invalid_event_dates.
  • A GeoDirectory latitude or longitude outside -90 to 90 or -180 to 180 is refused.
  • A sale price above the regular price, on a product or a variation, returns aafm_wc_sale_above_regular.
  • An order for a customer id that is not a WordPress user returns aafm_wc_unknown_customer. Use a real customer id, or 0 for a guest order.
  • A refund of zero, a coupon with no code and a coupon that names a product that does not exist are refused too.

The agent gets the reason in the error, so it can correct the value and try again.

Since 1.11.2 a few more refusals have a name of their own instead of a generic error:

  • A refund above the remaining amount returns aafm_wc_refund_exceeds_remaining.
  • A user deleting their own account returns aafm_cannot_delete_self, and deleting a user without naming who takes over their content returns aafm_reassign_required. Pass reassign_to as the id of another existing user.
  • Deleting or demoting the last administrator returns aafm_last_administrator.
  • Trashing something already in the Trash returns aafm_already_trashed.
  • A tool aimed at a content type that is not exposed says so and points to the Content sub-tab of the Abilities tab, where an administrator can expose it. Add post terms on a WooCommerce product names Update WooCommerce product as the tool that sets its categories and tags.

The tools that read, write or delete a post, term or user meta key work only on keys you have exposed. Since 1.11.1, when a key is refused the agent gets a sentence saying why, with the code aafm_meta_key_refused: the key is not exposed, it is on the deny list, or it is protected or reserved. For a key that is not exposed it names the setting to turn on: Exposed meta keys in the Content sub-tab, Exposed term meta keys in Taxonomies & Terms, or Exposed user meta keys in Users, all on the Abilities tab. The message never repeats the key, ids or values.

Look at the Why is my tool missing? card on the Dashboard. It lists every tool you switched on that agents cannot see right now and says why: the tool no longer exists, its plugin is inactive or older than the tool needs, read-only mode or the high-risk lock holds it, or the server left it out when it registered the tools, for example because the enabled tool limit was reached. Tools from other plugins are not listed there; the Plugins’ own tools tab shows their state.

A connection’s access preset or allowlist can also hide a tool from that one connection while others still see it.

ChatGPT does not see a tool I just enabled

Section titled “ChatGPT does not see a tool I just enabled”

ChatGPT keeps the tool list it saw when it connected. After you switch abilities on or off, open Settings, then Integrations, then Plugins, pick the app and choose Refresh. In Claude, start a new chat or reconnect the connector. A tool missing from ChatGPT right after you enable it is this, not a plugin fault.

Before 1.11.1 there was a second cause. In the plugin’s own testing, ChatGPT kept showing its old tool list after a refresh while WooCommerce’s product create and product update tools, bridged through the Other plugins tab (now Plugins’ own tools), advertised an input schema that begins with oneOf. Since 1.11.1 the plugin advertises one merged object schema for tools built that way, so they no longer hold the list back, and the other plugin still checks the real input against its own schema when the tool runs. On an older version, update first, then refresh the app as above.

My page cache does not update after a custom-field change

Section titled “My page cache does not update after a custom-field change”

By default an agent’s change to only a post’s or term’s custom fields clears that post’s or term’s cache entry and fires the aafm_agent_meta_written action, without re-saving it, so its modified date stays the same. Since 1.11.1 it also asks LiteSpeed Cache and WP Fastest Cache to purge that post or term. A page cache that listens only to save_post, W3 Total Cache among them, needs this filter:

add_filter( 'aafm_meta_write_full_resave', '__return_true' );

That saves the post again, so its modified date moves as it would for the same edit in the block editor. Check which hooks your own cache plugin listens to.

Sign-in finishes, the client says it is connected, and no ability call ever lands.

Open the Activity Log. From 1.7.2 it records every tool call, every sign-in, and the requests that reach WordPress and fail, as (transport) rows, at most five of each kind per source address every ten minutes. A request that succeeds without calling a tool, such as listing tools, leaves no row. A sign-in with no tool calls after it usually points at something in front of WordPress, most often a CDN or firewall, rather than at the plugin.

The case we have seen confirmed is Cloudflare’s AI bot blocking, along with Super Bot Fight Mode. That was the Block AI Bots setting, which Cloudflare now replaces with Configure AI bot policies under Security Settings. You sign in through your own browser, so that part succeeds. The MCP request that follows comes from the AI client’s servers with an AI user agent, and gets blocked at the edge before WordPress ever sees it.

To confirm, open your CDN’s firewall or security event log and look for a blocked request to your MCP endpoint, whose path ends in /mcp, from the AI client’s IP range around the time you tried to connect. The entry names the rule that blocked it.

The fix is to let that endpoint through. On Cloudflare, open Security Settings and use Configure AI bot policies to allow the AI client’s traffic: set the policy that matches the block in your security events to Allow. Cloudflare has deprecated the older Block AI Bots switch from 15 September 2026, so if you still use it, turn it off. If you cannot allow that traffic across the whole zone, add a custom rule with the Skip action for the /mcp path that skips Super Bot Fight Mode rules, so the rest of your site stays covered. Cloudflare does not let a Skip rule skip Bot Fight Mode on the Free plan. Retry the connection after any change and check that the call lands in the Activity Log. Other CDNs and security plugins have the same kind of exception.

If your site uses WP Engine’s Global Edge Security, check it first. In the User Portal, open the environment’s Insights menu, go to Traffic and Security, then the Settings tab, and look at Edge traffic rules. Traffic and Security shows only for production environments that have an active Global Edge Security domain. A rule for a bot category blocks that traffic before it reaches WordPress, so remove the one that covers your AI client. WP Engine also rate-limits some AI bots across its platform, and you cannot turn that off yourself. If the agent’s calls fail with HTTP 429 errors on WP Engine, contact WP Engine support and ask them to review the limit for your site.

Every request after connecting fails with HTTP 400

Section titled “Every request after connecting fails with HTTP 400”

The client connects, then every later request comes back as HTTP 400 with an Invalid Request error that names the MCP-Protocol-Version header.

From 1.7.9 to 1.13.0 the bundled MCP Adapter required that header on every request after initialize when the session used protocol version 2025-06-18 or later, and a client that left it out was refused. Update the plugin to 1.13.1 or later. It bundles Adapter 0.7.2, which accepts a request without the header and uses the version agreed at initialize.

If the standalone MCP Adapter plugin is also active and loads first, its own copy serves the endpoint instead. To see which copy runs, click Check my connection on the Connection tab, tick Show passing checks, and read the MCP adapter active and compatible row (“Adapter 0.7.2 loaded.” is the fixed one). If it shows an older version, update the standalone plugin to 0.7.2 too.

If the client does send the header, it must match the agreed version, or the request is still refused with a 400. That usually means a custom client or script sends a fixed version string; send the one the server returned from initialize.

Windows MCP clients cannot launch the npx shim by name. Wrap it in cmd: set command to cmd and put /c, npx at the front of args. The Connection tab has a Windows tab that generates this for you.

Local stacks like DDEV, Local, and Valet serve a self-signed certificate that Node rejects, so the proxy never reaches WordPress. For local testing only, add NODE_TLS_REJECT_UNAUTHORIZED set to 0 to the env block (the Connection tab adds it automatically when it detects a local site).

Both the Changes tab and the Undo change tool refuse when putting the old value back could overwrite something newer or could not be exact. The refusal changes nothing and gives a reason. The ones you will meet, and what to do:

  • The item changed after this edit. Someone, or something, edited those fields since. Reverting would overwrite that work, so the plugin stops. Edit the item by hand, or revert the later change first.
  • Older than 30 days, or no longer kept. The history keeps changes for up to 30 days, and drops the oldest values first when its row or size cap is reached. There is nothing left to restore. A post’s revisions may still help, but only if it had been saved before.
  • The tool does not record its changes. Only 25 tools do. Orders, refunds, user accounts, file uploads, WooCommerce products, ACF field values, menus, comments, events, permanent deletes and tools from other plugins are not recorded, and the write response said so when it ran. The Avada and WPBakery Page Builder tools are not recorded either, but they have their own way back, a restore_revision_id or the previous values. See What cannot be undone and Page builder pages.
  • The key looks like a secret. A custom field whose name contains something like password, token or API key is never stored, so there is no value to put back. The aafm_undo_secret_key_patterns filter can add patterns, never remove them.
  • A page builder now owns the post, a plugin filters the field, or the Trash is switched off. The old value cannot be put back exactly, so the plugin does not try.
  • Change history was off. Recording is a switch in Settings. A change made while it was off, or while the plugin was deactivated, has no entry.

An agent’s undo has four more reasons, because it is narrower than yours:

  • Outside 24 hours, or not its own change. Agents undo only what their own connection changed in the last 24 hours. Revert anything else from the Changes tab.
  • Too many calls. A connection may make 30 Undo change calls an hour. Wait and try again within the hour.
  • The tool that made the change is off now (for a create, the matching Trash tool), the connection no longer holds its capability, or the tool’s content type is not exposed. Undo change checks again that the connection may still make that edit.
  • It would break a rule the original tool applies, such as the exposed-key allowlist or Force draft changing the status being restored. The Changes tab can do it.

If Undo change is missing from the agent’s tool list, it is off by default and the Read only, Content editor and Shop manager presets leave it out. See Undo and change history.

The agent refuses to edit an Elementor or Divi page

Section titled “The agent refuses to edit an Elementor or Divi page”

This is deliberate. A page builder owns its page’s layout, so an edit to the post text can report success and leave the page exactly as it was. Elementor, Divi, Beaver Builder, Avada, Visual Composer, Oxygen, Breakdance, Brizy, Bricks and WPBakery are covered (the first five since 1.7.4, the other five since 1.11.1). The plugin checks first and refuses the call with an error naming the builder that owns the page. Pages marked as built with Divi are refused since 1.12.0; before that, the check looked for a key Divi never stores, so update post, update page and replace in post could overwrite a Divi layout.

The write did not fail silently and there is nothing to fix in the plugin. Edit that page in its own builder, or move the content into a normal WordPress editor page if you want an agent to maintain it. The abilities covered are update post, update page, update content item, replace in post, replace block and restore revision; a site-wide replace skips builder-owned posts and reports the count separately.

Avada and WPBakery Page Builder pages are the exception. Since 1.12.0 each has its own editing tools, and restore revision works on those pages while the builder is active. If the general tools refuse an Avada or WPBakery page, enable that builder’s tools instead. See Page builders.

One edit is let through: update post, update page or update content item with only the post id and an excerpt. It saves the excerpt and keeps the stored content as it was. If the plugin cannot tell which builder owns the post, that edit is refused too.

OptimizePress is not detected yet, so a write to an OptimizePress page still goes through without this warning.

An error that starts “The WPForms Lite plugin returned an error:” came from that plugin, not from Agent Abilities. The rest of the message is the plugin’s own text, so start there. Since 1.11.0 the message gives the plugin’s name when it can be identified. Otherwise it starts “A plugin that registers tools under the “writer” namespace returned an error:“, with that plugin’s namespace in place of writer.

The Activity Log keeps that plugin’s error code when it is short and key-shaped, never its message. Filter the log to that plugin to see its other calls.

Claude says “Structured content does not match the tool’s output schema”

Section titled “Claude says “Structured content does not match the tool’s output schema””

This one showed up with WooCommerce orders and products through bridged tools. Claude rejected the whole result with an error saying the content does not match the tool’s output schema. The source plugin declared strict formats for some fields, and real values did not always fit them: an order date with no timezone, or a product URL left empty. A strict client checks every value against the declared format and throws the result away when one fails.

Update to 1.8.1 or later. Bridged tools no longer advertise those strict formats, and the values themselves are unchanged. Then use Refresh tools list in Claude so it drops the schema it cached before the update. Input schemas, the plugin’s own aafm/* tools and WordPress core’s validation were not touched by this fix.

For the full cause and fix, see the output schema error explained.

On a WPML site the agent lists or summarizes one language and behaves as though the translations are not there. Two related symptoms show up with it. The agent is told more items exist than it can actually read, because a list came back in one language while the count reported every language. And creating a menu item is reported as a failure even though the item was created.

The cause is that WPML filters content by language on every request. An agent arrives over MCP with no browser session, no cookie, and no language code in the URL, so it lands in whatever WPML treats as the default, and every read quietly inherits that filter. Nothing errors. The list just comes back short, and the agent has no way to tell that it did.

Update to 1.3.2 or newer. From that version the content reads (posts, pages, search, terms, media, products, and single-item reads) take an optional language argument and report back which language they returned, so the agent knows what it is looking at. A single-item read can fetch a specific translation. The count abilities share the list’s language scope, so the count and the list agree. The menu-item tools resolve the item by id, so an item that was created is found and reported as created.

To check, ask the agent for a list of posts in a language that is not your default. The result reports the language it returned, and it should match the one you asked for.

My agent now gets an error where it used to succeed

Section titled “My agent now gets an error where it used to succeed”

If an operation started returning an error right after updating to 1.7.5, the likely explanation is that it was failing silently before and you are only now being told.

A batch of paths in 1.7.5 moved from failing open to failing closed. WordPress hands back the same value for “there is nothing here” and “the read did not complete”, so code that took those values at face value could treat a failed database read as a real answer and report success on work that never happened. Post, block and template writes now confirm what actually landed, a failed token revoke no longer reports success, and a read that could not complete raises an error instead of returning a plausible-looking result.

An upgrade sweep confirmed none of the new failure branches fire under healthy conditions, so a persistent error here points at something real on the site rather than at the change itself. Check the Activity Log entry for the failed call, then look at database health and any persistent object cache. The longer version is in absent and unknown are not the same answer.