mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: add storybook to .mcp.json (#25352)
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
"--stdio"
|
"--stdio"
|
||||||
],
|
],
|
||||||
"env": {}
|
"env": {}
|
||||||
|
},
|
||||||
|
"storybook": {
|
||||||
|
"type": "http",
|
||||||
|
"url": "http://localhost:6006/mcp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user