stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
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.
$ npx -y skills add gabelul/stitch-kit --skill stitch-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-setupContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
name: stitch-setup description: 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. allowed-tools: - "Bash" - "Read" - "Write"
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
---
---
Run `list_tools` (or check the tool list). Look for any of:
**If found:** Stitch MCP is working. Skip to Step 4 (plugin install). **If not found:** Continue with MCP setup below.
---
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](https://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.
---
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"
}
}
}
}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"
Create or edit `.cursor/mcp.json`:
{
"mcpServers": {
"stitch": {
"url": "https://stitch.googleapis.com/mcp",
"headers": {
"X-Goog-Api-Key": "YOUR-API-KEY"
}
}
}
}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"
}
}
}
}Or use the NPX installer — it prompts for the API key and configures everything:
npx @booplex/stitch-kit
After adding, restart the client and run `list_tools`. You should see tools like `create_project`, `generate_screen_from_text`, `get_screen`, etc.
---
/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.
---
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.
---
| Symptom | Likely cause | Fix | |---------|-------------|-----| | `list_tools` doesn't show Stitch tools | MCP not configured or client not restarted | Redo Step 3; restart your client | | "Unauthenticated" or 401 error | API key invalid or expired | Generate a new key at stitch.withgoogle.com/settings | | `create_project` fails with 403 | Account doesn't have Stitch access | Visit stitch.withgoogle.com and request access | | `generate_screen_from_text` returns empty | Bad prompt or project ID format | Use `stitch-mcp-generate-screen-from-text` skill — it includes ID format rules | | `get_screen` returns 404 | Wrong ID format | **projectId and screenId must be numeric only** — no `projects/` prefix | | Generated HTML won't download | GCS URL expired or requires redirects | Use `bash scripts/fetch-stitch.sh "[url]" "temp/output.html"` | | Plugin not activating | Wrong install command or repo URL | Verify you used `@stitch-kit` — not `@stitch-pro` or `@stitch-skills` |
---
Stitch MCP makes outbound requests to:
If you're behind a corporate proxy or VPN, ensure these domains are allowed.
---
If you cannot configure Stitch MCP, the orchestrator still works in **prompt-only mode**:
---
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-P
Your coding agent writes decent code and designs terrible UI. stitch-kit fixes the second half — it wires agents into Google Stitch (text prompts → genuinely beautiful screens) and teaches them to drive it properly.
Repo: gabelul/stitch-kit
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects…
Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and…
Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic…
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…
Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich…