| 开发者 | jdbg |
|---|---|
| 更新时间 | 2026年8月21日 18:45 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp_register_ability()) — content, media, comments, users, Site Editor templates & patterns, and optional WooCommerce and SEOPress 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. Without the MCP Adapter, the abilities you enable are still fully registered and reachable through core's own /wp-json/wp-abilities/v1/ REST routes — this plugin has value on a bare WordPress 6.9 install, the MCP Adapter is an optional extra hop for MCP clients specifically, not a hard requirement.wp plugin install).No. Abilities register with WordPress core's Abilities API regardless, and are reachable via /wp-json/wp-abilities/v1/. The MCP Adapter is only needed if you want the dedicated MCP protocol endpoint. This plugin never downloads or installs the MCP Adapter automatically — it only detects whether it's present and links to its GitHub releases page if not.
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.
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.