stitch-setup
Skill45 starsChanged 8 months agoApache-2.0View on GitHub
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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- stitch-a11ySkill
- stitch-animateSkill
- stitch-design-mdSkill
- stitch-design-systemSkill
- stitch-html-componentsSkill
- stitch-ideateSkill
- stitch-loopSkill
- stitch-mcp-apply-design-systemSkill
- stitch-mcp-create-design-system-from-design-mdSkill
- stitch-mcp-create-design-systemSkill
- stitch-mcp-create-projectSkill
- stitch-mcp-delete-projectSkill
- stitch-mcp-edit-screensSkill
- stitch-mcp-generate-screen-from-textSkill
- stitch-mcp-generate-variantsSkill
- stitch-mcp-get-projectSkill
- stitch-mcp-get-screenSkill
- stitch-mcp-list-design-systemsSkill
- stitch-mcp-list-projectsSkill
- stitch-mcp-list-screensSkill
- stitch-mcp-update-design-systemSkill
- stitch-mcp-upload-design-mdSkill
- stitch-nextjs-componentsSkill
- stitch-orchestratorSkill
- stitch-react-componentsSkill
- stitch-react-native-componentsSkill
- stitch-remotionSkill
- stitch-shadcn-uiSkill
- stitch-skill-creatorSkill
- stitch-svelte-componentsSkill
- stitch-swiftui-componentsSkill
- stitch-ued-guideSkill
- stitch-ui-design-spec-generatorSkill
- stitch-ui-design-variantsSkill
- stitch-ui-prompt-architectSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Run list_tools (or check the tool list).
- Very specific: line 92
Create or edit .cursor/mcp.json:
- Very specific: line 136
After adding, restart the client and run list_tools.
- Very specific: line 147
All 34 skills in one command.
- Distinctive: line 153
Run the orchestrator to confirm everything works:
- Distinctive: line 168
If this completes, you're fully set up.
- Distinctive: line 193
If you're behind a corporate proxy or VPN, ensure these domains are allowed.
- Distinctive: line 199
If you cannot configure Stitch MCP, the orchestrator still works in prompt-only mode:
- Distinctive: line 201
Instead of generating the screen, it outputs a ready-to-copy Stitch prompt
- Distinctive: line 211
If you can't store API keys on disk, Stitch supports OAuth via Google Cloud:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
stitch-kit Setup Guide
Walks users through two setup tasks:
- Stitch MCP Server — connect your AI client to Google Stitch's remote generation API
- 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_projectgenerate_screen_from_textget_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.
- Go to stitch.withgoogle.com/settings
- Scroll to the API Keys section
- Click "Create API Key"
- 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 userOr 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-kitManual 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-kitAll 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:
stitch-orchestratoractivates- It runs
list_toolsand finds Stitch MCP tools - It generates a Design Spec
- It creates a project via
create_project - It generates a screen via
generate_screen_from_text - It retrieves the screen via
get_screen - It asks you which framework to convert to
If this completes, you're fully set up.
Troubleshooting
| 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 |
Network requirements
Stitch MCP makes outbound requests to:
stitch.googleapis.com— remote MCP serverstorage.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-IDThen 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
- Official Stitch MCP setup: https://stitch.withgoogle.com/docs/mcp/setup
- Plugin repo: https://github.com/gabelul/stitch-kit
- Skills index:
docs/skills-index.md - MCP tool reference:
docs/mcp-naming-convention.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

