Skip to content

Storybook: Add install tool picker grid to the Design System MCP page - #86918

Open
simison wants to merge 46 commits into
trunkfrom
simison/design-system-install-grid
Open

simison wants to merge 46 commits into
trunkfrom
simison/design-system-install-grid

Conversation

@simison

@simison simison commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Follow-up to new MCP page in Storybook (#85464)

So far first pass with AI, and didn't review code yet. Just putting this out there for initial thoughts!

What?

Adds more visual instructions for adding design system MCP into different common AI tools used by developers or designers.

It's easier to just see the name+logo rather than skim longer list, or try to figure out/adapt generic instructions for your tool of choice.

I picked the tools based on Googling about the usage, but I didn't do thorough verification on their popularity yet, and I'll do more searching as I'll test each tool's setup instructions.

Why?

Help design system MCP adoption.

How?

Took heavy inspiration from Product Hunt page which I found to be very clear and easy to use.

Some reasons to include some of the tools

Based on Google AI research; much of copy from AI but I've edited heavily.

Claude/Cursor/Codex

Leading, popular proprietary tools.

Antigravity IDE & CLI (ex Gemini CLI)

  • Comparable ecosystem scale alongside Anthropic's Claude Code and OpenAI's Codex CLI. Note that Antigravity is replacing ex Gemini CLI
  • Playground Agent Skills guide also included Gemini CLI
  • Has generous free tier

VS Code

  • Already included, and it's one of the most widely used editor overall. You can use e.g. Claude within VS Code.
  • Configuration schema differs slightly from Claude Desktop and Cursor.

Claude Desktop

  • Already included, and useful for designers and product managers who don't work via code editor.

OpenCode

  • Massive developer adoption. With over 227K GitHub stars and 22M+ monthly developers, OpenCode sits in the same tier of general AI coding tool adoption as OpenAI Codex and Claude Code.
  • Config schema differs from mcp.json. Unlike Claude Desktop or Cursor, which use "mcpServers" and an "args" array, OpenCode's opencode.json uses a "mcp" key, "type": "local", and a single "command" array. Documenting this prevents setup errors for WordPress developers using OpenCode.

Zed

  • While a bit niche still for WP development, their config is fairly different from others so it would be harder for folks to configure this one on their own.
  • Open Source and 95.2K stars on Github

Raycast

  • Generally less essential than coding editors, but useful for designers, product managers, and non-IDE workflows on macOS.
  • Developers and designers working in Figma, Slack, Linear, or GitHub issues can invoke Raycast with a keyboard shortcut to check component accessibility rules, spacing tokens, or deprecation notices without switching context to an IDE.

JetBrains

  • Widely used by enterprise WordPress agencies for PHP/plugin work.

Considered, but didn't add

LM Studio

  • While there's AI Provider for LM Studio and it's used locally for site building/alt text generation (it's local and cloud free), it's a bit niche for actual development. It can be used via VS Code for coding so the VS Code instructions cover this well enough for now.
  • Works also out of the box via "Other" instructions

Devin Desktop (ex WindSurf)

Amp

  • Too niche adoption in WordPress and instructions don't differ so much that folks couldn't figure it out.

ChatGPT (Web & Desktop)/Lovable/Bolt.new

Cloud based tools and can't use this setup as-is.

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

Before

image

After (Storybook)

image

Plus:

Claude Code OpenAI Codex Cursor
Claude Code OpenAI Codex Cursor
VS Code JetBrains Claude Desktop
VS Code JetBrains Claude Desktop
Antigravity OpenCode Zed
Antigravity OpenCode Zed
Raycast Other
Raycast Other

After (README.md)

Screenshot 2026-11-27 at 18-09-13 gutenberg_packages_design-system-mcp_README md at 8f6876510c5e8f34cbf95139acd5032580d1192e · WordPress_gutenberg

Use of AI Tools

Yes

@simison
simison requested review from a team November 16, 2026 18:47
@simison simison added the Storybook Storybook and its stories for components label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: simison <simison@git.wordpress.org>
Co-authored-by: aduth <aduth@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

📦 Bundle size

Size Change: 0 B

Total Size: 8.73 MB

7317454 Run

@aduth

aduth commented Nov 16, 2026

Copy link
Copy Markdown
Member

Ooh, this is nice 😄

Some thoughts off the top of my head while this is draft:

  • How do we choose which tools to include here?
  • What of this should be mirror'd into the package README, which also has setup instructions and is read in certain contexts that won't be able to render anything fancy like this (e.g. npmjs.com)

@simison
simison force-pushed the simison/design-system-install-grid branch 2 times, most recently from b779efd to cd48ad3 Compare November 17, 2026 13:38
@github-actions github-actions Bot added the [Package] Design System MCP /packages/design-system-mcp label Nov 17, 2026
@simison

simison commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@aduth I did a few updates:

  • Cleaned up code
  • Curated the tools list further (added JetBrains, removed WindSurf and LM Studio). I included reasoning for each in the PR description.
  • Updated also README.md but it's arguably less readable than storybook, just by its nature of what markdown is... linked to Storybook page tho!
  • I tested only Raycast so far from the new ones, I'll do more testing for the rest.

@simison
simison marked this pull request as ready for review November 17, 2026 14:18
@github-actions
github-actions Bot requested review from aduth and ciampo November 17, 2026 14:19
Comment thread storybook/stories/design-system/mcp.mdx Resolved
@simison
simison force-pushed the simison/design-system-install-grid branch from 2d01cec to 305f592 Compare November 17, 2026 15:31
@simison simison added the [Type] Enhancement A suggestion for improvement. label Nov 17, 2026
@simison
simison force-pushed the simison/design-system-install-grid branch 2 times, most recently from 87ec099 to 38ea505 Compare November 18, 2026 10:50

@aduth aduth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of little comments, but nothing too blocking to prevent a preemptive approval 👍

This is a really nice interactive experience, and I imagine it'll make it a lot easier to be able to point people to and have them be successful setting up MCP for their AI of choice.

Comment thread tools/eslint/config.mjs Resolved
Comment thread storybook/stories/design-system/mcp.mdx Resolved
Comment thread packages/design-system-mcp/README.md Resolved
Comment thread packages/design-system-mcp/README.md Resolved
@simison
simison force-pushed the simison/design-system-install-grid branch 2 times, most recently from 8c23f52 to 3d683cc Compare November 25, 2026 11:01
@simison
simison force-pushed the simison/design-system-install-grid branch 4 times, most recently from 34acc6b to cd8ac01 Compare November 27, 2026 17:18

@ciampo ciampo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, the picker makes it much easier to find the steps for your own tool. Nothing blocking from me. The VS Code and Zed instructions are worth correcting, and there are a few small accessibility fixes in the component. Comments marked "Optional" are polish.

Comment on lines +96 to +116
In `.vscode/mcp.json`:

```json
{
"servers": {
"wordpress-design-system": {
"command": "npx",
"args": [
"-y",
"--ignore-scripts",
"--min-release-age=2",
"@wordpress/design-system-mcp@latest"
]
}
}
}
```

<InstallButton href={ VSCODE_URL }>Install in VS Code</InstallButton>

1. Click “Install in VS Code”, or add the configuration above to your [`mcp.json` file](https://code.visualstudio.com/docs/agent-customization/mcp-servers#_configure-the-mcpjson-file).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VS Code now marks .vscode/mcp.json (the servers format) as part of the deprecated Local harness, and new Copilot setups use mcpServers in a workspace-root .mcp.json or Copilot Global (reference). Could we point VS Code at the shared configuration instead? That also removes one special case from the README. The #_configure-the-mcpjson-file anchor is gone too; #_choose-a-configuration-destination looks like the current section.

More context

From the configuration reference: "For new Copilot configurations, use these native destinations, not .vscode/mcp.json or profile mcp.json. Those files use the deprecated Local harness's editor-managed configuration." VS Code still forwards eligible .vscode/mcp.json entries to Copilot sessions, so the current snippet works for now. The Local harness is due to be removed in February 2027.

I couldn't confirm which configuration the vscode:mcp/install URL writes to. The docs say code --add-mcp targets the editor-managed one, so the install button may be worth checking too.

```

1. Open the Zed settings file and add the configuration above, as described in the [Zed MCP documentation](https://zed.dev/docs/ai/mcp#as-custom-servers).
2. Open the Agent Panel settings and confirm `wordpress-design-system` shows as active.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zed's docs check the status in Settings → AI → MCP Servers, where a green dot next to the server means "Server is active" (docs). Could we use that path here and in the README?

Comment on lines +69 to +72
.tile[aria-pressed="true"] {
border-color: #3858e9;
background: #fff;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In forced-colors mode the border color and background are replaced, so every tile gets the same 1px border and the selected one can't be told apart once focus moves. Could we add a @media (forced-colors: active) rule for [aria-pressed="true"], e.g. a thicker Highlight border?

Comment thread storybook/stories/design-system/mcp.mdx Resolved

@ciampo ciampo left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the threads that are still open, I notived a couple more small things, none of them blocking:

  • storybook/stories/introduction.mdx (line 72) still calls this page "the package README" and lists only five tools. Might be worth a quick tweak, e.g. "The setup guide covers installation for common AI tools".
  • The PR description still says the code wasn't reviewed yet, and the testing steps are empty. A quick refresh would help other reviewers.


Every setup below runs the server with `npx`, so [Node.js](https://nodejs.org/) 22.13.0 or newer must be installed.

For an interactive setup guide, pick your AI tool in [Storybook](https://wordpress.github.io/gutenberg/?path=/docs/design-system-using-with-ai-mcp--docs#setup) to see only the instructions for it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up: design-system-using-with-ai-mcp--docs only exists once #86737 renames the page. This PR still uses Design System/Using with AI, so if it lands first the link goes to a missing page. How about keeping design-system-using-with-ai--docs for now? #86737 already redirects the old ID.

Comment thread storybook/stories/design-system/mcp.mdx Resolved
simison and others added 26 commits November 30, 2026 23:24
Co-authored-by: Andrew Duthie <1779930+aduth@users.noreply.github.com>
Split the grid into one component per file (InstallGrid, Tool, ToolIcon,
InstallButton) and write each tool's instructions as Markdown inside
`<Tool>` blocks in the docs page, instead of a TOOLS constant.

A tool without a logo now falls back to the generic `{}` badge, which
removes the `mark` and `color` fields.
…he README

The page no longer splits packages/design-system-mcp/README.md on its
headings, which broke silently when the README changed. The Storybook
page now carries its own copy, without the experimental callout,
importing, and contributing sections.
… the tool tiles

The tiles had radio roles without the keyboard behavior those roles promise, such as arrow-key navigation. Plain buttons with aria-pressed describe what they actually do.
Replaces the client table with a heading per client, in the same order as the Storybook setup guide. Clients that use the standard mcpServers format link to a shared configuration section, and VS Code, Zed, and OpenCode show their own configuration.
Each step was a flex container, so text, links, and inline code in a step became separate columns. The number badge is now positioned instead, and the step text wraps normally.
…n narrow

The tile grid now shows as many columns as fit with tiles at least 130px wide, up to six. When only two columns would fit, a SelectControl from @wordpress/ui with each tool's logo replaces the tiles.
Only the MCP docs page imports SVG files, and MDX files are not type checked.
…tupTool

The new names show the two components are a pair and belong to the MCP setup guide. The folder moves from install-grid to mcp-setup to match. Also updates comments that still described the old tile layout and ESLint override.
@simison
simison force-pushed the simison/design-system-install-grid branch from a8302e8 to 7317454 Compare November 30, 2026 21:26
@aduth

aduth commented Nov 30, 2026

Copy link
Copy Markdown
Member

One thing we'll want to keep in mind (either here or once the rename goes in effect starting December 7) is that Cursor is being renamed as "Grok Build".

@simison

simison commented Dec 1, 2026 •

Copy link
Copy Markdown
Member Author

I'll probably sort Cursor/Grok afterwards; "Cursor" is still established enough that folks will know what to do.

@ciampo ciampo left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is shaping up well, and the tile picker makes setup much easier to follow. Before merging, I'd fix the README link and the forced-colors selection state. Two things outside the diff:

  • storybook/stories/introduction.mdx still says "The package README covers installation for Claude Code, Codex, Cursor, VS Code and Claude Desktop." Something like "The setup guide covers installation for common AI tools" would match this page now.
  • The PR description still needs testing steps, including the keyboard steps.

The rest is inline. Most of it is small doc fixes.

export const RAYCAST_URL = `raycast://mcp/install?${ encodeURIComponent( JSON.stringify( { name: SERVER_NAME, type: 'stdio', ...SERVER_ENTRY } ) ) }`;
export const CURSOR_URL = `https://cursor.com/en-US/install-mcp?name=${ SERVER_NAME }&config=${ btoa( JSON.stringify( { command: [ 'npx', ...PACKAGE_ARGS ].join( ' ' ) } ) ) }`;

# WordPress Design System MCP Server

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this page rendered the README, readers saw the "still experimental" callout. The new intro drops it. Could we add it back here so people who install from Storybook know it can change in breaking ways?

claude mcp add wordpress-design-system -- npx -y --ignore-scripts --min-release-age=2 @wordpress/design-system-mcp@latest
```

1. Open a terminal and run the command above. See the [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp) for more options.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude mcp add defaults to local scope, so the server only shows up in the folder where the command ran. If someone runs it in ~ and then opens Claude Code in their plugin repo, /mcp won't list it. Could we say to run it in the project folder, or use --scope user? Same in the README.

<InstallButton href={ CURSOR_URL }>Add to Cursor</InstallButton>

1. Click “Add to Cursor”, or add the configuration above to your Cursor [MCP settings](https://cursor.com/docs/mcp).
2. Open Cursor Settings, go to MCP, and confirm `wordpress-design-system` is enabled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursor.com/docs/mcp now redirects to docs.grok.com, and that page says to open Customize in the sidebar and use the server's toggle. It doesn't mention Cursor Settings → MCP anymore. I haven't checked the app itself, but it may be worth matching the current docs. Same in the README.

}
```

1. In PhpStorm, WebStorm, or another JetBrains IDE, open Settings, Tools, AI Assistant, [Model Context Protocol (MCP)](https://www.jetbrains.com/help/ai-assistant/configure-an-mcp-server.html), and click Add.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JetBrains guide asks you to pick a connection type in the New MCP Server dialog before pasting the JSON. Could we add "choose STDIO" to this step? Same in the README.


<InstallButton href={ RAYCAST_URL }>Install in Raycast</InstallButton>

1. Click “Install in Raycast”, or run the [“Install MCP Server” command](https://manual.raycast.com/ai/model-context-protocol) in Raycast and choose Standard Input/Output as the transport.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the Raycast manual form also has a Name field, which these steps don't mention. Raycast on iOS doesn't offer Standard Input/Output either, so it might help to say this is for Raycast on the Mac.

export const VSCODE_URL = `vscode:mcp/install?${ encodeURIComponent( JSON.stringify( { name: SERVER_NAME, ...SERVER_ENTRY } ) ) }`;
// Raycast does not document the `raycast://mcp/install` deeplink, but it works as of November 2026.
export const RAYCAST_URL = `raycast://mcp/install?${ encodeURIComponent( JSON.stringify( { name: SERVER_NAME, type: 'stdio', ...SERVER_ENTRY } ) ) }`;
export const CURSOR_URL = `https://cursor.com/en-US/install-mcp?name=${ SERVER_NAME }&config=${ btoa( JSON.stringify( { command: [ 'npx', ...PACKAGE_ARGS ].join( ' ' ) } ) ) }`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could we wrap the btoa( … ) output in encodeURIComponent? The current payload has no +, but if a future one does, it would decode as a space.

export const SERVER_NAME = 'wordpress-design-system';
export const PACKAGE_ARGS = [ '-y', '--ignore-scripts', '--min-release-age=2', '@wordpress/design-system-mcp@latest' ];
export const SERVER_ENTRY = { command: 'npx', args: PACKAGE_ARGS };
export const VSCODE_URL = `vscode:mcp/install?${ encodeURIComponent( JSON.stringify( { name: SERVER_NAME, ...SERVER_ENTRY } ) ) }`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the README wraps this in vscode.dev/redirect?url=…, which shows a fallback page when VS Code isn't installed. Should we use the same form here?

) ) }
</SelectControl>
</div>
<div className={ styles.tiles } role="group" aria-label="AI tool">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a tile has focus when the container crosses the 414px breakpoint, it gets display: none and focus drops to body. Zooming in with the keyboard can trigger this. Could we move focus to the visible control when the focused one gets hidden?


| File | Source |
| --- | --- |
| `claude-code.svg` | The spark from the Claude Code logo in the [Anthropic press kit](https://www.anthropic.com/press-kit), cropped from the wordmark so it fits a square tile |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Claude Code spark is cropped from the wordmark, and the OpenAI favicon has edited theme variables. Anthropic's and OpenAI's brand guidelines ask for logos as supplied. The Anthropic press kit has a standalone Claude spark SVG we could use. Could we switch to unmodified assets?

}

.tile:focus-visible {
outline: 2px solid var(--wpds-color-stroke-focus);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: could this use var(--wpds-border-width-focus)? The spacing and radius values could use the --wpds-dimension-* tokens too, like the sibling intro-cards styles.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Design System MCP /packages/design-system-mcp Storybook Storybook and its stories for components [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants