Skip to content

Conversation

@JReinhold
Copy link
Contributor

@JReinhold JReinhold commented Oct 24, 2025

This PR migrates to using the new experimental_devServer preset property introduced in storybookjs/storybook#32816 . It also means that it now requires Storybook versions that has that property, which currently are only canaries.

I manually tested that this worked both with Vite and Webpack, by modifying the Storybook in this reop.

@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

🦋 Changeset detected

Latest commit: 031169f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@storybook/addon-mcp Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JReinhold JReinhold requested a review from Copilot October 24, 2025 08:15
@JReinhold JReinhold self-assigned this Oct 24, 2025
@JReinhold JReinhold requested a review from shilman October 24, 2025 08:15
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 24, 2025

npm i https://pkg.pr.new/@storybook/addon-mcp@36
npm i https://pkg.pr.new/@storybook/mcp@36

commit: 031169f

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the addon from Vite-specific middleware to the new experimental_devServer preset property, enabling support for Webpack-based frameworks (Next.js, react-webpack5) while maintaining Vite compatibility. It requires Storybook 10.1+ (currently available as a canary).

Key Changes

  • Replaces Vite plugin workaround with experimental_devServer preset hook
  • Updates minimum Storybook version requirement from 9.0 to 10.1 (canary)
  • Adds Webpack-based framework support (Next.js, react-webpack5)

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Adds Storybook canary versions to catalog, removes comment sections
packages/addon-mcp/src/preset.ts Replaces viteFinal Vite plugin with experimental_devServer preset hook
packages/addon-mcp/package.json Updates peer dependency to use catalog version instead of semver range
packages/addon-mcp/README.md Updates documentation to reflect Webpack support and new version requirement
apps/internal-storybook/package.json Updates dev dependencies to use catalog versions
apps/internal-storybook/.storybook/main.ts Corrects story directory path
.changeset/dark-eagles-argue.md Documents breaking change and version requirement
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@JReinhold JReinhold merged commit 78424f3 into improve-readmes Oct 27, 2025
10 checks passed
@JReinhold JReinhold mentioned this pull request Oct 27, 2025
@github-actions github-actions bot mentioned this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant