Replies: 2 comments
|
I would treat the MCP endpoint as versioned with the Storybook build, not as a single global service. The addon exposes the currently running Storybook's component data at that instance's MCP path ( For your example, publish or run separate Storybooks for {
"mcpServers": {
"my-ds-storybook": {
"type": "http",
"url": "https://storybook-for-1-3-0.example.com/mcp"
}
}
}If you use Chromatic, that means separate version/release Storybook URLs rather than one main-branch URL. A custom endpoint path can rename |
|
I’d version the MCP endpoint alongside the package and build Storybook from the same release tag. For example: Each consumer should pin its MCP configuration to the same design-system version it uses. Avoid pointing consumers at a floating A single gateway could route versioned paths to separate Storybook builds, but changing the |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Hey 🙂 I have a question regarding MCP.
Let's say I have a design system, single package published on NPM.
I have 2 consumers, each using a different version of my design system, let's say:
consumer A uses @my-ds@1.3.0
consumer C uses the newly released @my-ds@2.0.0
My issue is I have a single chromatic instance of my storybook matching my main branch (let's say latest npm version). It means that for an AI agent used by a developer from consumer A, the MCP will have context that is NOT supposed to be available to it, but only to consumer B (using the latest version).
How do we manage that ?
Additional information
No response
Create a reproduction
No response
All reactions