[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GKVRG9Y2QF83Q10NZ5HFFF":3,"skill-same:01M6GKVRG9Y2QF83Q10NZ5HFFF":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6GKVRG9Y2QF83Q10NZ5HFFF","wp-abilities-mcp",null,"Use when exposing site features to AI agents in a WordPress + Acorn project - the Abilities API (wp_register_ability, wp_abilities_api_init, \u002Fwp-json\u002Fwp-abilities\u002Fv1), roots\u002Facorn-ai (make:ability), wordpress\u002Fmcp-adapter (discover-abilities, execute-ability, meta.mcp.public), the project .mcp.json, ACF 6.8 abilities (allow_ai_access), \"ability not showing\", connecting an agent to the local site. For generic REST routes use acorn-routes-api; for installing plugins use wp-composer-plugins.","hekivo\u002Fkivo-wise","hekivo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F278159278?v=4","01M6GKH8S3Z4CAJ9RRR607G1WJ","Hekivo","01M6GKH8XNM7HTVF4DC86MA8RG",14,"MIT","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-abilities-mcp\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"wp abilities mcp","MCP","site","routes-api","composer","adapter","register","discover","project","local","use","json","access","api","REST","Meta","plugins","init","wordpress","ai agents","2026-11-10 10:12:30",false,"---\nname: wp-abilities-mcp\ndescription: Use when exposing site features to AI agents in a WordPress + Acorn project - the Abilities API (wp_register_ability, wp_abilities_api_init, \u002Fwp-json\u002Fwp-abilities\u002Fv1), roots\u002Facorn-ai (make:ability), wordpress\u002Fmcp-adapter (discover-abilities, execute-ability, meta.mcp.public), the project .mcp.json, ACF 6.8 abilities (allow_ai_access), \"ability not showing\", connecting an agent to the local site. For generic REST routes use acorn-routes-api; for installing plugins use wp-composer-plugins.\n---\n\n# Abilities API and MCP Adapter\n\nWordPress core (6.9+) has the **Abilities API**: a registry of named, schema-described actions with a permission callback. The **MCP Adapter** (`wordpress\u002Fmcp-adapter`) projects those abilities to MCP clients over HTTP or STDIO. `roots\u002Facorn-ai` adds an Acorn-friendly base class resolved from the container. Register the domain action once as an ability; REST and MCP exposure are flags on it, not separate code.\n\nRunner placeholders come from the session context: `{{runner.wp}}` (Lando default `lando wp`), `{{runner.acorn}}` (`lando wp acorn`), `{{runner.composer}}` (`lando composer`), `{{runner.cache}}`. Never run `wp` or `composer` on the host.\n\n## When to use\n\n- Adding an ability (read or write) that an agent, the REST API or the MCP Adapter should call.\n- Installing or wiring `roots\u002Facorn-ai` and `wordpress\u002Fmcp-adapter`, or writing the project `.mcp.json`.\n- An ability is missing from `discover-abilities`, `ability:list` or `\u002Fwp-abilities\u002Fv1\u002Fabilities`.\n- Deciding which ACF 6.8 abilities to keep, remove or expose.\n\n## Inputs required\n\n- WordPress version (≥ 6.9 for core abilities): `{{runner.wp}} core version`.\n- Whether `roots\u002Facorn-ai` and `wordpress\u002Fmcp-adapter` are installed, and where (which `composer.json`).\n- The action in one sentence, who may run it (capability), and whether it only reads.\n- The active profile, namespace and app path from the session context.\n\n## Procedure\n\n1. **Native first.** Check what is already registered before adding anything: `{{runner.wp}} eval 'foreach (wp_get_abilities() as $a) echo $a->get_name(), PHP_EOL;'`. Core registers `core\u002Fget-site-info`, `core\u002Fget-user-info`, `core\u002Fget-environment-info`; ACF 6.8 registers its own when enabled ([references\u002Facf-abilities.md](references\u002Facf-abilities.md)).\n2. **Register a category first.** Every ability needs a registered `category`; register yours on `wp_abilities_api_categories_init` (or reuse `site` \u002F `user`).\n3. **Register the ability on `wp_abilities_api_init`**, from a service provider `boot()`. Calling `wp_register_ability()` anywhere else is rejected with `_doing_it_wrong`. The registry is created lazily after `init`, so a hook added in `boot()` is always in time.\n   - With `roots\u002Facorn-ai`: `{{runner.acorn}} make:ability ListProjects` creates `app\u002FAi\u002FAbilities\u002FListProjectsAbility.php`; list the class in `config\u002Fai-wordpress.php` `abilities`. Override `name()`, `category()`, `inputSchema()`, `permission()` and `meta()` (see the traps in [references\u002Facorn-ai.md](references\u002Facorn-ai.md)).\n   - Without it: call `wp_register_ability('ns\u002Fname', [...])` yourself; keep the callback thin and delegate to a class resolved with `app()`.\n4. **Describe it for agents**: `label`, a `description` written like a tool description, an object `input_schema` (always, even with no properties), an `output_schema`, and `meta.annotations` (`readonly`, `destructive`, `idempotent`).\n5. **Choose the exposure**:\n   - REST `\u002Fwp-json\u002Fwp-abilities\u002Fv1\u002Fabilities\u002F\u003Cname>\u002Frun`: `meta.show_in_rest => true` (in WordPress 7.1, `meta.public => true` seeds it). Read-only abilities answer `GET` with `input` in the query; destructive + idempotent ones `DELETE`; the rest `POST`.\n   - MCP default server: `meta.mcp.public => true`. The default server lists three tools (abilities `mcp-adapter\u002Fdiscover-abilities`, `get-ability-info`, `execute-ability`, which MCP clients see as `mcp-adapter-discover-abilities` and so on, `\u002F` becoming `-`); public abilities are reached through them, not as separate tools. For direct tools, create a custom server on `mcp_adapter_init`.\n6. **Load the adapter and connect a client** per profile (table below and [references\u002Fmcp-adapter.md](references\u002Fmcp-adapter.md)). STDIO: `{{runner.wp}} mcp-adapter serve --server=mcp-adapter-default-server --user=\u003Clogin>`. HTTP: `\u002Fwp-json\u002Fmcp\u002Fmcp-adapter-default-server` with an application password.\n7. Clear caches after PHP changes (`{{runner.cache}}`), then verify.\n\n### Profiles\n\n| | `sage-theme` | `acorn-mu-plugin` | `radicle-app` |\n|---|---|---|---|\n| `roots\u002Facorn-ai` goes in | the Composer project that requires Acorn (theme `composer.json`) | the plugin `composer.json` | root `composer.json` |\n| `config\u002Fai-wordpress.php` | theme `config\u002F` | plugin `config\u002F` | project `config\u002F` |\n| Provider registration | acorn-ai's provider is package-discovered; your own provider in the theme's `withProviders()` | package discovery or the plugin's provider list in its boot configuration | package discovery; your providers in `composer.json` `extra.acorn.providers` |\n| `wordpress\u002Fmcp-adapter` | Bedrock root as a `wordpress-plugin` (activate it), or a library in the theme + `McpAdapter::instance()` | library in the plugin `vendor\u002F`; WordPress never loads its plugin file, so the plugin calls `\\WP\\MCP\\Core\\McpAdapter::instance()` (early on `init`, gated per environment) | root Composer installs it in the content `plugins\u002F` dir (activate it); define `WP_MCP_AUTOLOAD` as `false` in the Bedrock config because the classes come from the root autoloader |\n| ACF abilities | available when ACF ≥ 6.8 and `enable_acf_ai` is on | same | ACF not installed by default: no `acf\u002F*` abilities |\n\n## Verification\n\n- `{{runner.acorn}} ability:list` (acorn-ai) or the `wp eval` loop from step 1 shows the name.\n- `{{runner.wp}} mcp-adapter list` shows `mcp-adapter-default-server` (and custom servers).\n- STDIO smoke test: `echo '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools\u002Fcall\",\"params\":{\"name\":\"mcp-adapter-discover-abilities\",\"arguments\":{}}}' | {{runner.wp}} mcp-adapter serve --server=mcp-adapter-default-server --user=\u003Clogin>` lists your ability.\n- REST: `GET \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002Fabilities\u002F\u003Cname>` as an authenticated user returns it when `show_in_rest` is true.\n- The MCP client (after restarting it) lists the server from `.mcp.json`.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `_doing_it_wrong`: \"must be registered on wp_abilities_api_init\" | `wp_register_ability()` called in `boot()` directly or on `init` | Wrap it in `add_action('wp_abilities_api_init', …)` |\n| acorn-ai ability silently missing | `Ability::category()` returns `null` by default and core requires a registered category | Override `category()` and register the category on `wp_abilities_api_categories_init` |\n| \"Ability category … is not registered\" | Category registered on the wrong hook or after the ability | Use `wp_abilities_api_categories_init` |\n| Execute returns `ability_callback_exception` (argument count) on an acorn-ai ability | Without an `input_schema`, core calls the callback with no argument, but the acorn-ai wrapper expects `array $input` | Always return an object schema from `inputSchema()` |\n| Ability missing from `discover-abilities` | No `meta.mcp.public => true` (a top-level `meta.public` is not read by adapter 0.5.0) | Add `'mcp' => ['public' => true]` to `meta()` |\n| REST run returns 404 `rest_ability_not_found` | `meta.show_in_rest` false (default) | Set `show_in_rest` (or `public` on 7.1) |\n| REST run rejects the method | Method must follow annotations (`readonly` → GET) | Call with the method the annotations imply |\n| `mcp-adapter` is \"not a registered wp command\" while the plugin is active | Its autoloader looked for a plugin-local `vendor\u002Fautoload.php` and stopped | Define `WP_MCP_AUTOLOAD` false (classes from the root autoloader), or install it where its own `vendor\u002F` exists |\n| MCP client gets garbage before the JSON-RPC stream | `serve` without `--server` prints \"Using server: …\" to stdout; PHP notices printed to stdout | Always pass `--server=`; keep `WP_DEBUG_DISPLAY` off for the serve command |\n| `execute-ability` denied | `permission_callback` false for the `--user` (or no user: logged out) | Pass `--user=` with the needed capability; review the callback |\n| `{{runner.acorn}} ability:list` crashes reading properties | Older acorn-ai reads `WP_Ability` properties instead of getters | Use the `wp eval` loop from step 1, or update\u002Fpatch the package |\n\n## Escalation\n\n- Ability design at depth (grouping, shared services, error codes, input schema gotchas): the third-party `wp-abilities-api` skill.\n- Capability design for `permission_callback`: wp-security-escaping. Plain REST routes or Acorn routes: acorn-routes-api.\n- Installing the packages: wp-composer-plugins. Exposing a write ability (create, update, delete) to agents on a shared or production site: ask the user first and propose gating by environment.\n\n\u003C!-- verified:\nwp\u002Fwp-includes\u002Fabilities-api.php:290-305 — wp_register_ability requires doing_action('wp_abilities_api_init'); abilities-api\u002Fclass-wp-abilities-registry.php:283-313 — lazy registry after init fires wp_abilities_api_init;\nclass-wp-abilities-registry.php:141-157 — category must be registered; class-wp-ability.php:295 — category required; :346-371 — meta.public (since 7.1.0) seeds show_in_rest;\nclass-wp-ability.php:585-590 — callback gets $input only when input_schema is non-empty; :519-533 — input without schema rejected;\nwp-includes\u002Fabilities.php:17-35,90-300 — core categories site\u002Fuser and core\u002F* abilities; rest-api\u002Fendpoints\u002Fclass-wp-rest-abilities-v1-run-controller.php:45,110-145 — run route, method from annotations, show_in_rest;\nvendor\u002Froots\u002Facorn-ai (0.1.2) src\u002FAcornAiServiceProvider.php:72-94 — registers config('ai-wordpress.abilities') on wp_abilities_api_init with fn(array $input); src\u002FAbilities\u002FAbility.php:62-64 — category() null, name() \"\u003Cns>\u002F\u003Ckebab>\"; MakeAbilityCommand — \\Ai\\Abilities; README — publish tags ai-wordpress-config \u002F ai-config;\nvendor\u002Fwordpress\u002Fmcp-adapter (0.5.0) includes\u002FAutoloader.php:30-41 — WP_MCP_AUTOLOAD bypass; Core\u002FMcpAdapter.php:54-66,114-120,140 — init on init@20 (CLI) \u002F rest_api_init@15, default server, 'mcp-adapter' command;\nServers\u002FDefaultServerFactory.php:44-57 — server id\u002Froute, three tools; Abilities\u002FMcpAbilityHelperTrait.php:39,64 — meta['mcp']['public']; Cli\u002FMcpCommand.php:53-90 — --server\u002F--user; :78 prints \"Using server\" when omitted; Transport\u002FHttpTransport.php:111-120 — default capability 'read';\nadvanced-custom-fields-pro src\u002FAI\u002FAbilities\u002F*.php — ability names and categories (see references\u002Facf-abilities.md).\n-->\n","# Abilities API and MCP Adapter\n\nWordPress core (6.9+) has the **Abilities API**: a registry of named, schema-described actions with a permission callback. The **MCP Adapter** (`wordpress\u002Fmcp-adapter`) projects those abilities to MCP clients over HTTP or STDIO. `roots\u002Facorn-ai` adds an Acorn-friendly base class resolved from the container. Register the domain action once as an ability; REST and MCP exposure are flags on it, not separate code.\n\nRunner placeholders come from the session context: `{{runner.wp}}` (Lando default `lando wp`), `{{runner.acorn}}` (`lando wp acorn`), `{{runner.composer}}` (`lando composer`), `{{runner.cache}}`. Never run `wp` or `composer` on the host.\n\n## When to use\n\n- Adding an ability (read or write) that an agent, the REST API or the MCP Adapter should call.\n- Installing or wiring `roots\u002Facorn-ai` and `wordpress\u002Fmcp-adapter`, or writing the project `.mcp.json`.\n- An ability is missing from `discover-abilities`, `ability:list` or `\u002Fwp-abilities\u002Fv1\u002Fabilities`.\n- Deciding which ACF 6.8 abilities to keep, remove or expose.\n\n## Inputs required\n\n- WordPress version (≥ 6.9 for core abilities): `{{runner.wp}} core version`.\n- Whether `roots\u002Facorn-ai` and `wordpress\u002Fmcp-adapter` are installed, and where (which `composer.json`).\n- The action in one sentence, who may run it (capability), and whether it only reads.\n- The active profile, namespace and app path from the session context.\n\n## Procedure\n\n1. **Native first.** Check what is already registered before adding anything: `{{runner.wp}} eval 'foreach (wp_get_abilities() as $a) echo $a->get_name(), PHP_EOL;'`. Core registers `core\u002Fget-site-info`, `core\u002Fget-user-info`, `core\u002Fget-environment-info`; ACF 6.8 registers its own when enabled ([references\u002Facf-abilities.md](references\u002Facf-abilities.md)).\n2. **Register a category first.** Every ability needs a registered `category`; register yours on `wp_abilities_api_categories_init` (or reuse `site` \u002F `user`).\n3. **Register the ability on `wp_abilities_api_init`**, from a service provider `boot()`. Calling `wp_register_ability()` anywhere else is rejected with `_doing_it_wrong`. The registry is created lazily after `init`, so a hook added in `boot()` is always in time.\n   - With `roots\u002Facorn-ai`: `{{runner.acorn}} make:ability ListProjects` creates `app\u002FAi\u002FAbilities\u002FListProjectsAbility.php`; list the class in `config\u002Fai-wordpress.php` `abilities`. Override `name()`, `category()`, `inputSchema()`, `permission()` and `meta()` (see the traps in [references\u002Facorn-ai.md](references\u002Facorn-ai.md)).\n   - Without it: call `wp_register_ability('ns\u002Fname', [...])` yourself; keep the callback thin and delegate to a class resolved with `app()`.\n4. **Describe it for agents**: `label`, a `description` written like a tool description, an object `input_schema` (always, even with no properties), an `output_schema`, and `meta.annotations` (`readonly`, `destructive`, `idempotent`).\n5. **Choose the exposure**:\n   - REST `\u002Fwp-json\u002Fwp-abilities\u002Fv1\u002Fabilities\u002F\u003Cname>\u002Frun`: `meta.show_in_rest => true` (in WordPress 7.1, `meta.public => true` seeds it). Read-only abilities answer `GET` with `input` in the query; destructive + idempotent ones `DELETE`; the rest `POST`.\n   - MCP default server: `meta.mcp.public => true`. The default server lists three tools (abilities `mcp-adapter\u002Fdiscover-abilities`, `get-ability-info`, `execute-ability`, which MCP clients see as `mcp-adapter-discover-abilities` and so on, `\u002F` becoming `-`); public abilities are reached through them, not as separate tools. For direct tools, create a custom server on `mcp_adapter_init`.\n6. **Load the adapter and connect a client** per profile (table below and [references\u002Fmcp-adapter.md](references\u002Fmcp-adapter.md)). STDIO: `{{runner.wp}} mcp-adapter serve --server=mcp-adapter-default-server --user=\u003Clogin>`. HTTP: `\u002Fwp-json\u002Fmcp\u002Fmcp-adapter-default-server` with an application password.\n7. Clear caches after PHP changes (`{{runner.cache}}`), then verify.\n\n### Profiles\n\n| | `sage-theme` | `acorn-mu-plugin` | `radicle-app` |\n|---|---|---|---|\n| `roots\u002Facorn-ai` goes in | the Composer project that requires Acorn (theme `composer.json`) | the plugin `composer.json` | root `composer.json` |\n| `config\u002Fai-wordpress.php` | theme `config\u002F` | plugin `config\u002F` | project `config\u002F` |\n| Provider registration | acorn-ai's provider is package-discovered; your own provider in the theme's `withProviders()` | package discovery or the plugin's provider list in its boot configuration | package discovery; your providers in `composer.json` `extra.acorn.providers` |\n| `wordpress\u002Fmcp-adapter` | Bedrock root as a `wordpress-plugin` (activate it), or a library in the theme + `McpAdapter::instance()` | library in the plugin `vendor\u002F`; WordPress never loads its plugin file, so the plugin calls `\\WP\\MCP\\Core\\McpAdapter::instance()` (early on `init`, gated per environment) | root Composer installs it in the content `plugins\u002F` dir (activate it); define `WP_MCP_AUTOLOAD` as `false` in the Bedrock config because the classes come from the root autoloader |\n| ACF abilities | available when ACF ≥ 6.8 and `enable_acf_ai` is on | same | ACF not installed by default: no `acf\u002F*` abilities |\n\n## Verification\n\n- `{{runner.acorn}} ability:list` (acorn-ai) or the `wp eval` loop from step 1 shows the name.\n- `{{runner.wp}} mcp-adapter list` shows `mcp-adapter-default-server` (and custom servers).\n- STDIO smoke test: `echo '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools\u002Fcall\",\"params\":{\"name\":\"mcp-adapter-discover-abilities\",\"arguments\":{}}}' | {{runner.wp}} mcp-adapter serve --server=mcp-adapter-default-server --user=\u003Clogin>` lists your ability.\n- REST: `GET \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002Fabilities\u002F\u003Cname>` as an authenticated user returns it when `show_in_rest` is true.\n- The MCP client (after restarting it) lists the server from `.mcp.json`.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `_doing_it_wrong`: \"must be registered on wp_abilities_api_init\" | `wp_register_ability()` called in `boot()` directly or on `init` | Wrap it in `add_action('wp_abilities_api_init', …)` |\n| acorn-ai ability silently missing | `Ability::category()` returns `null` by default and core requires a registered category | Override `category()` and register the category on `wp_abilities_api_categories_init` |\n| \"Ability category … is not registered\" | Category registered on the wrong hook or after the ability | Use `wp_abilities_api_categories_init` |\n| Execute returns `ability_callback_exception` (argument count) on an acorn-ai ability | Without an `input_schema`, core calls the callback with no argument, but the acorn-ai wrapper expects `array $input` | Always return an object schema from `inputSchema()` |\n| Ability missing from `discover-abilities` | No `meta.mcp.public => true` (a top-level `meta.public` is not read by adapter 0.5.0) | Add `'mcp' => ['public' => true]` to `meta()` |\n| REST run returns 404 `rest_ability_not_found` | `meta.show_in_rest` false (default) | Set `show_in_rest` (or `public` on 7.1) |\n| REST run rejects the method | Method must follow annotations (`readonly` → GET) | Call with the method the annotations imply |\n| `mcp-adapter` is \"not a registered wp command\" while the plugin is active | Its autoloader looked for a plugin-local `vendor\u002Fautoload.php` and stopped | Define `WP_MCP_AUTOLOAD` false (classes from the root autoloader), or install it where its own `vendor\u002F` exists |\n| MCP client gets garbage before the JSON-RPC stream | `serve` without `--server` prints \"Using server: …\" to stdout; PHP notices printed to stdout | Always pass `--server=`; keep `WP_DEBUG_DISPLAY` off for the serve command |\n| `execute-ability` denied | `permission_callback` false for the `--user` (or no user: logged out) | Pass `--user=` with the needed capability; review the callback |\n| `{{runner.acorn}} ability:list` crashes reading properties | Older acorn-ai reads `WP_Ability` properties instead of getters | Use the `wp eval` loop from step 1, or update\u002Fpatch the package |\n\n## Escalation\n\n- Ability design at depth (grouping, shared services, error codes, input schema gotchas): the third-party `wp-abilities-api` skill.\n- Capability design for `permission_callback`: wp-security-escaping. Plain REST routes or Acorn routes: acorn-routes-api.\n- Installing the packages: wp-composer-plugins. Exposing a write ability (create, update, delete) to agents on a shared or production site: ask the user first and propose gating by environment.\n\n\u003C!-- verified:\nwp\u002Fwp-includes\u002Fabilities-api.php:290-305 — wp_register_ability requires doing_action('wp_abilities_api_init'); abilities-api\u002Fclass-wp-abilities-registry.php:283-313 — lazy registry after init fires wp_abilities_api_init;\nclass-wp-abilities-registry.php:141-157 — category must be registered; class-wp-ability.php:295 — category required; :346-371 — meta.public (since 7.1.0) seeds show_in_rest;\nclass-wp-ability.php:585-590 — callback gets $input only when input_schema is non-empty; :519-533 — input without schema rejected;\nwp-includes\u002Fabilities.php:17-35,90-300 — core categories site\u002Fuser and core\u002F* abilities; rest-api\u002Fendpoints\u002Fclass-wp-rest-abilities-v1-run-controller.php:45,110-145 — run route, method from annotations, show_in_rest;\nvendor\u002Froots\u002Facorn-ai (0.1.2) src\u002FAcornAiServiceProvider.php:72-94 — registers config('ai-wordpress.abilities') on wp_abilities_api_init with fn(array $input); src\u002FAbilities\u002FAbility.php:62-64 — category() null, name() \"\u003Cns>\u002F\u003Ckebab>\"; MakeAbilityCommand — \\Ai\\Abilities; README — publish tags ai-wordpress-config \u002F ai-config;\nvendor\u002Fwordpress\u002Fmcp-adapter (0.5.0) includes\u002FAutoloader.php:30-41 — WP_MCP_AUTOLOAD bypass; Core\u002FMcpAdapter.php:54-66,114-120,140 — init on init@20 (CLI) \u002F rest_api_init@15, default server, 'mcp-adapter' command;\nServers\u002FDefaultServerFactory.php:44-57 — server id\u002Froute, three tools; Abilities\u002FMcpAbilityHelperTrait.php:39,64 — meta['mcp']['public']; Cli\u002FMcpCommand.php:53-90 — --server\u002F--user; :78 prints \"Using server\" when omitted; Transport\u002FHttpTransport.php:111-120 — default capability 'read';\nadvanced-custom-fields-pro src\u002FAI\u002FAbilities\u002F*.php — ability names and categories (see references\u002Facf-abilities.md).\n-->\n",{"name":5,"description":7},"main","4045a2f672c1d4c1b4a5a5712b468c5d73ca6724","skills\u002Fwp-abilities-mcp",0,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise","https:\u002F\u002Fhekivo.github.io\u002Fkivo-wise\u002F","https:\u002F\u002Fgithub.com\u002Fhekivo","https:\u002F\u002Fhekivo.dev","2026-11-08 06:10:39",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add hekivo\u002Fkivo-wise --skill wp-abilities-mcp",{"tool":59,"command":60},"bunx","bunx skills add hekivo\u002Fkivo-wise --skill wp-abilities-mcp",{"tool":62,"command":63},"pnpm","pnpm dlx skills add hekivo\u002Fkivo-wise --skill wp-abilities-mcp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-abilities-mcp\u002FSKILL.md",true,[67,73,77],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Facf-abilities.md","REFERENCE","参考文档",3340,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-abilities-mcp\u002Freferences\u002Facf-abilities.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Facorn-ai.md",6579,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-abilities-mcp\u002Freferences\u002Facorn-ai.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fmcp-adapter.md",5501,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-abilities-mcp\u002Freferences\u002Fmcp-adapter.md",[82,103,118,139,157,181],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6GKWJDFKQM27HTFXX20QVTP","wp-rest-api","Use when building, extending, or debugging WordPress REST API endpoints\u002Froutes: register_rest_route, WP_REST_Controller\u002Fcontroller classes, schema\u002Fargument validation, permission_callback\u002Fauthentication, response shaping, register_rest_field\u002Fregister_meta, or exposing CPTs\u002Ftaxonomies via show_in_rest.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-rest-api\u002FSKILL.md",[],[33,32,89,90,37,91,92,93,34,94,95,96,97,29,98,99,100,25,101,102],"wp rest api","rest api","workflows","debugging","authentication","controller","Bash","shaping","filesystem","schema","show","route","with","wp-cli",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6GKWEA5BMJZ2RPPEEJTCC3N","wp-abilities-api","Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002F*, @wordpress\u002Fabilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-abilities-api\u002FSKILL.md",[],[32,110,111,37,91,112,34,33,95,113,30,97,114,29,25,115,116,101,117,102],"wp abilities api","cli","permissions","php","node","targets","clients","categories",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":39},"01M6GKWA4GG2BZRFXCR9E73VR7","wp-security-escaping","Use when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress + Acorn project - Blade {{ }} vs {!! !!}, esc_html, esc_attr, esc_url, wp_kses_post, \"&#038; in the URL\", double escaping, sanitize_text_field, nonces, current_user_can, map_meta_cap, permission_callback, $wpdb->prepare, whereRaw, file uploads, escaping ACF values, secrets in .env. For route middleware use acorn-routes-api; for ACF validation use acf-native; for Livewire actions use acorn-livewire.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002FSKILL.md",[],[125,126,127,128,129,112,130,34,32,131,132,133,134,100,135,27,136,137,138,22],"security","wp security","wp security escaping","writing","code","actions","secrets","livewire","text","cap","map","middleware","native","URL",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":39},"01M6GKW6VVY73BMZ3JNDMR4CWZ","wp-phpstan","Use when configuring, running or fixing PHPStan in a WordPress project that uses Acorn - phpstan.neon, baseline, szepeviktor\u002Fphpstan-wordpress stubs, larastan, level raising, \"Cannot access property on mixed\", get_field() types, paths for app\u002F. For Pint or Mago formatting use testing-wp; for runtime errors use roots-debugging.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-phpstan\u002FSKILL.md",[],[146,147,37,92,148,31,29,27,149,150,151,152,153,154,155,156],"wp phpstan","testing","baseline","get","neon","runtime","formatting","app","paths","types","errors",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":39},"01M6GKW3JRSRS9N112QFA3SEGT","wp-performance","Use when a WordPress page, query or request is slow or needs profiling - TTFB, slow or N+1 queries, Query Monitor, Server-Timing, wp profile and wp doctor, autoloaded options, Redis object cache hit rate, transients, WP_CACHE_KEY_SALT. Adds the runner and Redis notes on top of the official procedure. For Eloquent query design use acorn-data; for PHP type errors use wp-phpstan.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-performance\u002FSKILL.md",[],[164,165,166,37,167,168,169,170,171,172,173,174,175,29,176,177,178,179,180,156],"performance","wp performance","design","query design","official","notes","monitor","doctor","cache","server","redis","page","queries","runner","query","type","timing",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6GKVZN243XQB5QWZ5ZKMG7P","wp-hooks-lifecycle","Use when adding, moving or debugging WordPress actions and filters in an Acorn project - add_action\u002Fadd_filter priority and accepted_args, where a hook belongs (setup or filters files vs a provider boot()), load order (mu-plugins, plugins_loaded, after_setup_theme, init), when Acorn boots per profile, hooks that never fire on Acorn routes, REST or Livewire requests (template_redirect, wp_head), save_post firing twice in the block editor, the_content priorities. For ACF hooks use acf-native; for provider structure use acorn-stack.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-hooks-lifecycle\u002FSKILL.md",[],[188,189,190,37,36,191,92,130,33,192,132,29,193,194,195,196,197,27,198,199],"lifecycle","hooks","wp hooks lifecycle","boot","stack","never","filters","files","provider","structure","filter","theme"]