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:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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