@storybook/addon-mcp 11.0.0-beta.2 → 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_az3l6xmq8mt from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_az3l6xmq8mt from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_az3l6xmq8mt from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_az3l6xmq8mt.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_az3l6xmq8mt.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_az3l6xmq8mt.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,
|
|
@@ -951,7 +939,7 @@ var OAuthResourceMetadata = v2.object({
|
|
|
951
939
|
constructor(url2) {
|
|
952
940
|
super(`Authentication failed for ${url2}. Your token may be invalid or expired.`), this.name = "AuthenticationError";
|
|
953
941
|
}
|
|
954
|
-
}, CompositionAuth = class {
|
|
942
|
+
}, REF_PROBE_TIMEOUT_MS = 3e3, CompositionAuth = class {
|
|
955
943
|
#authRequirement = null;
|
|
956
944
|
#authRequiredUrls = [];
|
|
957
945
|
#refsWithManifests = [];
|
|
@@ -960,22 +948,30 @@ var OAuthResourceMetadata = v2.object({
|
|
|
960
948
|
#authErrors = /* @__PURE__ */ new WeakMap();
|
|
961
949
|
/** Initialize by checking which refs require authentication and have manifests. */
|
|
962
950
|
async initialize(refs) {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
951
|
+
let outcomes = await Promise.allSettled(refs.map((ref) => this.#checkRef(ref.url)));
|
|
952
|
+
for (let [index, ref] of refs.entries()) {
|
|
953
|
+
let outcome = outcomes[index];
|
|
954
|
+
if (outcome.status === "rejected") {
|
|
955
|
+
let error = outcome.reason;
|
|
956
|
+
logger4.warn(
|
|
957
|
+
`[addon-mcp] Skipping composed ref "${ref.title}" (${ref.url}): the ref could not be reached (${error instanceof Error ? error.message : String(error)}). Refs are only checked at dev-server boot \u2014 restart Storybook once the ref is reachable.`
|
|
958
|
+
);
|
|
959
|
+
continue;
|
|
960
|
+
}
|
|
961
|
+
let result = outcome.value;
|
|
962
|
+
if (result === "manifest-not-found") {
|
|
963
|
+
logger4.warn(
|
|
964
|
+
`[addon-mcp] Skipping composed ref "${ref.title}" (${ref.url}): components manifest not found at ${ref.url}/manifests/components.json. Enable the \`componentsManifest\` feature on that Storybook to compose it into MCP.`
|
|
965
|
+
);
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
if (result === "manifest-invalid") {
|
|
969
|
+
logger4.warn(
|
|
970
|
+
`[addon-mcp] Skipping composed ref "${ref.title}" (${ref.url}): its components manifest failed validation. This usually means a version mismatch between the composed Storybook and this one \u2014 upgrade the older side.`
|
|
971
|
+
);
|
|
972
|
+
continue;
|
|
973
|
+
}
|
|
974
|
+
if (this.#refsWithManifests.push(ref), result !== "public")
|
|
979
975
|
if (this.#authRequiredUrls.push(ref.url), !this.#authRequirement)
|
|
980
976
|
this.#authRequirement = result;
|
|
981
977
|
else {
|
|
@@ -984,11 +980,7 @@ var OAuthResourceMetadata = v2.object({
|
|
|
984
980
|
`[addon-mcp] Composed ref "${ref.title}" uses a different OAuth server (${newServer}) than the first authenticated ref (${existingServer}). Only the first OAuth server will be used for authentication.`
|
|
985
981
|
);
|
|
986
982
|
}
|
|
987
|
-
|
|
988
|
-
logger4.warn(
|
|
989
|
-
`[addon-mcp] Skipping composed ref "${ref.title}" (${ref.url}): the ref could not be reached (${error instanceof Error ? error.message : String(error)}). Refs are only checked at dev-server boot \u2014 restart Storybook once the ref is reachable.`
|
|
990
|
-
);
|
|
991
|
-
}
|
|
983
|
+
}
|
|
992
984
|
}
|
|
993
985
|
get requiresAuth() {
|
|
994
986
|
return this.#authRequiredUrls.length > 0;
|
|
@@ -1088,7 +1080,8 @@ var OAuthResourceMetadata = v2.object({
|
|
|
1088
1080
|
*/
|
|
1089
1081
|
async #checkRef(refUrl) {
|
|
1090
1082
|
let response = await fetch(`${refUrl}/manifests/components.json`, {
|
|
1091
|
-
headers: { Accept: "application/json" }
|
|
1083
|
+
headers: { Accept: "application/json" },
|
|
1084
|
+
signal: AbortSignal.timeout(REF_PROBE_TIMEOUT_MS)
|
|
1092
1085
|
}), authReq = await this.#parseAuthFromResponse(response);
|
|
1093
1086
|
if (authReq) return authReq;
|
|
1094
1087
|
let noManifestReason = "manifest-not-found";
|
|
@@ -1108,7 +1101,8 @@ var OAuthResourceMetadata = v2.object({
|
|
|
1108
1101
|
let response = await fetch(`${refUrl}/mcp`, {
|
|
1109
1102
|
method: "POST",
|
|
1110
1103
|
headers: { "Content-Type": "application/json" },
|
|
1111
|
-
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list" })
|
|
1104
|
+
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list" }),
|
|
1105
|
+
signal: AbortSignal.timeout(REF_PROBE_TIMEOUT_MS)
|
|
1112
1106
|
});
|
|
1113
1107
|
return this.#parseAuthFromResponse(response);
|
|
1114
1108
|
}
|
|
@@ -1118,7 +1112,8 @@ var OAuthResourceMetadata = v2.object({
|
|
|
1118
1112
|
return (await fetch(`${origin}/mcp`, {
|
|
1119
1113
|
method: "POST",
|
|
1120
1114
|
headers: { "Content-Type": "application/json" },
|
|
1121
|
-
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list" })
|
|
1115
|
+
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/list" }),
|
|
1116
|
+
signal: AbortSignal.timeout(REF_PROBE_TIMEOUT_MS)
|
|
1122
1117
|
})).status === 401;
|
|
1123
1118
|
} catch {
|
|
1124
1119
|
return !1;
|
|
@@ -1131,7 +1126,9 @@ var OAuthResourceMetadata = v2.object({
|
|
|
1131
1126
|
if (!wwwAuth) return null;
|
|
1132
1127
|
let match = wwwAuth.match(/resource_metadata="([^"]+)"/);
|
|
1133
1128
|
if (!match?.[1]) return null;
|
|
1134
|
-
let resourceMetadataUrl = match[1], resourceResponse = await fetch(resourceMetadataUrl
|
|
1129
|
+
let resourceMetadataUrl = match[1], resourceResponse = await fetch(resourceMetadataUrl, {
|
|
1130
|
+
signal: AbortSignal.timeout(REF_PROBE_TIMEOUT_MS)
|
|
1131
|
+
});
|
|
1135
1132
|
if (!resourceResponse.ok)
|
|
1136
1133
|
return logger4.warn(
|
|
1137
1134
|
`[addon-mcp] Failed to fetch OAuth resource metadata from ${resourceMetadataUrl}: ${resourceResponse.status}`
|
|
@@ -1141,7 +1138,9 @@ var OAuthResourceMetadata = v2.object({
|
|
|
1141
1138
|
return logger4.warn(
|
|
1142
1139
|
`[addon-mcp] Invalid OAuth resource metadata from ${resourceMetadataUrl}: ${resourceResult.issues.map((i) => i.message).join(", ")}`
|
|
1143
1140
|
), null;
|
|
1144
|
-
let serverMetadataUrl = `${resourceResult.output.authorization_servers[0]}/.well-known/oauth-authorization-server`, serverResponse = await fetch(serverMetadataUrl
|
|
1141
|
+
let serverMetadataUrl = `${resourceResult.output.authorization_servers[0]}/.well-known/oauth-authorization-server`, serverResponse = await fetch(serverMetadataUrl, {
|
|
1142
|
+
signal: AbortSignal.timeout(REF_PROBE_TIMEOUT_MS)
|
|
1143
|
+
});
|
|
1145
1144
|
if (!serverResponse.ok)
|
|
1146
1145
|
return logger4.warn(
|
|
1147
1146
|
`[addon-mcp] Failed to fetch OAuth server metadata from ${serverMetadataUrl}: ${serverResponse.status}`
|
|
@@ -1195,7 +1194,28 @@ async function getStoryIndex(options) {
|
|
|
1195
1194
|
}
|
|
1196
1195
|
|
|
1197
1196
|
// src/preset.ts
|
|
1198
|
-
var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotations, path.join(import.meta.dirname, "preview.js")]
|
|
1197
|
+
var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotations, path.join(import.meta.dirname, "preview.js")];
|
|
1198
|
+
function buildComposition({ refs, compositionAuth, sources, multiSource }, {
|
|
1199
|
+
options,
|
|
1200
|
+
baseUrl,
|
|
1201
|
+
rawAvailability
|
|
1202
|
+
}) {
|
|
1203
|
+
let localAccess = rawAvailability.docgenServer && refs.length > 0 ? createLocalDocsAccess({
|
|
1204
|
+
storyIndex: { getIndex: () => getStoryIndex(options) },
|
|
1205
|
+
getManifests: () => loadManifests(options.presets)
|
|
1206
|
+
}) : void 0;
|
|
1207
|
+
refs.length > 0 && (logger6.info(`Initialized composition with ${refs.length} remote Storybook(s)`), compositionAuth.requiresAuth && logger6.info(`Auth required for: ${compositionAuth.authUrls.join(", ")}`), logger6.info(`Sources: ${(sources ?? []).map((source) => source.id).join(", ")}`));
|
|
1208
|
+
let manifestProvider = refs.length > 0 ? compositionAuth.createManifestProvider(baseUrl) : void 0;
|
|
1209
|
+
return {
|
|
1210
|
+
sources,
|
|
1211
|
+
compositionAuth,
|
|
1212
|
+
manifestAccess: { manifestProvider, localAccess },
|
|
1213
|
+
// Same gates the MCP server uses to register these tools, so the page can't
|
|
1214
|
+
// claim a tool is available when it isn't (and vice versa).
|
|
1215
|
+
availability: getEffectiveToolAvailability2(rawAvailability, { multiSource })
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
var experimental_devServer = async (app, options) => {
|
|
1199
1219
|
let addonOptions = v3.parse(AddonOptions, {
|
|
1200
1220
|
endpoint: options.endpoint,
|
|
1201
1221
|
toolsets: options.toolsets ?? {}
|
|
@@ -1218,32 +1238,32 @@ var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotat
|
|
|
1218
1238
|
} catch {
|
|
1219
1239
|
}
|
|
1220
1240
|
return res.writeHead(403, { "Content-Type": "text/plain" }), res.end("Invalid origin"), !0;
|
|
1221
|
-
}, rejectNonJsonBody = (req, res) => req.headers["content-type"]?.split(";")[0].trim().toLowerCase() === "application/json" ? !1 : (res.writeHead(415, { "Content-Type": "text/plain" }), res.end("Unsupported Media Type: Content-Type must be application/json"), !0),
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
app.get("/.well-known/oauth-protected-resource", (_req, res) => {
|
|
1231
|
-
let wellKnown = compositionAuth.buildWellKnown(`${baseUrl}${endpoint}`);
|
|
1241
|
+
}, rejectNonJsonBody = (req, res) => req.headers["content-type"]?.split(";")[0].trim().toLowerCase() === "application/json" ? !1 : (res.writeHead(415, { "Content-Type": "text/plain" }), res.end("Unsupported Media Type: Content-Type must be application/json"), !0), rawAvailability = await getToolAvailability2(options), composition = resolveCompositionSources(options).then(
|
|
1242
|
+
(resolved) => buildComposition(resolved, { options, baseUrl, rawAvailability })
|
|
1243
|
+
);
|
|
1244
|
+
composition.catch((error) => {
|
|
1245
|
+
logger6.error(
|
|
1246
|
+
`[addon-mcp] Composition setup failed: ${error instanceof Error ? error.message : String(error)}`
|
|
1247
|
+
);
|
|
1248
|
+
}), app.get("/.well-known/oauth-protected-resource", async (_req, res) => {
|
|
1249
|
+
let { compositionAuth } = await composition, wellKnown = compositionAuth.buildWellKnown(`${baseUrl}${endpoint}`);
|
|
1232
1250
|
if (!wellKnown) {
|
|
1233
1251
|
res.writeHead(404), res.end("Not found");
|
|
1234
1252
|
return;
|
|
1235
1253
|
}
|
|
1236
1254
|
res.writeHead(200, { "Content-Type": "application/json" }), res.end(JSON.stringify(wellKnown));
|
|
1237
1255
|
});
|
|
1238
|
-
let requireAuth = (req, res) => {
|
|
1256
|
+
let requireAuth = (req, res, compositionAuth) => {
|
|
1239
1257
|
let token = extractBearerToken(req.headers.authorization);
|
|
1240
1258
|
return compositionAuth.requiresAuth && !token ? (res.writeHead(401, {
|
|
1241
1259
|
"Content-Type": "text/plain",
|
|
1242
1260
|
"WWW-Authenticate": compositionAuth.buildWwwAuthenticate(baseUrl)
|
|
1243
1261
|
}), res.end("401 - Unauthorized"), !0) : !1;
|
|
1244
1262
|
};
|
|
1245
|
-
app.post(endpoint, (req, res) => {
|
|
1246
|
-
if (
|
|
1263
|
+
app.post(endpoint, async (req, res) => {
|
|
1264
|
+
if (rejectDisallowedOrigin(req, res)) return;
|
|
1265
|
+
let { sources, compositionAuth, manifestAccess } = await composition;
|
|
1266
|
+
if (!requireAuth(req, res, compositionAuth) && !rejectNonJsonBody(req, res))
|
|
1247
1267
|
return mcpServerHandler({
|
|
1248
1268
|
req,
|
|
1249
1269
|
res,
|
|
@@ -1253,22 +1273,16 @@ var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotat
|
|
|
1253
1273
|
basePath,
|
|
1254
1274
|
endpoint,
|
|
1255
1275
|
sources,
|
|
1256
|
-
...
|
|
1276
|
+
...manifestAccess,
|
|
1257
1277
|
compositionAuth
|
|
1258
1278
|
});
|
|
1259
1279
|
});
|
|
1260
|
-
let
|
|
1261
|
-
|
|
1262
|
-
docsEnabled,
|
|
1263
|
-
docsHasManifests,
|
|
1264
|
-
docsFeatureEnabled,
|
|
1265
|
-
testSupported,
|
|
1266
|
-
a11yEnabled: a11yEnabled2
|
|
1267
|
-
} = getEffectiveToolAvailability2(rawAvailability, { multiSource }), isDevEnabled = addonOptions.toolsets?.dev ?? !0, isDocsEnabled = docsEnabled && (addonOptions.toolsets?.docs ?? !0), isTestEnabled = testSupported && (addonOptions.toolsets?.test ?? !0);
|
|
1268
|
-
return app.get(endpoint, (req, res) => {
|
|
1280
|
+
let isDevEnabled = addonOptions.toolsets?.dev ?? !0;
|
|
1281
|
+
return app.get(endpoint, async (req, res) => {
|
|
1269
1282
|
if (rejectDisallowedOrigin(req, res)) return;
|
|
1283
|
+
let { sources, compositionAuth, manifestAccess, availability } = await composition;
|
|
1270
1284
|
if (!req.headers.accept?.includes("text/html"))
|
|
1271
|
-
return requireAuth(req, res) ? void 0 : mcpServerHandler({
|
|
1285
|
+
return requireAuth(req, res, compositionAuth) ? void 0 : mcpServerHandler({
|
|
1272
1286
|
req,
|
|
1273
1287
|
res,
|
|
1274
1288
|
options,
|
|
@@ -1277,20 +1291,28 @@ var previewAnnotations = async (existingAnnotations = []) => [...existingAnnotat
|
|
|
1277
1291
|
basePath,
|
|
1278
1292
|
endpoint,
|
|
1279
1293
|
sources,
|
|
1280
|
-
...
|
|
1294
|
+
...manifestAccess,
|
|
1281
1295
|
compositionAuth
|
|
1282
1296
|
});
|
|
1297
|
+
let {
|
|
1298
|
+
moduleGraphSupported,
|
|
1299
|
+
docsEnabled,
|
|
1300
|
+
docsHasManifests,
|
|
1301
|
+
docsFeatureEnabled,
|
|
1302
|
+
testSupported,
|
|
1303
|
+
a11yEnabled: a11yEnabled2
|
|
1304
|
+
} = availability, isDocsEnabled = docsEnabled && (addonOptions.toolsets?.docs ?? !0), isTestEnabled = testSupported && (addonOptions.toolsets?.test ?? !0);
|
|
1283
1305
|
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1284
1306
|
let docsNotice = "";
|
|
1285
1307
|
docsHasManifests ? docsFeatureEnabled || (docsNotice = `<div class="toolset-notice">
|
|
1286
1308
|
This toolset requires enabling the component manifest feature.
|
|
1287
|
-
<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>
|
|
1288
1310
|
</div>`) : docsNotice = docsFeatureEnabled ? `<div class="toolset-notice">
|
|
1289
|
-
This toolset requires a components manifest, which your framework does not generate. On
|
|
1290
|
-
<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>
|
|
1291
1313
|
</div>` : `<div class="toolset-notice">
|
|
1292
|
-
This toolset requires a components manifest, which is generated by the React frameworks, <code>@storybook/angular-vite</code
|
|
1293
|
-
<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>
|
|
1294
1316
|
</div>`;
|
|
1295
1317
|
let testNoticeLines = [
|
|
1296
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": {
|