WP Manifestindependent plugin directory
manifest / ai / hm-rest-ability

HM REST Ability WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A registered WordPress ability that exposes the REST API to agents using the current user's authentication

★ 5stars
13release downloads
487composer installs
v1.0.0latest · 17d ago

Install

Download hm-rest-ability-v1.0.0.zip From the v1.0.0 release on GitHub, Oct 5, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/humanmade/hm-rest-ability/releases/download/v1.0.0/hm-rest-ability-v1.0.0.zip

On Packagist as humanmade/hm-rest-ability:

composer require humanmade/hm-rest-ability
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

OAuth2 discovery endpoints and a REST API ability, for exposing WordPress to MCP clients (like Claude) via the official MCP Adapter plugin and the WordPress Abilities API.

What it does

OAuth2 discovery (inc/oauth2-discovery.php)

  • Serves /.well-known/oauth-authorization-server — RFC 8414 Authorization Server Metadata — so MCP clients can auto-discover the OAuth2 endpoints provided by the WP-API/OAuth2 plugin.
  • Serves /.well-known/oauth-protected-resource — RFC 9728 Protected Resource Metadata — so clients can discover the authorization server from a 401 on the MCP endpoint.
  • Adds a WWW-Authenticate header to 401 responses on MCP REST routes, pointing clients at the protected resource metadata.

REST API ability (inc/rest-api-abilities.php)

  • Registers a single rest-api/call ability that lets an MCP client dispatch any internal WordPress REST API request (GET, POST, PUT, PATCH, DELETE, OPTIONS), instead of needing a bespoke ability per endpoint. Permissions are enforced by running the matched route's own permission_callback.

Requirements

  • WordPress 6.9+ (for the built-in Abilities API)
  • PHP 7.4+
  • The MCP Adapter plugin (wordpress/mcp-adapter on Packagist), declared as a dependency via the Requires Plugins header.

Installation

Composer (recommended):

composer require humanmade/hm-rest-ability

Or download a release ZIP and upload it to /wp-content/plugins/.

Then activate both MCP Adapter and HM REST Ability.

Filters

  • hm_oauth2_discovery_metadata — filter the RFC 8414 authorization server metadata document.
  • hm_oauth2_protected_resource_metadata — filter the RFC 9728 protected resource metadata document.
  • hm_rest_ability_login_wall_exemptions — filter the login-wall callbacks removed from .well-known/ requests (defaults to Human Made's Require Login plugin; no-ops elsewhere).

Development

composer install
npm install
  • composer lint / composer format — PHPCS / PHPCBF against the HM coding standard.
  • composer test — PHPUnit unit tests (Brain Monkey, no WordPress load).
  • npm run test:e2e — Playwright end-to-end tests against WordPress Playground.

Release process

Releases are cut from the Actions tab: Release workflow → run with the version to release (e.g. 0.2.0). It stamps the version into the plugin header, tags the commit, and publishes a GitHub release with a distributable ZIP.

License

GPL-2.0-or-later. See LICENSE.

Releases

7 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.0 latest
Oct 5, 2026 17d ago
hm-rest-ability-v1.0.0.zip
3
Oct 1, 2026 21d ago
hm-rest-ability-v0.6.0.zip
2
Sep 22, 2026 1mo ago
hm-rest-ability-v0.5.0.zip
1
Sep 15, 2026 1mo ago
hm-rest-ability-v0.4.0.zip
4
Sep 15, 2026 1mo ago
hm-rest-ability-v0.3.0.zip
0
Sep 4, 2026 1mo ago
hm-rest-ability-v0.2.0.zip
2
Aug 27, 2026 1mo ago
hm-rest-ability-v0.1.0.zip
1
A grade

Security

HM REST Ability 1.0.0 · audited by WP Registry

No security issues found.

Audited release
1.0.0
Findings
none
Worst severity
—
Content hash
5a28e31de92bed3bbe86f8b0…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.