Repository navigation
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: 0 B Total Size: 8.73 MB
|
|
Ooh, this is nice 😄 Some thoughts off the top of my head while this is draft:
|
b779efd to
cd48ad3
Compare
|
@aduth I did a few updates:
|
2d01cec to
305f592
Compare
87ec099 to
38ea505
Compare
aduth
left a comment
There was a problem hiding this comment.
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.
8c23f52 to
3d683cc
Compare
34acc6b to
cd8ac01
Compare
ciampo
left a comment
There was a problem hiding this comment.
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.
| 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). |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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?
| .tile[aria-pressed="true"] { | ||
| border-color: #3858e9; | ||
| background: #fff; | ||
| } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Co-authored-by: Andrew Duthie <1779930+aduth@users.noreply.github.com>
…line the restart step
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.
a8302e8 to
7317454
Compare
|
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". |
|
I'll probably sort Cursor/Grok afterwards; "Cursor" is still established enough that folks will know what to do. |
There was a problem hiding this comment.
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.mdxstill 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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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( ' ' ) } ) ) }`; |
There was a problem hiding this comment.
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 } ) ) }`; |
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
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)
VS Code
Claude Desktop
OpenCode
mcp.json. Unlike Claude Desktop or Cursor, which use "mcpServers" and an "args" array, OpenCode'sopencode.jsonuses a "mcp" key,"type": "local", and a single "command" array. Documenting this prevents setup errors for WordPress developers using OpenCode.Zed
Raycast
JetBrains
Considered, but didn't add
LM Studio
Devin Desktop (ex WindSurf)
Amp
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
After (Storybook)
Plus:
After (
README.md)Use of AI Tools
Yes