@storybook/react-native 10.3.0-next.1 → 10.3.0-next.2

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/readme.md +14 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "10.3.0-next.1",
3
+ "version": "10.3.0-next.2",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -44,9 +44,9 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@storybook/react": "10.3.0-alpha.9",
47
- "@storybook/react-native-theming": "^10.3.0-next.1",
48
- "@storybook/react-native-ui": "^10.3.0-next.1",
49
- "@storybook/react-native-ui-common": "^10.3.0-next.1",
47
+ "@storybook/react-native-theming": "^10.3.0-next.2",
48
+ "@storybook/react-native-ui": "^10.3.0-next.2",
49
+ "@storybook/react-native-ui-common": "^10.3.0-next.2",
50
50
  "commander": "^14.0.2",
51
51
  "dedent": "^1.7.0",
52
52
  "deepmerge": "^4.3.1",
package/readme.md CHANGED
@@ -448,12 +448,25 @@ Type: `boolean`, default: `false`
448
448
 
449
449
  Whether to use lite mode for Storybook. In lite mode, the default Storybook UI is mocked out so you don't need to install all its dependencies like react-native-reanimated. This is useful for reducing bundle size and dependencies. Use this when using @storybook/react-native-ui-lite instead of @storybook/react-native-ui.
450
450
 
451
+ #### experimental_mcp
452
+
453
+ Type: `boolean`, default: `false`
454
+
455
+ Enables an experimental MCP (Model Context Protocol) endpoint at `/mcp` on the Storybook channel server. This can be used by AI tooling to query Storybook documentation and component/story metadata. Available from v10.3 onwards.
456
+
457
+ You can enable MCP with or without websockets:
458
+
459
+ - `experimental_mcp: true` starts the HTTP MCP endpoint
460
+ - adding `websockets` also enables story selection tools over the same channel server
461
+
451
462
  ### websockets
452
463
 
453
- Type: `{ host: string?, port: number? }`, default: `undefined`
464
+ Type: `'auto' | { host: string?, port: number? }`, default: `undefined`
454
465
 
455
466
  If specified, create a WebSocket server on startup. This allows you to sync up multiple devices to show the same story and [arg](https://storybook.js.org/docs/writing-stories/args) values connected to the story in the UI.
456
467
 
468
+ Use `'auto'` to automatically detect your LAN IP and inject host/port into the generated `storybook.requires` file.
469
+
457
470
  ### websockets.host
458
471
 
459
472
  Type: `string`, default: `'localhost'`