@storybook/addon-mcp 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,4 +8,24 @@ Storybook addon for MCP-powered UI development workflows.
8
8
 
9
9
  See [documentation](https://storybook.js.org/docs/next/ai/mcp/overview/?ref=readme) for installation instructions, usage examples, APIs, and more.
10
10
 
11
+ ## Configuration
12
+
13
+ By default, the addon exposes its MCP server at `/mcp`. You can configure a
14
+ different literal endpoint path in `.storybook/main.ts`:
15
+
16
+ ```ts
17
+ export default {
18
+ addons: [
19
+ {
20
+ name: '@storybook/addon-mcp',
21
+ options: {
22
+ endpoint: '/custom-mcp',
23
+ },
24
+ },
25
+ ],
26
+ };
27
+ ```
28
+
29
+ The endpoint must be a URL pathname such as `/custom-mcp` or `/tools/mcp`.
30
+
11
31
  Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).