Repository navigation
Description
Sub-issue of #77205
What problem does this address?
Today, working with AI agents to implement or ask questions in accordance with design system offerings (e.g. components, design tokens), agents often struggle to find the correct information.
Anecdotally, I've watched agents dive into built output of @wordpress/ui root barrel file to analyze exported members to understand what components are available from the package, which is both inefficient and provides an incomplete picture of the design system.
What is your proposed solution?
Provide an MCP server (local or remote) with tools that allow an AI agent to efficiently get answers to questions about using the design system offerings: especially available components (including detailed examples and prop references) and tokens.
This should be quick and easy for someone to set up. Ideally a one-liner, including snippets for popular setups (e.g. Claude Code, Cursor, etc., see prior art below). No git clones, servers running in separate process, etc.
MCP is a standardized protocol to bridge documentation sources of truth to AI agents.
This is separate-but-complementary from Agent Skills (#77209), which provide written instructions on how to accomplish a specific task or workflow. The scope of the MCP should cover what exists, not necessarily how to use it. Although there may be some overlap in the case of pattern guidance (example).
Implementation notes:
The two most obvious paths to implement are either a hosted MCP offering (likely built as a WordPress plugin interfacing with the Abilities API and mcp-adapter), or a local server (likely built and distributed as an npm package). This was raised in #77159, with a general leaning toward an npm package:
I had explored an alternative approach leveraging WordPress Abilities API + mcp-adapter which, while an interesting example of "dog-fooding", may not be a great fit:
- It requires that we figure out a hosting arrangement for where this lives, presumably somewhere on wordpress.org
- The bigger issue is that MCP servers using HTTP as a transport layer are stateful, and require session management. The existing WordPress tooling around MCP (i.e. mcp-adapter) is optimized for authenticated users, and isn't a good fit for a public MCP server where we'd want to support anonymous access.
- It's also overkill, since the proposed approach here doesn't do anything particularly special beyond fetching and transforming static assets
Prior art:
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fields💫 Done
Activity
aduth commentedon Apr 9, 2026
Related Slack discussion from a few weeks back: https://wordpress.slack.com/archives/C02QB2JS7/p1772225681619569
cc @MichaelArestad
On the topic of whether we could just use Storybook's MCP server, my current sense is that we will want to use some of the same underlying infrastructure, especially the Manifests feature, already enabled in #74626 for this exact purpose. But I don't know that the out-of-the-box Storybook MCP server is a good fit for a few reasons:
aduth commentedon Apr 14, 2026
As mentioned in #77264 (comment), while
@wordpress/uiis being built out as the package for design system component implementations, we're not currently recommending it for all components (#76135), and it would be good if we could incorporate thecomponentStatusfeature where we document component stability. This potentially means including@wordpress/componentscomponents if there's not a stable equivalent in@wordpress/ui.