@storybook/addon-mcp 11.0.0-beta.3 → 11.0.0-beta.4
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
|
@@ -6,7 +6,7 @@ Storybook addon for MCP-powered UI development workflows.
|
|
|
6
6
|
<img src="./addon-mcp-claude-code-showcase.gif" alt="Storybook MCP Addon Demo" />
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
See [documentation](https://storybook.js.org/docs/next/ai/mcp
|
|
9
|
+
See [documentation](https://storybook.js.org/docs/next/ai/reference/mcp-server/?ref=readme) for installation instructions, usage examples, APIs, and more.
|
|
10
10
|
|
|
11
11
|
## Configuration
|
|
12
12
|
|
package/dist/preset.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_bda14rmqte7 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_bda14rmqte7 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_bda14rmqte7 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_bda14rmqte7.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_bda14rmqte7.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_bda14rmqte7.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
1
|
// src/mcp-handler.ts
|
|
14
2
|
import { McpServer } from "tmcp";
|
|
15
3
|
import { ValibotJsonSchemaAdapter } from "@tmcp/adapter-valibot";
|
|
@@ -18,7 +6,7 @@ import { HttpTransport } from "@tmcp/transport-http";
|
|
|
18
6
|
// package.json
|
|
19
7
|
var package_default = {
|
|
20
8
|
name: "@storybook/addon-mcp",
|
|
21
|
-
version: "11.0.0-beta.
|
|
9
|
+
version: "11.0.0-beta.4",
|
|
22
10
|
description: "Help agents automatically write and test stories for your UI components",
|
|
23
11
|
keywords: [
|
|
24
12
|
"ai",
|
|
@@ -55,8 +43,8 @@ var package_default = {
|
|
|
55
43
|
],
|
|
56
44
|
dependencies: {
|
|
57
45
|
"@tmcp/adapter-valibot": "^0.1.5",
|
|
58
|
-
"@tmcp/transport-http": "^0.
|
|
59
|
-
tmcp: "^1.
|
|
46
|
+
"@tmcp/transport-http": "^0.9.1",
|
|
47
|
+
tmcp: "^1.20.1",
|
|
60
48
|
valibot: "^1.4.0"
|
|
61
49
|
},
|
|
62
50
|
devDependencies: {
|
|
@@ -553,7 +541,7 @@ var transport, initialize, disableTelemetry, a11yEnabled, initializeMCPServer =
|
|
|
553
541
|
serverOptions
|
|
554
542
|
).withContext(), disableTelemetry || server.on("initialize", async () => {
|
|
555
543
|
await collectTelemetry({ event: "session:initialized", server });
|
|
556
|
-
}), await registerAddonMcpTools(server, { availability, multiSource }), transport = new HttpTransport(server, { path: null }), server;
|
|
544
|
+
}), await registerAddonMcpTools(server, { availability, multiSource }), transport = new HttpTransport(server, { path: null, allowedOrigins: !0 }), server;
|
|
557
545
|
}, mcpServerHandler = async ({
|
|
558
546
|
req,
|
|
559
547
|
res,
|
|
@@ -1318,13 +1306,13 @@ var experimental_devServer = async (app, options) => {
|
|
|
1318
1306
|
let docsNotice = "";
|
|
1319
1307
|
docsHasManifests ? docsFeatureEnabled || (docsNotice = `<div class="toolset-notice">
|
|
1320
1308
|
This toolset requires enabling the component manifest feature.
|
|
1321
|
-
<a target="_blank" href="https://
|
|
1309
|
+
<a target="_blank" href="https://storybook.js.org/docs/ai/reference/manifests#framework-support">Learn how to enable it</a>
|
|
1322
1310
|
</div>`) : docsNotice = docsFeatureEnabled ? `<div class="toolset-notice">
|
|
1323
|
-
This toolset requires a components manifest, which your framework does not generate. On
|
|
1324
|
-
<a target="_blank" href="https://storybook.js.org/docs/ai/
|
|
1311
|
+
This toolset requires a components manifest, which your framework does not generate. On frameworks other than React, also enable <code>docgenServer</code>.
|
|
1312
|
+
<a target="_blank" href="https://storybook.js.org/docs/ai/reference/manifests#framework-support">See which frameworks are supported</a>
|
|
1325
1313
|
</div>` : `<div class="toolset-notice">
|
|
1326
|
-
This toolset requires a components manifest, which is generated by the React frameworks, <code>@storybook/angular-vite</code
|
|
1327
|
-
<a target="_blank" href="https://storybook.js.org/docs/ai/
|
|
1314
|
+
This toolset requires a components manifest, which is generated by the React frameworks, <code>@storybook/angular-vite</code>, <code>@storybook/vue3-vite</code>, <code>@storybook/svelte-vite</code>, <code>@storybook/sveltekit</code>, and <code>@storybook/web-components-vite</code>. Enable the <code>componentsManifest</code> feature. On frameworks other than React, also enable <code>docgenServer</code>.
|
|
1315
|
+
<a target="_blank" href="https://storybook.js.org/docs/ai/reference/manifests#framework-support">Learn how to enable it</a>
|
|
1328
1316
|
</div>`;
|
|
1329
1317
|
let testNoticeLines = [
|
|
1330
1318
|
!testSupported && 'This toolset requires Storybook 10.3.0+ with <code>@storybook/addon-vitest</code>. <a target="_blank" href="https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#install-and-set-up">Learn how to set it up</a>',
|
|
@@ -4,7 +4,7 @@ var MCP_APP_PARAM = "mcp-app", MCP_APP_SIZE_CHANGED_EVENT = "storybook-mcp:size-
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "@storybook/addon-mcp",
|
|
7
|
-
version: "11.0.0-beta.
|
|
7
|
+
version: "11.0.0-beta.4",
|
|
8
8
|
description: "Help agents automatically write and test stories for your UI components",
|
|
9
9
|
keywords: [
|
|
10
10
|
"ai",
|
|
@@ -41,8 +41,8 @@ var package_default = {
|
|
|
41
41
|
],
|
|
42
42
|
dependencies: {
|
|
43
43
|
"@tmcp/adapter-valibot": "^0.1.5",
|
|
44
|
-
"@tmcp/transport-http": "^0.
|
|
45
|
-
tmcp: "^1.
|
|
44
|
+
"@tmcp/transport-http": "^0.9.1",
|
|
45
|
+
tmcp: "^1.20.1",
|
|
46
46
|
valibot: "^1.4.0"
|
|
47
47
|
},
|
|
48
48
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-mcp",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.4",
|
|
4
4
|
"description": "Help agents automatically write and test stories for your UI components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@tmcp/adapter-valibot": "^0.1.5",
|
|
40
|
-
"@tmcp/transport-http": "^0.
|
|
41
|
-
"tmcp": "^1.
|
|
40
|
+
"@tmcp/transport-http": "^0.9.1",
|
|
41
|
+
"tmcp": "^1.20.1",
|
|
42
42
|
"valibot": "^1.4.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@storybook/addon-a11y": "11.0.0-beta.
|
|
46
|
-
"@storybook/addon-vitest": "11.0.0-beta.
|
|
47
|
-
"storybook": "11.0.0-beta.
|
|
45
|
+
"@storybook/addon-a11y": "11.0.0-beta.4",
|
|
46
|
+
"@storybook/addon-vitest": "11.0.0-beta.4",
|
|
47
|
+
"storybook": "11.0.0-beta.4",
|
|
48
48
|
"typescript": "^6.0.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@storybook/addon-vitest": "^11.0.0-beta.
|
|
52
|
-
"storybook": "^11.0.0-beta.
|
|
51
|
+
"@storybook/addon-vitest": "^11.0.0-beta.4",
|
|
52
|
+
"storybook": "^11.0.0-beta.4"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@storybook/addon-vitest": {
|