| 开发者 | jdbg |
|---|---|
| 更新时间 | 2026年10月7日 17:01 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp_register_ability()) — content, media, comments, users, Site Editor templates & patterns, and optional WooCommerce, SEOPress and Gravity Forms integrations when those plugins are active.current_user_can), so a low-privilege caller can't read drafts or private posts by ID just because a coarse capability check passed. Listing abilities force unprivileged callers back to published content, and abilities only ever address post types the site already exposes publicly or over the REST API./wp-json/{server-slug}/mcp, so any MCP-speaking client or agent can call them. The enabled abilities are also reachable through core's own /wp-json/wp-abilities/v1/ REST routes.wp plugin install).Yes. It declares the MCP Adapter as a required plugin, so WordPress won't activate it until the adapter is installed and active, and won't let you deactivate the adapter while this plugin is active. On multisite, network-activate the adapter before network-activating this plugin.
Read-only abilities (listing/getting posts, media, comments, taxonomies, templates, site info) default on. Anything that writes or deletes data defaults off until a site administrator turns it on explicitly.
Yes — open it in WordPress Playground: https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/jdbg/hlb-ability-registry-mcp/main/blueprints/demo.json
Yes. Per-subsite settings are always intersected with the currently-available ability registry, so a stale or renamed id can never be registered. In network mode, every permission and capability check still runs inside the target subsite's own context via switch_to_blog(), so a non-member is denied exactly as if they'd called the API on that subsite directly.
Requires Plugins: mcp-adapter). WordPress will not activate this plugin until the adapter is installed and active, and offers to install it from wordpress.org. Existing installs with the adapter active are unaffected.WP_MCP_AUTOLOAD autoloader, or an unexplained load failure — and gives the remedy that fits it.get-current-user) aborted registration, silently dropping every ability after them from the MCP tool list.wc-list-products no longer returns draft, pending, private or trashed products to callers who cannot edit products.read capability cannot reach a plugin's private post types. Filterable with hlb_mcp_allowed_post_types.get-active-theme only reports the theme version and author to callers who can manage options, matching get-site-info.