Skip to main content
Glama
Stitch MCP Server

Stitch MCP Server

Export to Storybook

stitch_to_storybook
Idempotent

Export a Stitch project to Storybook: generates one component file and one story file per screen for your target framework, plus a minimal .storybook/ configuration.

Instructions

Export a Stitch project to Storybook stories for a given framework (react, nextjs, vue, nuxt, svelte, sveltekit). Writes one component file + one story file per screen, plus a minimal .storybook/ configuration.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>"
    },
    "name": "stitch_to_storybook"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNoOutput directory for stories and components./stitch-stories
frameworkNoTarget framework for the Storybook storiesreact
projectIdYesStitch project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=true, and openWorldHint=false, so the write/isolation profile is covered. The description does add useful footprint detail — one component file plus one story file per screen and a .storybook/ config — but says nothing about overwriting existing files, whether .storybook/ is merged or replaced, or what the call returns. That is meaningful value beyond annotations, but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the action and target, then the concrete file-level effects. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter file-writing export with no output schema, the description covers what gets written and where the .storybook/ config goes, which is the essential behavior. The main gap is the return value and overwrite semantics, but annotations and the schema carry most of the remaining load.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so projectId, output, and framework are all documented with defaults and an enum. The description merely restates the framework enum values already present in the schema and never mentions the output directory parameter, adding no new semantic depth.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (export a Stitch project to Storybook stories) plus the framework dimension, so the agent knows exactly what it produces. It does not differentiate from the sibling stitch_export_framework, which a reader might reasonably confuse with this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the output but never says when to choose this tool over stitch_export_framework or the other export/generate siblings, and lists no prerequisites (e.g. whether screens must already be generated or synced). Usage must be inferred from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.