Skip to content
    For developers

    The technical overview

    How MaintainHQ talks to WordPress: a connector plugin with a fixed set of actions, a REST API and an MCP server on every paid plan, staging environments with backup and rollback, and Gus, whose code changes are checked against WordPress coding standards.

    What you get with MaintainHQ

    See all features

    Connector plugin

    One plugin per site with its own key. It runs a fixed list of actions, not arbitrary commands, and needs no admin password or hosting login.

    REST API and MCP

    Pro and Agency include a REST API and an MCP server for your own scripts and AI clients. Gus is read-only through them.

    Staging with rollback

    Link a staging site to production, refresh it, test updates on it, and deploy back with a backup, a health check and automatic rollback.

    Coding standards

    Every code change Gus drafts is checked with PHPCS against WordPress-Extra and PHPCompatibilityWP before you see it.

    On the site

    The connector plugin

    Each site runs MaintainHQ Suite, a plugin you download from the dashboard with that site’s key built in. It is not on WordPress.org: each download is specific to one site.

    How requests reach the site

    Dashboard actions and Gus tools are POST requests to the plugin’s maintainhq/v1 REST namespace, carrying the site key in a header. The plugin compares it in constant time and returns 403 otherwise. WordPress users and cookies play no part.

    A fixed list of actions

    The plugin runs named actions, such as updating a plugin, taking or restoring a backup, clearing caches, maintenance mode, hardening settings and database clean-up. It is not a remote shell.

    Gus scopes, set on the site

    Gus uses a separate key, limited to the areas you allow: plugins, themes, core, files, database, content, logs and settings. Only the site can widen them, in wp-admin or with the MHQ_GUS_ACCESS constant in wp-config.php.

    Signed, staged updates

    The plugin updates itself through signed links that expire after 24 hours. New releases roll out in stages and can be withdrawn.

    Pro and Agency

    REST API and MCP server

    Both use the same API keys, created in the dashboard under API & MCP. Keys are shown once and stored only as a hash, can expire, and can be revoked at any time.

    REST API

    Versioned under /v1, with an OpenAPI document at /v1/openapi.json. Send the key as a Bearer token. Endpoints cover sites, health, plugins and themes, updates, backups, uptime, incidents, vulnerabilities, Gus findings and diagnoses, fix plans and reports.
    API and MCP

    Scopes and limits

    Keys have read, write and gus:draft scopes. Write can start backups and Gus diagnoses; gus:draft can draft fix plans but never approve or apply one. Each key is limited to 120 requests a minute across REST and MCP.

    MCP server

    A stateless Streamable HTTP endpoint at /mcp for MCP clients. Tools list sites, health, updates, vulnerabilities, uptime, incidents, backups, Gus findings, fix plans and reports. Tools outside a key’s scopes are hidden and refused.

    Gus through MCP

    The ask_gus tool lets you put a question to Gus from your own AI client. Gus has read-only tools there and cannot change a site, and nothing is approved or applied through MCP.

    Changing sites safely

    Staging, updates and code checks

    Linked environments

    On Pro and Agency, link a connected staging site to its production site. Refresh copies production onto staging; Deploy pushes staging to production. Each sync takes a backup, runs a health check and rolls back automatically if the site got worse.

    Live data stays live

    Deploys keep production’s live tables by default, for example WooCommerce orders and form entries from Gravity Forms, WPForms and Fluent Forms.

    Pre-update tests

    Before a risky update, MaintainHQ reads the changelog, looks for theme code that depends on the plugin, and runs the update on linked staging first, then gives a verdict.

    WordPress coding standards

    Every code change Gus drafts goes through php -l and PHPCS with WordPress-Extra, PHPCompatibilityWP and MaintainHQ’s own rules. Errors block the change; only issues the change introduces count.

    WP-CLI console

    On Starter, Pro and Agency, run an allow-listed set of WP-CLI commands from the dashboard, without a shell. Destructive commands ask for confirmation and take a backup first.
    WordPress tools

    Git deploys: not switched on yet

    Deploys of a theme or plugin folder from GitHub are built, with a backup, verification and rollback, but stay switched off until our GitHub App is registered. We will announce it when it is available.

    Frequently asked questions

    Does the connector need my WordPress admin password?
    No. It authenticates with the key built into that site’s download. It never needs a WordPress admin password or hosting control panel credentials.
    Which plans include the API and MCP server?
    Pro (£79 a month) and Agency (£199 a month). Other plans get a plan_required error.
    Can the API approve or apply Gus fixes?
    No. The gus:draft scope can draft fix plans, but approving and applying them always happens in MaintainHQ, by a person with permission to approve fixes.
    Can I run arbitrary WP-CLI or shell commands?
    No. The WP-CLI console accepts an allow-listed set of commands and runs them without a shell; search-replace runs as a dry run only.

    Try it on a site you know well

    Connect a site, look at what the connector reports, and create an API key on Pro to script against it.

    Start free trial

    The REST API and MCP server are on Pro (£79 a month) and Agency (£199 a month). Every plan starts with a 14-day trial.