new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Storybook · all subjects

essential addons

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Import INITIAL_VIEWPORTS from storybook/viewport

The INITIAL_VIEWPORTS constant is imported from 'storybook/viewport' to configure available viewports for stories.

Viewport parameter key differs by renderer

The React, Angular, Svelte, Vue, and Web Components renderers use parameters.viewport.options. The Solid renderer uses parameters.viewport.viewports. This sets available viewports for every story in the file.

@storybook/addon-mcp options configuration

The @storybook/addon-mcp addon accepts options to configure the tools provided by the MCP server. These options are provided when registering the addon in main.js|ts file. The main option is toolsets, which is a configuration object with boolean flags for dev, docs, and test toolsets.

MCP addon toolsets option type and defaults

The toolsets option has type { dev?: boolean; docs?: boolean; test?: boolean; } with default values { dev: true, docs: true, test: true }. This configuration object toggles which toolsets are enabled in the MCP server, with all toolsets enabled by default.

MCP dev toolset includes stories-changed, get-storybook-story-instructions, stories-preview, stories-find-by-component, and review-create tools

The dev toolset (default: true) includes the stories-changed, get-storybook-story-instructions, stories-preview, stories-find-by-component, and review-create tools when their feature requirements are enabled.

MCP docs toolset includes docs-show, docs-show-story, and docs-list tools

The docs toolset (default: true) includes the docs-show, docs-show-story, and docs-list tools when a components manifest is generated for your framework.

MCP test toolset includes test-run tool

The test toolset (default: true) includes the test-run tool when @storybook/addon-vitest is installed and enabled.

Give your agent this brain