Atlas / MCP servers / southleft / Story UI

Story UIBLOCK

mcp/southleft/story-ui

AI-powered Storybook story generator — works with any framework, any design system, any LLM provider

Verdict
BLOCK
Grade
F
Trust score
54 /100
Exposed tools
21 18r · 2w · 1d
Transport
sse · stdio · streamable-http
License
MIT
Stars
234
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://www.npmjs.com/package/@tpitre/story-ui) [](LICENSE)

Design screens in your own design system, by describing them.

Story UI adds a workspace to the Storybook you already have. You type what you want — "a settings page with a sidebar and a sticky save bar" — and it writes a real Storybook story using the components your team actually ships. The result appears in Storybook's own preview, with your providers, your theme and your tokens. It is not a mockup and not a sandbox. It is a file in your repository that a developer can open, review and keep.

Why it exists

Design systems are full of components that nobody has time to assemble into real screens. So exploration happens in a design tool, in a vocabulary the code does not share, and every idea has to be rebuilt before anyone can judge it.

Story UI closes that gap from the other side.

  • It only uses what you have. Components are discovered from your project:

the package's type declarations, your local source, and Storybook's own index. It cannot invent a component you do not own, and every prop is checked against that component's real type.

  • It composes, so you can judge. Buttons and cards in isolation tell you

nothing. Whole screens do.

  • The output is real work. Every generation is a .stories.tsx file in

your repository, in your Storybook, ready for a pull request.

  • It checks itself before you see it. Each story is rendered in a real

browser and measured — content inside its box, nothing overlapping, nothing blank, nothing broken — and generated again if it fails. See How Story UI checks its own work.

**

Read from source at commit c8c62f93525eOBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add story-ui --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env CLAUDE_API_KEY=${CLAUDE_API_KEY} --env GEMINI_API_KEY=${GEMINI_API_KEY} --env GOOGLE_API_KEY=${GOOGLE_API_KEY} -- npx -y @tpitre/[email protected]
claude-desktop
{
  "mcpServers": {
    "story-ui": {
      "command": "npx",
      "args": [
        "-y",
        "@tpitre/[email protected]"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
        "CLAUDE_API_KEY": "${CLAUDE_API_KEY}",
        "GEMINI_API_KEY": "${GEMINI_API_KEY}",
        "GOOGLE_API_KEY": "${GOOGLE_API_KEY}"
      }
    }
  }
}
03

Exposed tools (21)

18 read · 2 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
Alertread
ButtonreadInteractive button
CardreadContainer for grouped content
CheckboxreadCheckbox input
InputreadText input field
SimpleGridreadLays children out in columns
StackreadStacks children vertically
TextreadBody text
TilereadTile component from Housekit
TitlereadA heading
delete-storydestructiveDelete a generated story
generate-storyreadGenerate a Storybook story from a natural language prompt
get-component-propsreadGet detailed prop information for a specific component
get-storyreadGet the content of a specific generated story
left-padreadString left pad
list-componentsreadList all available components that can be used in stories
list-storiesreadList all generated stories
pictoswriteA glyph set
test-connectionreadTest if MCP connection is working
themereadGlobal theme
update-storywriteUpdate an existing Storybook story with modifications. If no storyId is provided, I
04

Trust audit

BLOCKgrade F · trust 54/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
declared (8 observation(s))
Shell
declared (10 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (25)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
mcp-server/routes/canvasGenerate.ts:452
{ pattern: /\beval\s*\(/g,             label: 'eval()',               replacement: '/* [sanitized: eval] */void(' },
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
mcp-server/routes/canvasGenerate.ts:453
{ pattern: /\bnew\s+Function\s*\(/g,   label: 'new Function()',       replacement: '/* [sanitized: new Function] */void(' },
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
story-generator/dynamicPackageDiscovery.ts:173
const dynamicImport = new Function('specifier', 'return import(specifier)');
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
templates/StoryUIV2/elementTargeting.ts:476
const componentFrom = eval(`(${componentFromMarkupSrc})`);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
templates/StoryUIV2/elementTargeting.ts:479
const orderCandidates = eval(`(${orderCandidatesSrc})`);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMInventory / provenance · inv.binary · CWE-1104
story-generator/fileAttachments.ts
fileAttachments.ts
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
bench/smoke.mjs:973
health = await fetch(`http://127.0.0.1:${spec.split(':')[1]}/health`, { signal: AbortSignal.timeout(4000) }).then(r => r.ok).catch(() => false);
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
bench/smoke.mjs:974
index = await fetch(`http://127.0.0.1:${spec.split(':')[2]}/index.json`, { signal: AbortSignal.timeout(8000) }).then(r => r.ok).catch(() => false);
MEDIUMObfuscation / stealth · obf.zero_width · CWE-506, CWE-94
story-generator/storyValidator.ts:64
.replace(/[\s]/g, '');
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete-story
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.env.sample
.env.sample
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.releaserc
.releaserc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
mcp-server/routes/generationCore.ts:374
?? crypto.createHash('sha1').update(result.fileName).digest('hex').slice(0, 8);
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
mcp-server/routes/generationCore.ts:1832
`fallback-${crypto.createHash('sha1').update(`${prompt}${startedAt}`).digest('hex').slice(0, 8)}`,
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
mcp-server/routes/generationCore.ts:1890
hash = hashMatch ? hashMatch[1] : crypto.createHash('sha1').update(prompt).digest('hex').slice(0, 8);
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
mcp-server/routes/generationCore.ts:1893
hash = hashMatch ? hashMatch[1] : crypto.createHash('sha1').update(prompt).digest('hex').slice(0, 8);
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
mcp-server/routes/generationCore.ts:1899
hash = crypto.createHash('sha1').update(prompt + timestamp).digest('hex').slice(0, 8);
LOWFilesystem / path · fs.system_paths · CWE-22, CWE-59
__tests__/story-file-name.test.ts:27
'/etc/passwd',
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
__tests__/canvas-scope-and-versions.test.ts:45
Button: { specifier: '../../components/Button/Button', defaultExport: false },
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
__tests__/canvas-scope-and-versions.test.ts:46
Card: { specifier: '../../components/Card/Card', defaultExport: false },
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
__tests__/canvas-scope-and-versions.test.ts:47
CardHeader: { specifier: '../../components/Card/Card', defaultExport: false },
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
__tests__/canvas-scope-and-versions.test.ts:51
"import { Button } from '../../components/Button/Button';",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
__tests__/canvas-scope-and-versions.test.ts:52
"import { Card, CardHeader } from '../../components/Card/Card';",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
__tests__/integration/active-generations.test.ts:66
process.env.STORYBOOK_URL = 'http://127.0.0.1:1';
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
__tests__/integration/generation-pipeline.test.ts:103
process.env.STORYBOOK_URL = 'http://127.0.0.1:1';

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha c8c62f93525efull audit observations/trust-audit/mcp-server/southleft__story-ui.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-12c8c62f93525eBLOCKF54first audit
06

Questions

What is the @tpitre/story-ui MCP server?

AI-powered Storybook story generator — works with any framework, any design system, any LLM provider

What tools does @tpitre/story-ui expose?

21 in total: 18 read-only, 2 that write, and 1 that can delete or overwrite (delete-story). Every one is listed on this page with its risk.

Is @tpitre/story-ui safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (54/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does @tpitre/story-ui need?

It reads ANTHROPIC_API_KEY, CLAUDE_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, OPENAI_API_KEY and TYPESAFE_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does @tpitre/story-ui run?

It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @tpitre/story-ui at 5.21.2.

How current is this page?

The grade is for one exact copy of the source (c8c62f93525e), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement