You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align on a visibility standard for new abilities #19
As noted in #12 and WordPress/mcp-adapter#430, the original abilities ported here were not consistent in their visibility declarations, with most declaring the high level meta.public = true while terms and media abilities had no such declarations (defaulting to private). Those abilities were exposed to MCP via the lower-level meta.mcp.public = true for the purposes of testing the MCP Adapter connection, but we need to align on an overall approach for the default values on these controls as abilities are developed.
My proposal:
default to full meta.public = true for abilities in this package since they have to be explicitly registered by consuming developers
default to private for abilities landing in Core so they aren't silently exposed
I feel confident that 1 will provide the best experience for developers consuming this abilities package to not have to also expose abilities one-by-one.
I'm much less sure of the Core approach in 2. I've defaulted to "opt-in" there since we're dealing with a large and varied install base that hasn't explicitly opted in to using these abilities, but I'm also not sure if we need to be concerned with ability exposure at that level since these functions are "just PHP"?
@jorgefilipecosta I could use your feedback on how we approach this and if any divide between my points 1 & 2 for the package vs. core is necessary?
Given that the abilities for the 7.3 cycle will be developed in core trunk first, we'll probably just always match whatever is done in core for those abilities in this package, but for later experimentation we might still want to define a package vs. core standard.
Hey @nikmclaughlin - I want to make sure I'm fully following: can you clarify what you mean by "default" here, and is the concern visibility or availability?
My assumption is that meta.public should always match what's proposed, and that it's intrinsic to the specific proposal: if the Ability is meant to be generally discoverable (user-specific capabilities notwithstanding), it should be "public", if for example we only want it directly callable programmatically, or want it exposed to just MCP and not REST et al, then it shouldn't be public, and only exposed to the specific last-mile adapter via their specific meta toggle.
If the underlying concern is that until they're in Core, folks might not want to use all of them, I think that can be safely delegated to whatever is consuming the package: something like MCP Adapter could all-or-nothing via a constant, while if the AI plugin wants to keep per-ability toggles or a different consumer wants to expose only the Abilities it actually relies on, it can do that too.
That said, if this is the concern, I'd recommend something internal to this repo to prevent registration (or a new core wp_deregister_ability( ... ) function) instead of using visibility as a proxy for availability, since public: false abilities can still be executed programmatically (and exposed to a specific last-mile adapter).
Activity
nikmclaughlin commentedon Nov 18, 2026
@jorgefilipecosta I could use your feedback on how we approach this and if any divide between my points 1 & 2 for the package vs. core is necessary?
Given that the abilities for the 7.3 cycle will be developed in core
trunkfirst, we'll probably just always match whatever is done in core for those abilities in this package, but for later experimentation we might still want to define a package vs. core standard.justlevine commentedon Nov 19, 2026
Hey @nikmclaughlin - I want to make sure I'm fully following: can you clarify what you mean by "default" here, and is the concern
visibilityoravailability?My assumption is that
meta.publicshould always match what's proposed, and that it's intrinsic to the specific proposal: if the Ability is meant to be generally discoverable (user-specific capabilities notwithstanding), it should be "public", if for example we only want it directly callable programmatically, or want it exposed to just MCP and not REST et al, then it shouldn't be public, and only exposed to the specific last-mile adapter via their specific meta toggle.If the underlying concern is that until they're in Core, folks might not want to use all of them, I think that can be safely delegated to whatever is consuming the package: something like MCP Adapter could all-or-nothing via a constant, while if the AI plugin wants to keep per-ability toggles or a different consumer wants to expose only the Abilities it actually relies on, it can do that too.
That said, if this is the concern, I'd recommend something internal to this repo to prevent registration (or a new core
wp_deregister_ability( ... )function) instead of using visibility as a proxy for availability, sincepublic: falseabilities can still be executed programmatically (and exposed to a specific last-mile adapter).