Skip to content

REST endpoints should themselves be Abilities #75

@justlevine

Description

@justlevine

Seems counterintuitive that we're creating traditional REST endpoints, when REST endpoints themselves are just shaped abilities.

Given that discovery is itself a conceptual Ability - and a useful one e.g. in the context of MCP Adapter and limiting tool numbers - I propose we dogfood our own APIs, and reimplement these endpoints as Abilities themselves that are just "adapted to" (i.e. wrapped in) \WP_REST_Controller.

Happy to create a POC if nobody beats me to it; IRL this should probably wait until after WordPress/ai#40 or be part of that spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] QuestionQuestions about the design or development

    Projects

    Status

    In discussion / Needs decision

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions