Skip to content
cccskills
FreePublished on GitHub

stitch-setup

Step-by-step installer for the stitch-kit plugin and Stitch MCP server. Use this when setting up the plugin for the first time, diagnosing connection issues, or helping a new user get Stitch running in Claude Code or Codex CLI.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md6.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

stitch-kit Setup Guide

Walks users through two setup tasks:

  1. Stitch MCP Server — connect your AI client to Google Stitch's remote generation API
  2. stitch-kit Plugin — install the skills that orchestrate the Stitch workflow

When to use this skill

  • User says "how do I set this up", "it's not working", "Stitch isn't available"
  • Agent can't find Stitch MCP tools after running list_tools
  • First-time setup in a new environment

Step 1: Verify what's already installed

Run list_tools (or check the tool list). Look for any of:

  • create_project
  • generate_screen_from_text
  • get_screen

If found: Stitch MCP is working. Skip to Step 4 (plugin install). If not found: Continue with MCP setup below.


Step 2: Get a Stitch API Key

Stitch MCP is a remote HTTP server — it lives in the cloud at stitch.googleapis.com, not on your machine. It requires an API key to authenticate.

  1. Go to stitch.withgoogle.com/settings
  2. Scroll to the API Keys section
  3. Click "Create API Key"
  4. Copy the key — you'll need it in the next step

Never commit your API key to a public repository. Store it securely.


Step 3: Configure Stitch MCP

Claude Code

Using the CLI (recommended):

claude mcp add stitch --transport http https://stitch.googleapis.com/mcp \
  --header "X-Goog-Api-Key: YOUR-API-KEY" -s user

Or add to ~/.claude/settings.json manually:

{
  "mcpServers": {
    "stitch": {
      "type": "http",
      "url": "https://stitch.googleapis.com/mcp",
      "headers": {
        "X-Goog-Api-Key": "YOUR-API-KEY"
      }
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.stitch]
url = "https://stitch.googleapis.com/mcp"

[mcp_servers.stitch.headers]
X-Goog-Api-Key = "YOUR-API-KEY"

Cursor

Create or edit .cursor/mcp.json:

{
  "mcpServers": {
    "stitch": {
      "url": "https://stitch.googleapis.com/mcp",
      "headers": {
        "X-Goog-Api-Key": "YOUR-API-KEY"
      }
    }
  }
}

VS Code

Open Command Palette → "MCP: Add Server" → HTTP → https://stitch.googleapis.com/mcp → name: "stitch". Then edit the generated mcp.json to add the header:

{
  "servers": {
    "stitch": {
      "url": "https://stitch.googleapis.com/mcp",
      "type": "http",
      "headers": {
        "Accept": "application/json",
        "X-Goog-Api-Key": "YOUR-API-KEY"
      }
    }
  }
}

Quick install (all platforms)

Or use the NPX installer — it prompts for the API key and configures everything:

npx @booplex/stitch-kit

Manual verification

After adding, restart the client and run list_tools. You should see tools like create_project, generate_screen_from_text, get_screen, etc.


Step 4: Install stitch-kit plugin (Claude Code)

/plugin marketplace add https://github.com/gabelul/stitch-kit.git
/plugin install stitch-kit@stitch-kit

All 34 skills in one command. The stitch-kit agent is included — it shows up automatically after restart.


Step 5: Verify the full setup

Run the orchestrator to confirm everything works:

"Use Stitch to design a simple login screen"

Expected behavior:

  1. stitch-orchestrator activates
  2. It runs list_tools and finds Stitch MCP tools
  3. It generates a Design Spec
  4. It creates a project via create_project
  5. It generates a screen via generate_screen_from_text
  6. It retrieves the screen via get_screen
  7. It asks you which framework to convert to

If this completes, you're fully set up.


Troubleshooting

SymptomLikely causeFix
list_tools doesn't show Stitch toolsMCP not configured or client not restartedRedo Step 3; restart your client
"Unauthenticated" or 401 errorAPI key invalid or expiredGenerate a new key at stitch.withgoogle.com/settings
create_project fails with 403Account doesn't have Stitch accessVisit stitch.withgoogle.com and request access
generate_screen_from_text returns emptyBad prompt or project ID formatUse stitch-mcp-generate-screen-from-text skill — it includes ID format rules
get_screen returns 404Wrong ID formatprojectId and screenId must be numeric only — no projects/ prefix
Generated HTML won't downloadGCS URL expired or requires redirectsUse bash scripts/fetch-stitch.sh "[url]" "temp/output.html"
Plugin not activatingWrong install command or repo URLVerify you used @stitch-kit — not @stitch-pro or @stitch-skills

Network requirements

Stitch MCP makes outbound requests to:

  • stitch.googleapis.com — remote MCP server
  • storage.googleapis.com — file downloads (HTML, screenshots)
  • accounts.google.com — OAuth (if using OAuth instead of API key)

If you're behind a corporate proxy or VPN, ensure these domains are allowed.


Offline / no-MCP mode

If you cannot configure Stitch MCP, the orchestrator still works in prompt-only mode:

  • Steps 1–3 run normally (spec generation, prompt assembly)
  • Instead of generating the screen, it outputs a ready-to-copy Stitch prompt
  • You paste that prompt at stitch.withgoogle.com manually
  • Then you can still use the conversion skills on the downloaded HTML

Authentication alternatives

OAuth (for restricted environments)

If you can't store API keys on disk, Stitch supports OAuth via Google Cloud:

gcloud auth login
gcloud auth application-default login
gcloud config set project YOUR-PROJECT-ID
gcloud beta services mcp enable stitch.googleapis.com --project=YOUR-PROJECT-ID

Then use Bearer token auth instead of API key. See full OAuth guide.

Note: OAuth tokens expire hourly and need manual refresh. API keys are simpler for most users.


References

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus management, and screen reader support.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects prefers-reduced-motion.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and Stitch-ready prompt snippets. Use this before stitch-loop or any multi-page build to establish design consistency.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic design system document. Run this before framework conversion skills.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

Converts a Stitch screen, a local HTML file, or a URL into clean, platform-agnostic HTML5 + CSS — semantic markup, CSS custom properties for theming, dark mode via prefers-color-scheme, mobile-first responsive, zero framework dependencies. Works in browsers, WebViews, Capacitor, and Ionic. Only the Stitch route needs an API key.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich PRD document and auto-generates Stitch screens. Your design buddy that thinks deeply before designing.

The English summary is being prepared. Showing the original description.

gabelul/stitch-kit45Updated Jul 21, 2026

See all skills by gabelul

Report a problem with this skill