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": { "mcpServers": {
"go-language-server": { "go-language-server": {
"type": "stdio", "type": "stdio",
"command": "go", "command": "go",
"args": [ "args": [
"run", "run",
"github.com/isaacphi/mcp-language-server@latest", "github.com/isaacphi/mcp-language-server@latest",
"-workspace", "-workspace",
"./", "./",
"-lsp", "-lsp",
"go", "go",
"--", "--",
"run", "run",
"golang.org/x/tools/gopls@latest" "golang.org/x/tools/gopls@latest"
], ],
"env": {} "env": {}
}, },
"typescript-language-server": { "typescript-language-server": {
"type": "stdio", "type": "stdio",
"command": "go", "command": "go",
"args": [ "args": [
"run", "run",
"github.com/isaacphi/mcp-language-server@latest", "github.com/isaacphi/mcp-language-server@latest",
"-workspace", "-workspace",
"./site/", "./site/",
"-lsp", "-lsp",
"pnpx", "pnpx",
"--", "--",
"typescript-language-server", "typescript-language-server",
"--stdio" "--stdio"
], ],
"env": {} "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 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 - `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 ## Failure artifacts
Playwright writes per-test failure artifacts to `site/test-results/` when Playwright writes per-test failure artifacts to `site/test-results/` when