@storybook/mcp 0.8.0 → 10.6.0-alpha.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/package.json CHANGED
@@ -1,48 +1,58 @@
1
1
  {
2
2
  "name": "@storybook/mcp",
3
- "version": "0.8.0",
3
+ "version": "10.6.0-alpha.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",
7
7
  "storybook"
8
8
  ],
9
- "homepage": "https://github.com/storybookjs/mcp/blob/main/packages/mcp/README.md",
10
- "license": "MIT",
11
- "author": "Storybook Core Team",
9
+ "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/mcp",
10
+ "bugs": {
11
+ "url": "https://github.com/storybookjs/storybook/issues"
12
+ },
12
13
  "repository": {
13
- "url": "git+https://github.com/storybookjs/mcp.git",
14
- "directory": "packages/mcp"
14
+ "type": "git",
15
+ "url": "https://github.com/storybookjs/storybook.git",
16
+ "directory": "code/lib/mcp"
15
17
  },
16
- "files": [
17
- "dist"
18
- ],
18
+ "funding": {
19
+ "type": "opencollective",
20
+ "url": "https://opencollective.com/storybook"
21
+ },
22
+ "license": "MIT",
23
+ "author": "Storybook Core Team",
19
24
  "type": "module",
20
25
  "exports": {
21
26
  ".": {
22
27
  "types": "./dist/index.d.ts",
28
+ "code": "./src/index.ts",
23
29
  "default": "./dist/index.js"
24
30
  },
25
31
  "./package.json": "./package.json"
26
32
  },
33
+ "files": [
34
+ "dist/**/*",
35
+ "README.md",
36
+ "*.js",
37
+ "*.d.ts",
38
+ "!src/**/*"
39
+ ],
27
40
  "dependencies": {
28
41
  "@tmcp/adapter-valibot": "^0.1.5",
29
42
  "@tmcp/transport-http": "^0.8.5",
30
43
  "tmcp": "^1.19.4",
31
- "valibot": "1.2.0"
44
+ "valibot": "^1.4.0"
32
45
  },
33
46
  "devDependencies": {
47
+ "@modelcontextprotocol/sdk": "^1.22.0",
34
48
  "@tmcp/transport-stdio": "^0.4.3",
35
49
  "react-docgen": "^8.0.2",
36
50
  "react-docgen-typescript": "^2.4.0",
37
51
  "srvx": "^0.8.16",
38
- "tinyexec": "^1.0.2"
52
+ "tinyexec": "^1.0.2",
53
+ "typescript": "^6.0.3"
39
54
  },
40
- "scripts": {
41
- "build": "tsdown",
42
- "dev": "node --watch ./serve.ts",
43
- "inspect": "mcp-inspector --config ../../.mcp.inspect.json --server storybook-mcp",
44
- "publint": "publint",
45
- "test": "cd ../.. && pnpm vitest --project=@storybook/mcp",
46
- "typecheck": "tsc"
55
+ "publishConfig": {
56
+ "access": "public"
47
57
  }
48
58
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Storybook contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,5 +0,0 @@
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 };