Skip to main content

Filter: gk/foundation/abilities/products

Filters the GravityKit product declarations.

Each product declares its product-level ability data in one payload: the MCP tool-name prefix and the ability categories (product category and scope subcategories) to register. Foundation contributes no declarations of its own.

Parameters

NameTypeDescription
$productsarrayProduct declarations keyed by product slug (e.g. gravityview). Each declaration is an array:
↳ $mcp_prefixstringShort MCP tool-name prefix (e.g. gv). Required — a missing prefix triggers _doing_it_wrong() and the full product slug is used as a fallback.
↳ $categoriesarrayOptional. Ability categories to register, keyed by slug; each entry has label and description.

Since

  • 1.23.0

Source

Defined in Abilities/Manager.php at line 117