@storybook/mcp 0.7.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/CHANGELOG.md +225 -0
- package/README.md +17 -3
- package/dist/index.d.ts +384 -68
- package/dist/index.js +1046 -790
- package/package.json +30 -20
- package/LICENSE +0 -21
- package/dist/instructions-Cl0vcW2j.js +0 -5
package/package.json
CHANGED
|
@@ -1,48 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/mcp",
|
|
3
|
-
"version": "
|
|
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/
|
|
10
|
-
"
|
|
11
|
-
|
|
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
|
-
"
|
|
14
|
-
"
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/storybookjs/storybook.git",
|
|
16
|
+
"directory": "code/lib/mcp"
|
|
15
17
|
},
|
|
16
|
-
"
|
|
17
|
-
"
|
|
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
|
-
"tmcp": "^1.19.
|
|
31
|
-
"valibot": "1.
|
|
43
|
+
"tmcp": "^1.19.4",
|
|
44
|
+
"valibot": "^1.4.0"
|
|
32
45
|
},
|
|
33
46
|
"devDependencies": {
|
|
34
|
-
"@
|
|
47
|
+
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
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
|
-
"
|
|
41
|
-
"
|
|
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\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 };
|