@storybook/mcp 11.0.0-rc.2 → 11.0.0-rc.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/dist/index.d.ts CHANGED
@@ -586,7 +586,15 @@ interface StoryDoc {
586
586
  }
587
587
  /** Story docs keyed by story id for O(1) lookup and fine-grained open-service subscriptions. */
588
588
  type StoryDocsById = Record<string, StoryDoc>; //#endregion
589
+ //#region code/core/.dts-emit/code/core/src/shared/open-service/services/extraction-detail.d.ts
590
+ type ExtractionDetail = 'basic' | 'full'; //#endregion
589
591
  //#region code/core/.dts-emit/code/core/src/shared/open-service/services/docgen/types.d.ts
592
+ /**
593
+ * How much of a component's docgen a caller needs. `basic` is what a parser reads from source: the
594
+ * name, description, summary and JSDoc tags of the component. `full` adds what needs a type
595
+ * checker: the props, and the docgen of the subcomponents.
596
+ */
597
+ type DocgenDetail = ExtractionDetail;
590
598
  /** Free-form error attached to a payload or subcomponent. */
591
599
  interface DocgenError {
592
600
  name: string;
@@ -602,6 +610,8 @@ type DocgenJsDocTags = Record<string, string[]>;
602
610
  */
603
611
  interface DocgenPayload {
604
612
  id: string;
613
+ /** Set by `core/docgen` on a payload it stores at `basic` detail, never by a provider. */
614
+ detail?: DocgenDetail;
605
615
  name: string;
606
616
  /** CSF story file import path from the index entry (same as component manifest `path`). */
607
617
  path: string;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { HttpTransport } from "@tmcp/transport-http";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@storybook/mcp",
9
- version: "11.0.0-rc.2",
9
+ version: "11.0.0-rc.4",
10
10
  description: "MCP server that serves knowledge about your components based on your Storybook stories and documentation",
11
11
  keywords: [
12
12
  "mcp",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/mcp",
3
- "version": "11.0.0-rc.2",
3
+ "version": "11.0.0-rc.4",
4
4
  "description": "MCP server that serves knowledge about your components based on your Storybook stories and documentation",
5
5
  "keywords": [
6
6
  "mcp",
@@ -49,7 +49,7 @@
49
49
  "react-docgen": "^8.0.2",
50
50
  "react-docgen-typescript": "^2.4.0",
51
51
  "srvx": "^0.8.16",
52
- "storybook": "11.0.0-rc.2",
52
+ "storybook": "11.0.0-rc.4",
53
53
  "tinyexec": "^1.0.2",
54
54
  "typescript": "^6.0.3"
55
55
  },