@storybook/mcp 0.6.2 → 0.8.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.
@@ -0,0 +1,5 @@
1
+ //#region src/instructions.md
2
+ var instructions_default = "## Documentation Workflow\n\n**CRITICAL: Never hallucinate component properties!** Before using ANY property on a component (even common-sounding ones like `shadow`), you MUST verify it is documented via these tools. If it is not documented, it does not exist — never assume props from naming conventions or other libraries; report it to the user instead.\n\n1. Call **list-all-documentation** once at the start of the task to discover available component and docs IDs.\n2. Call **get-documentation** with an `id` from that list to retrieve full component docs, props, usage examples, and stories.\n3. Call **get-documentation-for-story** for extra docs on a story variant not covered by the component docs.\n\nOnly use properties explicitly documented or shown in example stories. Only reference IDs returned by these tools; never guess IDs.\n\n## Multi-Source Requests\n\n- With multiple sources configured, **list-all-documentation** returns entries from every source; pass `storybookId` to **get-documentation** to scope one.\n";
3
+
4
+ //#endregion
5
+ export { instructions_default as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/mcp",
3
- "version": "0.6.2",
3
+ "version": "0.8.0",
4
4
  "description": "MCP server that serves knowledge about your components based on your Storybook stories and documentation",
5
5
  "keywords": [
6
6
  "mcp",
@@ -27,11 +27,11 @@
27
27
  "dependencies": {
28
28
  "@tmcp/adapter-valibot": "^0.1.5",
29
29
  "@tmcp/transport-http": "^0.8.5",
30
- "tmcp": "^1.19.3",
30
+ "tmcp": "^1.19.4",
31
31
  "valibot": "1.2.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@tmcp/transport-stdio": "^0.4.2",
34
+ "@tmcp/transport-stdio": "^0.4.3",
35
35
  "react-docgen": "^8.0.2",
36
36
  "react-docgen-typescript": "^2.4.0",
37
37
  "srvx": "^0.8.16",
@@ -1,5 +0,0 @@
1
- //#region src/instructions.md
2
- var instructions_default = "## Documentation Workflow\n\n1. Call **list-all-documentation** once at the start of the task to discover available component and docs IDs.\n2. Call **get-documentation** with an `id` from that list to retrieve full component docs, props, usage examples, and stories.\n3. Call **get-documentation-for-story** when you need additional docs from a specific story variant that was not included in the initial component documentation.\n\nUse `withStoryIds: true` on **list-all-documentation** when you also need story IDs for inputs to other tools.\n\n## Verification Rules\n\n- Never assume component props, variants, or API shape. Retrieve documentation before using a component.\n- If a component or prop is not documented, do not invent it. Report that it was not found.\n- Only reference IDs returned by **list-all-documentation**. Do not guess IDs.\n\n## Multi-Source Requests\n\n- When multiple Storybook sources are configured, **list-all-documentation** returns entries from all sources.\n- Use `storybookId` in **get-documentation** when you need to scope a request to one source.\n";
3
-
4
- //#endregion
5
- export { instructions_default as t };