chore: add storybook to .mcp.json (#25352)

This commit is contained in:
Kayla はな
2026-05-14 12:40:23 -06:00
committed by GitHub
parent df5e16ed6d
commit a43690d29b
2 changed files with 52 additions and 35 deletions
+39 -35
View File
@@ -1,36 +1,40 @@
{
"mcpServers": {
"go-language-server": {
"type": "stdio",
"command": "go",
"args": [
"run",
"github.com/isaacphi/mcp-language-server@latest",
"-workspace",
"./",
"-lsp",
"go",
"--",
"run",
"golang.org/x/tools/gopls@latest"
],
"env": {}
},
"typescript-language-server": {
"type": "stdio",
"command": "go",
"args": [
"run",
"github.com/isaacphi/mcp-language-server@latest",
"-workspace",
"./site/",
"-lsp",
"pnpx",
"--",
"typescript-language-server",
"--stdio"
],
"env": {}
}
}
}
"mcpServers": {
"go-language-server": {
"type": "stdio",
"command": "go",
"args": [
"run",
"github.com/isaacphi/mcp-language-server@latest",
"-workspace",
"./",
"-lsp",
"go",
"--",
"run",
"golang.org/x/tools/gopls@latest"
],
"env": {}
},
"typescript-language-server": {
"type": "stdio",
"command": "go",
"args": [
"run",
"github.com/isaacphi/mcp-language-server@latest",
"-workspace",
"./site/",
"-lsp",
"pnpx",
"--",
"typescript-language-server",
"--stdio"
],
"env": {}
},
"storybook": {
"type": "http",
"url": "http://localhost:6006/mcp"
}
}
}
+13
View File
@@ -26,6 +26,19 @@ When investigating or editing TypeScript/React code, always use the TypeScript l
- `pnpm playwright:test` - Run playwright e2e tests. When running e2e tests, remind the user that a license is required to run all the tests
- `pnpm format` - Format frontend code. Always run before creating a PR
## Storybook MCP
The `.mcp.json` at the repo root includes a Storybook MCP server
(`http://localhost:6006/mcp`). It provides tools for searching components,
reading stories, and capturing screenshots directly from Storybook.
Because it is an HTTP-type MCP server, Storybook must already be running
before the MCP client can connect. Start it first:
```sh
pnpm storybook --no-open
```
## Failure artifacts
Playwright writes per-test failure artifacts to `site/test-results/` when