- Support for generating and displaying documentation pages for subcomponents
Full changelog
Minor Changes
- #209
f59e38cThanks @kasperpeulen! - Add support for subcomponent docs
Release history
Help agents automatically write and test stories for your UI components.
49 shown
f59e38c Thanks @kasperpeulen! - Add support for subcomponent docsf59e38c Thanks @kasperpeulen! - Add support for subcomponent docs#212 27a53b3 Thanks @yannbf! - Add support for Storybook canaries
Updated dependencies [f59e38c]:
#206 70b5b23 Thanks @kasperpeulen! - Support Storybook component manifests that use reactComponentMeta for React prop extraction.
This keeps MCP documentation output working when Storybook is configured to emit the newer
reactComponentMeta payload instead of reactDocgen or reactDocgenTypescript.
#204 b2a327d Thanks @JReinhold! - upgrade tmcp dependencies
#204 b2a327d Thanks @JReinhold! - upgrade tmcp dependencies
Updated dependencies [70b5b23, b2a327d]:
Minor fixes and improvements.
a610073 Thanks @JReinhold! - Simplify package READMEs for docs-site-first documentationMinor fixes and improvements.
#172 a610073 Thanks @JReinhold! - Simplify package READMEs for docs-site-first documentation
Updated dependencies [a610073]:
#185 c5439b7 Thanks @copilot-swe-agent! - Add MCP server-level instructions to both packages
Both @storybook/mcp and @storybook/addon-mcp now include server instructions in the MCP initialize response. These instructions guide agents on how to use the available tools effectively without requiring explicit prompting from users.
eb0ea73 Thanks @JReinhold! - Forward sources through createStorybookMcpHandler() into the per-request transport context.#185 c5439b7 Thanks @copilot-swe-agent! - Add MCP server-level instructions to both packages
Both @storybook/mcp and @storybook/addon-mcp now include server instructions in the MCP initialize response. These instructions guide agents on how to use the available tools effectively without requiring explicit prompting from users.
#193 dbb33c2 Thanks @JReinhold! - Fix enabling docs toolset even when component manifests were not present
Updated dependencies [eb0ea73, c5439b7]:
#181 ff217d8 Thanks @copilot-swe-agent! - Rename feature flag experimentalComponentsManifest → componentsManifest
The Storybook feature flag has been renamed from experimentalComponentsManifest to componentsManifest and now defaults to true in Storybook core.
#179 ec300bd Thanks @copilot-swe-agent! - Improve /mcp HTML response
#181 ff217d8 Thanks @copilot-swe-agent! - Rename feature flag experimentalComponentsManifest → componentsManifest
The Storybook feature flag has been renamed from experimentalComponentsManifest to componentsManifest and now defaults to true in Storybook core.
Updated dependencies [ff217d8]:
#171 b3a8356 Thanks @copilot-swe-agent! - Export addGetStoryDocumentationTool directly instead of renaming it to addGetComponentStoryDocumentationTool.
Breaking change: If you were importing addGetComponentStoryDocumentationTool from @storybook/mcp, update your import to use addGetStoryDocumentationTool instead.
#175 6a098f9 Thanks @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 a storyId input shape for preview-stories and run-story-tests. It also adds withStoryIds to list-all-documentation and includes story IDs in get-documentation story sections, so agents can discover and reuse IDs directly without extra filesystem lookup steps.
#171 b3a8356 Thanks @copilot-swe-agent! - Fix: expose the get-documentation-for-story tool in the MCP Addon.
#176 8afbb72 Thanks @JReinhold! - Improve preview-stories tool description to make agent behavior more consistent.
#175 6a098f9 Thanks @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 a storyId input shape for preview-stories and run-story-tests. It also adds withStoryIds to list-all-documentation and includes story IDs in get-documentation story sections, so agents can discover and reuse IDs directly without extra filesystem lookup steps.
Updated dependencies [b3a8356, 6a098f9]:
Fixed type bundling issue
9cf991c Thanks @JReinhold! - Fixed type bundling issue#131 9cf991c Thanks @JReinhold! - Added run-story-tests tool that is available when:
@storybook/addon-vitest is configuredAdditionally, if @storybook/addon-a11y is configured, the tool returns accessibility violations too.
Updated dependencies [9cf991c]:
c0793d4 Thanks @kasperpeulen! - Add react-docgen-typescript support for component manifest parsing.Minor fixes and improvements.
c0793d4]:
#165 e088e05 Thanks @JReinhold! - Remove support for XML format.
The related option to configure XML vs markdown format now has no impact, the output is always formatted as markdown.
#140 f9fce2a Thanks @kasperpeulen! - Add multi-source composition with OAuth for private Storybooks
#165 e088e05 Thanks @JReinhold! - Remove support for XML format.
The related option to configure XML vs markdown format now has no impact, the output is always formatted as markdown.
#140 f9fce2a Thanks @kasperpeulen! - Add multi-source composition with OAuth for private Storybooks
#163 68cb213 Thanks @domazet93! - Fix preview-stories failing to find stories in monorepo packages directories.
Updated dependencies [e088e05, f9fce2a]:
Fixed regression so component‑attached MDX docs are rendered in markdown output for get-documentation.
#123 b7aeb40 Thanks @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-story tool.
#160 bab8ec9 Thanks @JReinhold! - Render component-attached MDX docs entries in markdown output for get-documentation.
This fixes a regression where docs attached to components via component.docs in components.json were not included in markdown responses. The markdown formatter now emits a ## Docs section below stories (and before props).
Fixed regression: component-attached MDX docs entries now appear in markdown output for `get-documentation`.
#141 03e957d Thanks @shilman! - Upgrade deprecated MCP server methods
#160 bab8ec9 Thanks @JReinhold! - Render component-attached MDX docs entries in markdown output for get-documentation.
This fixes a regression where docs attached to components via component.docs in components.json were not included in markdown responses. The markdown formatter now emits a ## Docs section below stories (and before props).
Updated dependencies [b7aeb40, bab8ec9]:
Fixed preview‑stories tool failing on Windows.
56be9e7 Thanks @valentinpalkovic! - Fix preview-stories tool on Windows457b349 Thanks @JReinhold! - Add support for MCP App, rendering stories directly in the agent chat in MCP clients that support it#118 bafbfc6 Thanks @valentinpalkovic! - Renamed tool get-ui-building-instructions to get-storybook-story-instructions to increase the likelihood of Agents calling the MCP tool.
Further updates:
get-storybook-story-instructions tool to give agents more information of when to call the MCP tool20d97e2 Thanks @JReinhold! - Fix disabled docs toolset in Storybook version prior to v10.2.0-alpha.100254c09 Thanks @JReinhold! - Add resultText to args of onListAllDocumentation and onGetDocumentationMinor fixes and improvements.
#122 0254c09 Thanks @JReinhold! - Log output token count of tool calls to telemetry
Updated dependencies [0254c09]:
#120 c1fc816 Thanks @JReinhold! - Add support for docs entries in manifests, sourced by MDX files.
This change introduces a number of minor breaking changes to @storybook/mcp:
addGetComponentDocumentationTool -> addGetDocumentationTooladdListAllComponentsTool -> addListAllDocumentationToolonListAllComponents -> onListAllDocumentationonGetComponentDocumentation -> onGetDocumentationMANIFEST_PATH constant have been removed in favor of two new constants, COMPONENT_MANIFEST_PATH and DOCS_MANIFEST_PATH#120 c1fc816 Thanks @JReinhold! - Add support for docs entries in manifests, sourced by MDX files.
Updated dependencies [c1fc816]:
#105 e27f6b2 Thanks @copilot-swe-agent! - Update Valibot to v1.2.0 to fix security vulnerabilities
Valibot 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.
#105 e27f6b2 Thanks @copilot-swe-agent! - Update Valibot to v1.2.0 to fix security vulnerabilities
Valibot 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]:
Minor fixes and improvements.
dce8c8d Thanks @JReinhold! - Improve visibility into which toolsets are available#54 5d18405 Thanks @JReinhold! - Replace the source property in the context with request.
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.json assuming the server is running at ./mcp. Your custom manifestProvider()-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).
#86 94c01d2 Thanks @JReinhold! - Docs toolset: output markdown instead of XML, configurable via experimentalOutput: 'markdown' | 'xml' addon option
#85 9f75d0f Thanks @JReinhold! - Allow undefined request in server context when using custom manifestProvider
#79 a9321a3 Thanks @JReinhold! - get-component-documentation now only handles one component at a time
#61 77536a7 Thanks @copilot-swe-agent! - rename examples to stories in manifest
#55 cddbf34 Thanks @JReinhold! - Support error.name in manifests
#78 f40da8f Thanks @copilot-swe-agent! - Add toolset to telemetry payload
#56 edcbf4e Thanks @JReinhold! - improve html bundling
#86 94c01d2 Thanks @JReinhold! - Docs toolset: output markdown instead of XML, configurable via experimentalOutput: 'markdown' | 'xml' addon option
#84 47ab165 Thanks @JReinhold! - improve handling of disableTelemetry option
#70 cf4ef86 Thanks @kasperpeulen! - Handle GET responses in the MCP server
#59 ed0fe09 Thanks @JReinhold! - Allow Storybook 10.1.0 prerelases as peer dependencies
Updated dependencies [94c01d2, 9f75d0f, 5d18405, a9321a3, 77536a7, cddbf34]:
#50 0334d29 Thanks @JReinhold! - Add GET handler that serves HTML when visiting /mcp, and redirects to human-readable component manifest when applicable
#50 0334d29 Thanks @JReinhold! - Update manifest format
Minor fixes and improvements.
#51 2028709 Thanks @paoloricciuti! - chore: update tmcp
#48 52be338 Thanks @JReinhold! - Add possibility to configure toolsets (dev tools vs docs tools) either via addon options or request headers
Updated dependencies [52be338, 2028709]:
#48 52be338 Thanks @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 2028709 Thanks @paoloricciuti! - chore: update tmcp
Minor fixes and improvements.
#42 57a1602 Thanks @JReinhold! - Log telemetry when the additional @storybook/mcp tools are called
#44 140ecc4 Thanks @JReinhold! - Support Storybook 9.1.16 and up
Updated dependencies [57a1602]:
57a1602 Thanks @JReinhold! - Add optional event handlers to the tool calls, so you can optionally run some functionality on all tool callsfc83cd1 Thanks @copilot-swe-agent! - include prop types in component documentation tool#36 93f88e4 Thanks @JReinhold! - Add support for Webpack (including Webpack-based frameworks like Next.js)
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 version 0.0.9 of this package.
EDIT: The above is not true anymore, see version 0.1.1 of this package.
#38 fc83cd1 Thanks @copilot-swe-agent! - include prop types in component documentation tool
Updated dependencies [fc83cd1]:
#35 4344744 Thanks @JReinhold! - Improve documentation around tool usage and setup
#35 373741b Thanks @JReinhold! - Specify that only Storybook 9 or above is supported
#32 531a2d4 Thanks @copilot-swe-agent! - Support passing in a custom manifestProvider option to the MCP server, falling back to fetch() as the default
#33 ae6ab44 Thanks @JReinhold! - Export tools to be merged into other MCP servers.
Currently only tmcp-based MCP servers supports using these tools directly.
#33 ae6ab44 Thanks @JReinhold! - Add tools to get documentation for components, based on the component manifest being generated in the Storybook dev server.
Requirements:
features.experimentalComponentsManifest is set to true in the main config.0.0.0-pr-32810-sha-af0645cd.Updated dependencies [531a2d4, ae6ab44]:
#31 512c958 Thanks @JReinhold! - use shared tsdown config for all monorepo packages, target node 20.19
#31 f660cfe Thanks @JReinhold! - change tool names
#31 a47e61d Thanks @JReinhold! - This release migrates the addon's MCP implementation from @modelcontextprotocol/sdk to tmcp.
Minor fixes and improvements.
512c958 Thanks @JReinhold! - use shared tsdown config for all monorepo packages, target node 20.19Minor fixes and improvements.
b448cd4 Thanks @JReinhold! - Add instructions on when to write stories#11 bba9b8c Thanks @JReinhold! - - Improved UI Building Instructions
#9 e5e2adf Thanks @JReinhold! - Add basic telemetry for sessions and tool calls
Minor fixes and improvements.
77d0779 Thanks @JReinhold! - Add initial readme contentBeta — feedback welcome: [email protected]