Skip to content

Design System: Provide MCP server tooling for design system resources #77206

Closed

Description

@aduth

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:

Activity

  1. added
    Design System
    on Apr 9, 2026
  2. aduth commented on Apr 9, 2026

    @aduth
    MemberAuthor

    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:

    • It requires that we keep all relevant documentation that we want to be discoverable in Storybook.
      • That's technically possible, but constrains us. Today, we have documentation like tokens reference that live outside Storybook (although maybe there's a strong case to be made that it should be available in Storybook as well/instead). More problematic is if we ever wanted to publish a standalone reference website for the design system independent of Storybook, the reference site content would be out of reach. The idea with maintaining our own MCP server tooling would be that it can aggregate from multiple sources.
    • As mentioned in Design System: Improve AI support for agents using the design system #77205, we have a lot of unrelated and legacy components that are documented in Storybook, and part of the goal of this effort would be to distill current best practices in working with the design system.
    • The Storybook MCP requires a hosted setup, including all the trade-offs described in the original post about a hosted offering. It's also a Node.js-based server, while WordPress.org hosting is optimized for WordPress/PHP.
  3. aduth commented on Apr 14, 2026

    @aduth
    MemberAuthor

    As mentioned in #77264 (comment), while @wordpress/ui is 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 the componentStatus feature where we document component stability. This potentially means including @wordpress/components components if there's not a stable equivalent in @wordpress/ui.

  4. self-assigned this
    on Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Design System

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions