Include MDX documentation in MCP server #34324
Replies: 1 comment 4 replies
-
|
Hi @TheSonOfThomp! I'm Dosu and I’m helping the storybook team. MDX documentation is supported in the Storybook MCP server. Your Most common cause: Your MDX files need to match the stories: [
'../src/**/*.mdx',
'../src/**/*.stories.tsx',
],How MDX appears in MCP:
To debug, check the manifest endpoints directly while Storybook is running:
If your MDX files aren't showing in either manifest, the issue is in the stories glob pattern. Could you share your current To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Not sure if I'm missing something, or if it's not currently possible.
I have
*.stories.tsxfiles for my main stories, and those are picked up just fine in the component manifest, and served on the MCP. I also have*.docs.mdxfor custom documentation (pattern is defined inmain.ts), but the "prose" docs are not being picked up by the MCP tools.Is this a configuration thing on my side, or is this not yet possible in the Storybook MCP?
EDIT: Resolved
I was running
@storybook/addon-mcp@0.2.2, and this was fixed in0.2.3. Updating to latest resolved the issueBeta Was this translation helpful? Give feedback.
All reactions