Check the connection
wp_connection_doctorDiagnose why an app cannot connect to a WordPress site by checking HTTPS, permalinks, endpoint auth, headers, .well-known sign-in, firewalls, Cloudflare, and REST API restrictions.
Instructions
Check what stops an app from connecting to this site and how to fix it: HTTPS, the permalinks, whether the MCP endpoint answers a request without a token with its own 401 or something in front of the site answers instead (a ModSecurity rule, Cloudflare, LiteSpeed, Wordfence, a plugin that restricts the REST API, an HTTP login), whether the server passes the Authorization header on to WordPress, the two sign-in descriptions below /.well-known/ (resource and authorization server, each checked to be this plugin's), the firewall test of the direct sign-in, whether the site is behind Cloudflare, and active plugins known to restrict the REST API. Every request goes from the site to itself, the endpoint asked without the HTTP login of the current request; so a block that applies only to requests from outside, such as Cloudflare's bot rules for AI crawlers, is not seen; the result says so in limits. Returns checks: [{id, status (ok, warn, fail, info or skip), title, finding, steps}], summary (the count per status and one line), checked_at (UTC, ISO 8601) and limits. Changes nothing on the site and keeps nothing, the finding of the firewall test included. Needs manage_options; takes no arguments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||