Developers

Developer documentation

Wopovo has two surfaces a developer can build against. The first is an MCP server that any MCP client can connect to with OAuth. The second is a tool registry inside the WordPress plugin, which lets your own plugin offer actions to agents connected through Wopovo. This page documents both. If you only want to connect Claude, the help article is shorter.

MCP endpoint

https://wopovo.com/api/mcp
  • Transport: Streamable HTTP. Send one JSON-RPC request object per POST. Batches are rejected, and GET answers 405 because the server does not open an event stream.
  • Protocol versions: 2025-06-18, 2025-03-26 and 2024-11-05. The server answers initialize with the version you asked for when it is one of these.
  • Methods: initialize, ping, tools/list, tools/call, prompts/list and prompts/get.
  • Authentication: Authorization: Bearer <access token>. A request without a valid token gets a 401 whose WWW-Authenticate header carries a resource_metadata URL, which is where OAuth discovery starts.
  • Rate limits: 120 requests per minute per connection, and 60 per minute per IP address for unauthenticated requests.
  • Scope of data: every token belongs to one company, and every tool only reaches that company's sites.
  • Plan: the server refuses a company without an active plan or trial.

In Claude Code the whole setup is one command, followed by /mcp to sign in:

claude mcp add --transport http wopovo https://wopovo.com/api/mcp

OAuth: discovery, registration and PKCE

Wopovo is its own OAuth 2.1 authorization server. Clients are public: there are no client secrets, and PKCE with S256 is required. A client that follows the MCP authorization specification needs no configuration beyond the endpoint URL.

StepEndpoint
Protected resource metadata (RFC 9728)GET /.well-known/oauth-protected-resource
Authorization server metadata (RFC 8414)GET /.well-known/oauth-authorization-server
Dynamic client registration (RFC 7591)POST /api/oauth/register
Authorization and consent screenGET /oauth/authorize
Token and refreshPOST /api/oauth/token
Revocation (RFC 7009)POST /api/oauth/revoke

1. Discover

Call the MCP endpoint without a token. Follow resource_metadata from the 401, read authorization_servers from that document, then fetch the authorization server metadata for the endpoint URLs above.

2. Register

POST /api/oauth/register
Content-Type: application/json

{
  "client_name": "My MCP client",
  "redirect_uris": ["http://localhost:8976/callback"],
  "grant_types": ["authorization_code", "refresh_token"]
}
  • redirect_uris is required and takes 1 to 10 entries. Each must be https, http on a loopback host, or a private-use scheme such as myapp://callback. Fragments and embedded credentials are rejected.
  • The response contains your client_id. No secret is issued, and token_endpoint_auth_method is always none.
  • Registration is open, so the consent screen does not trust client_name. It shows the user where the redirect goes and marks the name as unverified.

3. Send the user to the consent screen

https://wopovo.com/oauth/authorize
  ?response_type=code
  &client_id=<client_id from registration>
  &redirect_uri=http://localhost:8976/callback
  &code_challenge=<BASE64URL(SHA256(code_verifier))>
  &code_challenge_method=S256
  &scope=fleet:read
  &state=<opaque value you check on return>

The user signs in to Wopovo if needed, chooses an access level and approves. Only an Owner, Admin or Developer of a company can approve. The redirect back to you carries code and your state. A code is valid for 10 minutes and can be used once.

4. Exchange the code

POST /api/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&code=<code from the redirect>
&code_verifier=<the verifier you hashed>
&redirect_uri=http://localhost:8976/callback
&client_id=<client_id>
Response
{
  "access_token": "...",
  "token_type": "Bearer",
  "expires_in": 86400,
  "refresh_token": "...",
  "scope": "fleet:read"
}

The token endpoint accepts form-encoded bodies and JSON. To refresh, send grant_type=refresh_token with refresh_token and client_id. Every refresh returns a new refresh token and retires the old one.

5. Call the server

POST /api/mcp
Authorization: Bearer <access_token>
Content-Type: application/json

{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }

Scopes

ScopeAllows
fleet:readEvery tool that does not change a site: 13 of the 15 tools, including running a performance test.
fleet:writeThe 2 tools that change a live site. Granting it always grants fleet:read as well.
  • A request that names no scope asks for both. The consent screen still selects read-only by default, and write access is granted only when the user chooses it. Read the scope in the token response to see what you were given.
  • A refresh can narrow the scope by passing scope. It can never widen it.
  • Calling a tool that changes a site with a read-only token returns an error that says so. The refused call is written to the company's activity log.

Token lifetimes and revocation

  • An access token lasts up to 24 hours.
  • A connection lasts at most 180 days from the approval. Refreshing does not extend it. After that the user approves again.
  • Presenting a refresh token that was already rotated, or an authorization code that was already used, revokes every token of that connection.
  • Each code exchange and each refresh checks again that the approving user is still an Owner, Admin or Developer of the company and that the company still has an active plan or trial.
  • To revoke from the client side, POST the token as token to /api/oauth/revoke. Users can disconnect an app from Connect Claude in the dashboard.
  • Access tokens, refresh tokens and authorization codes are stored as SHA-256 hashes.

Tools and prompts

This table is generated from the catalogue the server is compiled against. Full input schemas come from tools/list.

ToolWhat it does
fleet_overviewRead-onlyOne call for "what needs my attention today": every site with its connection status, open incidents, pending update counts, latest PageSpeed scores, SSL expiry and plugin version, plus the reasons a site needs attention.
list_websitesRead-onlyEvery site in the fleet with connection status, versions and detected integrations.
get_websiteRead-onlyWordPress/PHP versions, plugins, themes, pending updates, SSL expiry, security state.
get_capabilitiesRead-onlyWhat the site can do: WordPress/PHP/plugin versions, hosting and cache setup, detected integrations (WooCommerce, Yoast, Elementor…), and the actions its Wopovo plugin exposes, including ones added by other plugins.
list_updatesRead-onlyPlugin, theme, and core updates awaiting a site, queried live from the site itself, with the exact identifiers apply_update needs.
get_update_historyRead-onlyUpdates already applied or attempted, for one site or the whole fleet: what, from which version to which, when, and whether it succeeded.
get_uptimeRead-onlyThe most recent raw uptime checks for one site: status, response time, timestamp.
get_uptime_summaryRead-onlyUptime percentage, downtime and incident count over the last 24 hours, 7 days or 30 days, for one site or every monitored site.
list_incidentsRead-onlyDowntime incidents across the fleet or for one site: when each started, how long it lasted, what failed, and whether it is still open.
get_performanceRead-onlyRecent PageSpeed results: mobile and desktop scores over time, plus the improvement opportunities.
list_reportsRead-onlyClient reports already generated and the schedules that produce them: title, period, status, when it was sent.
get_recent_activityRead-onlyThe activity log: what people and connected agents did recently, for one site or the whole fleet.
run_performance_testRuns a testRuns a PageSpeed test now and returns the scores; takes up to about a minute. Does not touch the WordPress site, but the result is saved to performance history and can trigger a performance alert. One test per site every 10 minutes.
apply_updateChanges a live siteApply one pending plugin, theme, or core update. Changes the live site and is recorded in update history. Needs a read and write connection.
run_site_toolChanges a live siteRun an action the site's plugin lists as safe for agents, typically one contributed by another plugin on the site. Changes the live site. Needs a read and write connection.

Prompts

PromptWhat it does
monday_fleet_reviewNo argumentsA prioritised start-of-week review of every site: what is down, what expires soon, what needs updating, and which sites got slower.
pre_update_safety_checkArguments: siteBefore applying updates to a site: check it is up and healthy, list what would change, flag risky updates, and propose an order. Applies nothing without your go-ahead.
client_monthly_summaryArguments: siteA client-ready summary of the last 30 days for one site: uptime, incidents, updates applied, performance trend, and what is planned next.

Tool results contain text that originates on customer sites, such as plugin names and page titles. Treat it as data.

Add your own actions from a WordPress plugin

From version 1.9.0 the Wopovo plugin fires the wopovo_register_tools action when it builds its tool registry. A plugin that listens to it can register actions of its own. They appear in the site's capabilities with source: "third_party", and a connected agent reaches the ones marked safe through the run_site_tool tool.

acme-wopovo-tools.php
<?php
/**
 * Plugin Name: Acme Cache Tools for Wopovo
 * Description: Adds two Acme cache actions to the Wopovo tool registry.
 */

add_action('wopovo_register_tools', function ($registrar) {

    // Read-only: an agent connected through Wopovo may run this one.
    $registrar->register(array(
        'id'             => 'acme.cache_stats',
        'category'       => 'cache',
        'title'          => 'Acme cache statistics',
        'description'    => 'Returns the number of cached pages and the cache size.',
        'is_destructive' => false,
        'handler'        => 'acme_wopovo_cache_stats',
    ));

    // Changes the live site, so it is flagged. It is listed in the site's
    // capabilities, and run_site_tool refuses to run it for an agent.
    $registrar->register(array(
        'id'             => 'acme.cache_flush',
        'category'       => 'cache',
        'title'          => 'Flush the Acme cache',
        'description'    => 'Empties the Acme page cache for one path, or for the whole site.',
        'is_destructive' => true,
        'input_schema'   => array(
            'properties' => array(
                'path' => array(
                    'type'        => 'string',
                    'description' => 'Path to flush, for example /shop/. Leave out to flush everything.',
                ),
            ),
            'required'   => array(),
        ),
        'handler'        => 'acme_wopovo_cache_flush',
    ));
});

function acme_wopovo_cache_stats($input) {
    return array(
        'pages' => (int) get_option('acme_cache_pages', 0),
        'bytes' => (int) get_option('acme_cache_bytes', 0),
    );
}

function acme_wopovo_cache_flush($input) {
    $path = isset($input['path']) ? sanitize_text_field($input['path']) : '';
    if ($path !== '' && $path[0] !== '/') {
        return new WP_Error('acme_bad_path', 'path must start with a slash.');
    }
    // ... flush here ...
    return array('flushed' => $path === '' ? 'everything' : $path);
}

Rules the registrar enforces

  • id is required, must match /^[a-z0-9_.-]+$/i and must not already be registered. A tool cannot replace one of Wopovo's own.
  • handler is required and must be callable at the time the action fires. It receives one argument, the input array.
  • is_destructive defaults to true for third-party tools. Set it to false only for a tool that changes nothing on the site.
  • sensitive defaults to false. Set it when the result contains personal data or a credential.
  • category defaults to general, title to the id, and input_schema to no properties.
  • register() returns true when the tool was accepted. A rejected tool is skipped. The reason is written to the PHP error log when WP_DEBUG is on.

How a tool is called

  • Every property listed under input_schema.required must be present and not empty, or the call is answered with 400 before your handler runs.
  • Return any JSON-serialisable value. It is passed back as the result.
  • Return a WP_Error to refuse. Its message is passed back as the error.
  • An exception thrown by the handler is caught and reported as a failed call.
  • The request has already been authenticated with the site's connection key. There is no WordPress user, so do not rely on current_user_can() inside a handler.

Check your registration

On a site of your own that is connected to Wopovo, ask the plugin for its capabilities with the site's connection key. Your tools are listed under tools.

curl -H "Authorization: Bearer $WOPOVO_CONNECTION_KEY" \
  https://your-site.example/wp-json/wopovo/v1/capabilities

The connection key is an administrator-level credential. Keep it out of shell history and source control.

The capabilities payload

GET /wp-json/wopovo/v1/capabilities returns, in one response, the plugin, WordPress and PHP versions, whether the site is multisite, the locale, the hosting and cache setup, detected integrations and the tool list. Wopovo stores it per site so that questions such as "which sites run WooCommerce" do not need a request to every site.

The payload passes through the wopovo_capabilities filter before it is sent, so a plugin can add itself to the detected integrations:

add_filter('wopovo_capabilities', function ($capabilities) {
    $capabilities['integrations'][] = array(
        'id'      => 'acme-cache',
        'name'    => 'Acme Cache',
        'version' => ACME_CACHE_VERSION,
        'active'  => true,
    );
    return $capabilities;
});
  • The filter must return an array that still has success set to true and tools and integrations as arrays. Otherwise the unfiltered payload is sent.
  • Wopovo reads the fields named above and drops anything else, so a key you invent is not stored and not shown to agents.
  • Do not use the filter to change a tool's is_destructive flag. Wopovo keeps its own block list that the payload cannot override.

What an agent may run

run_site_tool reads the site's live tool list again before every run and runs a tool only when all of the following hold. If the site cannot be reached, nothing runs.

  • The tool is in the site's current list.
  • is_destructive is exactly false. A missing flag counts as destructive.
  • sensitive is not set.
  • The tool id is not on Wopovo's block list, shown below.
  • The connection was approved for read and write.
Block list
users.list
users.list_admins
users.get
users.create
users.update_role
users.delete
users.send_password_reset
plugins.install
plugins.delete
plugins.activate
plugins.deactivate
plugins.update_one
themes.install
themes.delete
themes.activate
themes.update_one
core.update
system.self_update
database.sweep

Updates are blocked here because they go through apply_update, which records every attempt in update history. The user-facing version of this policy is in What Claude can never do, and the plugin's security model is on the Security page.

Related

  1. Tool reference for people using Claude rather than building a client.
  2. Changelog for the plugin version each feature arrived in.
  3. Questions about building against Wopovo: [email protected].