AI metadata exposure + manifest support + workflow updates
Release history
storybookjs/addon-mcp releases
Help agents automatically write and test stories for your UI components.
All releases
50 shown
- Support for generating and displaying documentation pages for subcomponents
Full changelog
Minor Changes
- #209
f59e38cThanks @kasperpeulen! - Add support for subcomponent docs
- Support for subcomponent documentation pages
- Ability to use Storybook canary versions
Full changelog
Minor Changes
- #209
f59e38cThanks @kasperpeulen! - Add support for subcomponent docs
Patch Changes
-
#212
27a53b3Thanks @yannbf! - Add support for Storybook canaries -
Updated dependencies [
f59e38c]:- @storybook/[email protected]
- Support Storybook component manifests that use `reactComponentMeta` for React prop extraction
Full changelog
Patch Changes
-
#206
70b5b23Thanks @kasperpeulen! - Support Storybook component manifests that usereactComponentMetafor React prop extraction.This keeps MCP documentation output working when Storybook is configured to emit the newer
reactComponentMetapayload instead ofreactDocgenorreactDocgenTypescript. -
#204
b2a327dThanks @JReinhold! - upgrade tmcp dependencies
- Components manifest enabled by default
Full changelog
Minor Changes
Patch Changes
-
#204
b2a327dThanks @JReinhold! - upgrade tmcp dependencies -
Updated dependencies [
70b5b23,b2a327d]:- @storybook/[email protected]
Minor fixes and improvements.
Full changelog
Patch Changes
- #172
a610073Thanks @JReinhold! - Simplify package READMEs for docs-site-first documentation
Minor fixes and improvements.
Full changelog
Patch Changes
-
#172
a610073Thanks @JReinhold! - Simplify package READMEs for docs-site-first documentation -
Updated dependencies [
a610073]:- @storybook/[email protected]
- Added server-level instructions to both @storybook/mcp and @storybook/addon-mcp in the MCP initialize response.
- Forwarded `sources` through `createStorybookMcpHandler()` into per-request transport context.
Full changelog
Minor Changes
-
#185
c5439b7Thanks @copilot-swe-agent! - Add MCP server-level instructions to both packagesBoth
@storybook/mcpand@storybook/addon-mcpnow include server instructions in the MCPinitializeresponse. These instructions guide agents on how to use the available tools effectively without requiring explicit prompting from users.
Patch Changes
- #194
eb0ea73Thanks @JReinhold! - ForwardsourcesthroughcreateStorybookMcpHandler()into the per-request transport context.
- Server-level instructions included in MCP `initialize` response for both @storybook/mcp and @storybook/addon-mcp
Full changelog
Minor Changes
-
#185
c5439b7Thanks @copilot-swe-agent! - Add MCP server-level instructions to both packagesBoth
@storybook/mcpand@storybook/addon-mcpnow include server instructions in the MCPinitializeresponse. These instructions guide agents on how to use the available tools effectively without requiring explicit prompting from users.
Patch Changes
-
#193
dbb33c2Thanks @JReinhold! - Fix enabling docs toolset even when component manifests were not present -
Updated dependencies [
eb0ea73,c5439b7]:- @storybook/[email protected]
- Renamed config key `experimentalComponentsManifest` to `componentsManifest`
Full changelog
Patch Changes
-
#181
ff217d8Thanks @copilot-swe-agent! - Rename feature flagexperimentalComponentsManifest→componentsManifestThe Storybook feature flag has been renamed from
experimentalComponentsManifesttocomponentsManifestand now defaults totruein Storybook core.
- Renamed configuration key `experimentalComponentsManifest` to `componentsManifest` and changed its default value to `true`.
Full changelog
Patch Changes
-
#179
ec300bdThanks @copilot-swe-agent! - Improve/mcpHTML response -
#181
ff217d8Thanks @copilot-swe-agent! - Rename feature flagexperimentalComponentsManifest→componentsManifestThe Storybook feature flag has been renamed from
experimentalComponentsManifesttocomponentsManifestand now defaults totruein Storybook core. -
Updated dependencies [
ff217d8]:- @storybook/[email protected]
- Renamed exported function `addGetComponentStoryDocumentationTool` to `addGetStoryDocumentationTool` in @storybook/mcp.
- Added story ID based inputs for preview and testing workflows.
- Surface story IDs in docs outputs with `withStoryIds` flag and include them in story sections.
Full changelog
Minor Changes
-
#171
b3a8356Thanks @copilot-swe-agent! - ExportaddGetStoryDocumentationTooldirectly instead of renaming it toaddGetComponentStoryDocumentationTool.Breaking change: If you were importing
addGetComponentStoryDocumentationToolfrom@storybook/mcp, update your import to useaddGetStoryDocumentationToolinstead.
Patch Changes
-
#175
6a098f9Thanks @JReinhold! - Add story ID based inputs for preview/testing workflows and surface story IDs in docs outputs.This change keeps existing path-based story inputs (
absoluteStoryPath+exportName) while adding astoryIdinput shape forpreview-storiesandrun-story-tests. It also addswithStoryIdstolist-all-documentationand includes story IDs inget-documentationstory sections, so agents can discover and reuse IDs directly without extra filesystem lookup steps.
- Dependency bump: @storybook/mcp updated to version 0.5.0.
- Added `storyId` input shape for `preview-stories` and `run-story-tests`, keeping existing path-based inputs.
- Introduced `withStoryIds` option in `list-all-documentation` and included story IDs in `get-documentation` outputs.
Full changelog
Patch Changes
-
#171
b3a8356Thanks @copilot-swe-agent! - Fix: expose theget-documentation-for-storytool in the MCP Addon. -
#176
8afbb72Thanks @JReinhold! - Improvepreview-storiestool description to make agent behavior more consistent. -
#175
6a098f9Thanks @JReinhold! - Add story ID based inputs for preview/testing workflows and surface story IDs in docs outputs.This change keeps existing path-based story inputs (
absoluteStoryPath+exportName) while adding astoryIdinput shape forpreview-storiesandrun-story-tests. It also addswithStoryIdstolist-all-documentationand includes story IDs inget-documentationstory sections, so agents can discover and reuse IDs directly without extra filesystem lookup steps. -
Updated dependencies [
b3a8356,6a098f9]:- @storybook/[email protected]
Fixed type bundling issue
Full changelog
Patch Changes
- #131
9cf991cThanks @JReinhold! - Fixed type bundling issue
- `run-story-tests` tool available when @storybook/addon-vitest is configured and running Storybook 10.3.0-alpha.8 or above; reports a11y violations if @storybook/addon-a11y is also configured.
Full changelog
Patch Changes
-
#131
9cf991cThanks @JReinhold! - Addedrun-story-teststool that is available when:@storybook/addon-vitestis configured- Running Storybook 10.3.0-alpha.8 or above
Additionally, if
@storybook/addon-a11yis configured, the tool returns accessibility violations too. -
Updated dependencies [
9cf991c]:- @storybook/[email protected]
- Added React DocGen Typescript support for component manifest parsing
Full changelog
Minor Changes
- #168
c0793d4Thanks @kasperpeulen! - Add react-docgen-typescript support for component manifest parsing.
Minor fixes and improvements.
Full changelog
Patch Changes
- Updated dependencies [
c0793d4]:- @storybook/[email protected]
- Removed support for XML format; related configuration option has no effect, output is always markdown.
- Added multi-source composition with OAuth for private Storybooks
Full changelog
Minor Changes
-
#165
e088e05Thanks @JReinhold! - Remove support for XML format.Breaking Change
The related option to configure XML vs markdown format now has no impact, the output is always formatted as markdown.
-
#140
f9fce2aThanks @kasperpeulen! - Add multi-source composition with OAuth for private Storybooks
- Removed support for XML output format; the option to configure XML vs markdown no longer affects behavior and markdown is always produced.
- Added multi-source composition with OAuth for private Storybooks
Full changelog
Minor Changes
-
#165
e088e05Thanks @JReinhold! - Remove support for XML format.Breaking Change
The related option to configure XML vs markdown format now has no impact, the output is always formatted as markdown.
-
#140
f9fce2aThanks @kasperpeulen! - Add multi-source composition with OAuth for private Storybooks
Patch Changes
-
#163
68cb213Thanks @domazet93! - Fixpreview-storiesfailing to find stories in monorepo packages directories. -
Updated dependencies [
e088e05,f9fce2a]:- @storybook/[email protected]
Fixed regression so component‑attached MDX docs are rendered in markdown output for get-documentation.
Full changelog
Patch Changes
-
#123
b7aeb40Thanks @valentinpalkovic! - Minimize token usage by only including the 3 first stories in component documentation.... if there are already prop types. If there are no prop types, include all stories. Additional stories can be fetched individually using a new
get-documentation-for-storytool. -
#160
bab8ec9Thanks @JReinhold! - Render component-attached MDX docs entries in markdown output forget-documentation.This fixes a regression where docs attached to components via
component.docsincomponents.jsonwere not included in markdown responses. The markdown formatter now emits a## Docssection below stories (and before props).
Fixed regression: component-attached MDX docs entries now appear in markdown output for `get-documentation`.
Full changelog
Patch Changes
-
#141
03e957dThanks @shilman! - Upgrade deprecated MCP server methods -
#160
bab8ec9Thanks @JReinhold! - Render component-attached MDX docs entries in markdown output forget-documentation.This fixes a regression where docs attached to components via
component.docsincomponents.jsonwere not included in markdown responses. The markdown formatter now emits a## Docssection below stories (and before props). -
Updated dependencies [
b7aeb40,bab8ec9]:- @storybook/[email protected]
Fixed preview‑stories tool failing on Windows.
Full changelog
Patch Changes
- #137
56be9e7Thanks @valentinpalkovic! - Fix preview-stories tool on Windows
- Support for MCP App: renders Storybook stories directly in agent chat of compatible MCP clients
Full changelog
Patch Changes
- #134
457b349Thanks @JReinhold! - Add support for MCP App, rendering stories directly in the agent chat in MCP clients that support it
- Renamed CLI/tool `get-ui-building-instructions` → `get-storybook-story-instructions`
- Updated storybook‑story building instructions template to clarify what constitutes a good story
- Added extensive description for the `get-storybook-story-instructions` tool to guide agents on proper usage
Full changelog
Minor Changes
-
#118
bafbfc6Thanks @valentinpalkovic! - Renamed toolget-ui-building-instructionstoget-storybook-story-instructionsto increase the likelihood of Agents calling the MCP tool.Further updates:
- Updated storybook-story building instructions template to be more specific about what a good story is.
- Added an extensive description for the
get-storybook-story-instructionstool to give agents more information of when to call the MCP tool
Patch Changes
- #128
20d97e2Thanks @JReinhold! - Fix disabled docs toolset in Storybook version prior to v10.2.0-alpha.10
- Added resultText to args of onListAllDocumentation and onGetDocumentation
Full changelog
Patch Changes
- #122
0254c09Thanks @JReinhold! - Add resultText to args of onListAllDocumentation and onGetDocumentation
Minor fixes and improvements.
Full changelog
Patch Changes
-
#122
0254c09Thanks @JReinhold! - Log output token count of tool calls to telemetry -
Updated dependencies [
0254c09]:- @storybook/[email protected]
- Renamed `addGetComponentDocumentationTool` to `addGetDocumentationTool`
- Renamed `addListAllComponentsTool` to `addListAllDocumentationTool`
- Renamed hook `onListAllComponents` to `onListAllDocumentation`
- Added support for docs entries in manifests sourced by MDX files
Full changelog
Minor Changes
-
#120
c1fc816Thanks @JReinhold! - Add support for docs entries in manifests, sourced by MDX files.Breaking Changes
This change introduces a number of minor breaking changes to
@storybook/mcp:- The lower level tool adder functions have been renamed:
addGetComponentDocumentationTool->addGetDocumentationTooladdListAllComponentsTool->addListAllDocumentationTool- The optional tool hooks have been renamed:
onListAllComponents->onListAllDocumentationonGetComponentDocumentation->onGetDocumentation- The exported
MANIFEST_PATHconstant have been removed in favor of two new constants,COMPONENT_MANIFEST_PATHandDOCS_MANIFEST_PATH
- Docs entries in manifests can now be sourced from MDX files
Full changelog
Patch Changes
-
#120
c1fc816Thanks @JReinhold! - Add support for docs entries in manifests, sourced by MDX files. -
Updated dependencies [
c1fc816]:- @storybook/[email protected]
- Updated Valibot from v1.1.0 to v1.2.0, fixing three security vulnerabilities
Full changelog
Patch Changes
-
#105
e27f6b2Thanks @copilot-swe-agent! - Update Valibot to v1.2.0 to fix security vulnerabilitiesValibot 1.1.0 contained 3 security vulnerabilities that are addressed in v1.2.0. This is a non-breaking security patch - no changes required for consumers.
- Valibot upgraded from v1.1.0 to v1.2.0 fixing three security vulnerabilities
Full changelog
Patch Changes
-
#105
e27f6b2Thanks @copilot-swe-agent! - Update Valibot to v1.2.0 to fix security vulnerabilitiesValibot 1.1.0 contained 3 security vulnerabilities that are addressed in v1.2.0. This is a non-breaking security patch - no changes required for consumers.
-
Updated dependencies [
e27f6b2]:- @storybook/[email protected]
Minor fixes and improvements.
Full changelog
Patch Changes
- #93
dce8c8dThanks @JReinhold! - Improve visibility into which toolsets are available
- Removed `source` property from context; replaced with `request` object.
Full changelog
Minor Changes
-
#54
5d18405Thanks @JReinhold! - Replace thesourceproperty in the context withrequest.Now you don't pass in a source string that might be fetched or handled by your custom
manifestProvider, but instead you pass in the whole web request. (This is automatically handled if you use the createStorybookMcpHandler() function).The default action is now to fetch the manifest from
../manifests/components.jsonassuming the server is running at./mcp. Your custommanifestProvider()-function then also does not get a source string as an argument, but gets the whole web request, that you can use to get information about where to fetch the manifest from. It also gets a second argument,path, which it should use to determine which specific manifest to get from a built Storybook. (Currently always./manifests/components.json, but in the future it might be other paths too).
Patch Changes
-
#86
94c01d2Thanks @JReinhold! - Docs toolset: output markdown instead of XML, configurable via experimentalOutput: 'markdown' | 'xml' addon option -
#85
9f75d0fThanks @JReinhold! - Allow undefined request in server context when using custom manifestProvider -
#79
a9321a3Thanks @JReinhold! - get-component-documentation now only handles one component at a time -
#61
77536a7Thanks @copilot-swe-agent! - rename examples to stories in manifest -
#55
cddbf34Thanks @JReinhold! - Support error.name in manifests
- Peer dependency allowance updated to support Storybook 10.1.0 prereleases
- Telemetry payload includes new toolset information
- Docs toolset now outputs markdown configurable via experimentalOutput option
Full changelog
Patch Changes
-
#78
f40da8fThanks @copilot-swe-agent! - Add toolset to telemetry payload -
#56
edcbf4eThanks @JReinhold! - improve html bundling -
#86
94c01d2Thanks @JReinhold! - Docs toolset: output markdown instead of XML, configurable via experimentalOutput: 'markdown' | 'xml' addon option -
#84
47ab165Thanks @JReinhold! - improve handling of disableTelemetry option -
#70
cf4ef86Thanks @kasperpeulen! - Handle GET responses in the MCP server -
#59
ed0fe09Thanks @JReinhold! - Allow Storybook 10.1.0 prerelases as peer dependencies -
Updated dependencies [
94c01d2,9f75d0f,5d18405,a9321a3,77536a7,cddbf34]:- @storybook/[email protected]
- GET handler serves HTML when visiting /mcp and redirects to human‑readable component manifest
- Updated manifest format
Full changelog
Patch Changes
-
#50
0334d29Thanks @JReinhold! - Add GET handler that serves HTML when visiting/mcp, and redirects to human-readable component manifest when applicable -
#50
0334d29Thanks @JReinhold! - Update manifest format
Minor fixes and improvements.
Full changelog
Patch Changes
-
#51
2028709Thanks @paoloricciuti! - chore: updatetmcp -
#48
52be338Thanks @JReinhold! - Add possibility to configure toolsets (dev tools vs docs tools) either via addon options or request headers -
Updated dependencies [
52be338,2028709]:- @storybook/[email protected]
- Optional "enabled" function added to directly exported tool adders for dynamic enable/disable behavior
Full changelog
Patch Changes
-
#48
52be338Thanks @JReinhold! - Add optional "enabled" function to the directly exported tool adders. This allow you to define a function that will dynamically enable/disable the tool however you want, eg. per request condition -
#51
2028709Thanks @paoloricciuti! - chore: updatetmcp
Minor fixes and improvements.
Full changelog
Patch Changes
-
#42
57a1602Thanks @JReinhold! - Log telemetry when the additional @storybook/mcp tools are called -
#44
140ecc4Thanks @JReinhold! - Support Storybook 9.1.16 and up -
Updated dependencies [
57a1602]:- @storybook/[email protected]
- Optional event handlers on tool calls
Full changelog
Patch Changes
- #42
57a1602Thanks @JReinhold! - Add optional event handlers to the tool calls, so you can optionally run some functionality on all tool calls
- Component documentation tool now includes prop types
Full changelog
Patch Changes
- #38
fc83cd1Thanks @copilot-swe-agent! - include prop types in component documentation tool
- Requires minimum Storybook version 10.1 (canary) for @storybook/addon-mcp; users on Storybook 9 or 10.0 must use package version 0.0.9.
- Adds Webpack support, enabling usage with Next.js and other Webpack‑based frameworks
Full changelog
Minor Changes
-
#36
93f88e4Thanks @JReinhold! - Add support for Webpack (including Webpack-based frameworks like Next.js)Breaking Change
This requires version 10.1 of Storybook, currently only available as the canary version
0.0.0-pr-32810-sha-6e759c7e. If you want to continue to use the addon with Storybook 9 or 10.0 (and Vite), stick to version0.0.9of this package.
EDIT: The above is not true anymore, see version 0.1.1 of this package.
Patch Changes
-
#38
fc83cd1Thanks @copilot-swe-agent! - include prop types in component documentation tool -
Updated dependencies [
fc83cd1]:- @storybook/[email protected]
- Requires Storybook version 9 or above
Full changelog
Patch Changes
-
#35
4344744Thanks @JReinhold! - Improve documentation around tool usage and setup -
#35
373741bThanks @JReinhold! - Specify that only Storybook 9 or above is supported
- Support passing a custom `manifestProvider` option to the MCP server, defaulting to `fetch()`.
- Exported merge tools for integration into other MCP servers (e.g., tmcp).
Full changelog
Patch Changes
-
#32
531a2d4Thanks @copilot-swe-agent! - Support passing in a custom manifestProvider option to the MCP server, falling back to fetch() as the default -
#33
ae6ab44Thanks @JReinhold! - Export tools to be merged into other MCP servers.Currently only tmcp-based MCP servers supports using these tools directly.
- Requires Storybook v10.1 prerelease (canary `0.0.0-pr-32810-sha-af0645cd`).
- Enable experimental flag `features.experimentalComponentsManifest = true` in the main config.
- Only React-based frameworks support component manifest generation currently.
- Tools to generate component documentation based on the components manifest
Full changelog
Patch Changes
-
#33
ae6ab44Thanks @JReinhold! - Add tools to get documentation for components, based on the component manifest being generated in the Storybook dev server.Requirements:
- That the experimental feature flag
features.experimentalComponentsManifestis set totruein the main config. - Only React-based frameworks supports component manifest generation for now.
- Requires Storybook v10.1 (prereleases), which at the time of writing is available as a canary version
0.0.0-pr-32810-sha-af0645cd.
- That the experimental feature flag
-
Updated dependencies [
531a2d4,ae6ab44]:- @storybook/[email protected]
- Replaced @modelcontextprotocol/sdk with tmcp for MCP implementation.
Full changelog
Patch Changes
-
#31
512c958Thanks @JReinhold! - use shared tsdown config for all monorepo packages, target node 20.19 -
#31
f660cfeThanks @JReinhold! - change tool names -
#31
a47e61dThanks @JReinhold! - This release migrates the addon's MCP implementation from@modelcontextprotocol/sdktotmcp.
Minor fixes and improvements.
Full changelog
Patch Changes
- #31
512c958Thanks @JReinhold! - use shared tsdown config for all monorepo packages, target node 20.19
Minor fixes and improvements.
Full changelog
Patch Changes
- #12
b448cd4Thanks @JReinhold! - Add instructions on when to write stories
- Improved UI building instructions
- Enhanced output format of Get Story URLs tool
- Added basic telemetry for sessions and tool calls
Full changelog
Patch Changes
-
#11
bba9b8cThanks @JReinhold! - - Improved UI Building Instructions- Improved output format of Get Story URLs tool
-
#9
e5e2adfThanks @JReinhold! - Add basic telemetry for sessions and tool calls
Minor fixes and improvements.
Full changelog
Patch Changes
- #8
77d0779Thanks @JReinhold! - Add initial readme content