From qe-framework
Guides setup and configuration of Google Stitch MCP for Claude Code, including authentication with API key or gcloud, and troubleshooting connection issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/qe-framework:Qstitch-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is a **setup and configuration guide only**. It does NOT execute Stitch operations.
This skill is a setup and configuration guide only. It does NOT execute Stitch operations.
| Request | Action |
|---|---|
| "Set up Stitch", "Connect Stitch MCP" | This skill — guide setup |
| "Create screen", "Draw design" | NOT this skill — use Stitch MCP tools directly |
claude mcp list 2>/dev/null | grep -i stitch
AI UI design tool (stitch.withgoogle.com) that converts text/images into HTML/CSS via Gemini 2.5.
| Feature | Detail |
|---|---|
| Input | Text prompts, wireframes, screenshots |
| Output | HTML/CSS code + visual preview |
| Models | Gemini 2.5 Flash (350/mo), Pro (50/mo) |
| Package | Auth | Best For |
|---|---|---|
@_davideast/stitch-mcp | API Key or gcloud | General dev (recommended) |
stitch-mcp | gcloud ADC | CI/automation, auto token refresh |
Official Remote MCP requires hourly manual token refresh — not recommended.
@_davideast/stitch-mcp (Recommended)1. Prerequisites: Node.js 18+, gcloud CLI (optional for gcloud auth)
2. Auth Setup:
npx @_davideast/stitch-mcp init # interactive: choose API Key, gcloud, or Access Token
npx @_davideast/stitch-mcp doctor # verify setup
3. Add to Claude Code:
# API Key
claude mcp add stitch -e STITCH_API_KEY=your-key -- npx @_davideast/stitch-mcp proxy
# gcloud
claude mcp add stitch -e STITCH_USE_SYSTEM_GCLOUD=1 -- npx @_davideast/stitch-mcp proxy
Or edit ~/.claude.json:
{
"mcpServers": {
"stitch": {
"command": "npx",
"args": ["@_davideast/stitch-mcp", "proxy"],
"env": { "STITCH_API_KEY": "your-api-key" }
}
}
}
stitch-mcp (gcloud ADC)1. gcloud Auth:
gcloud auth login
gcloud config set project YOUR_PROJECT_ID
gcloud auth application-default set-quota-project YOUR_PROJECT_ID
gcloud beta services mcp enable stitch.googleapis.com
gcloud auth application-default login
2. Add to Claude Code:
claude mcp add stitch -e GOOGLE_CLOUD_PROJECT=your-project-id -- npx -y stitch-mcp
npx -p stitch-mcp-auto stitch-mcp-auto-setup # Claude Code + Gemini CLI + Codex CLI
@_davideast/stitch-mcp| Tool | Description |
|---|---|
build_site | Map screens to routes, generate full site HTML |
get_screen_code | Get screen HTML/CSS |
get_screen_image | Get screen screenshot (base64) |
stitch-mcp (9 tools)| Tool | Description |
|---|---|
list_projects / get_project / create_project | Project management |
list_screens / get_screen | Screen listing/metadata |
fetch_screen_code / fetch_screen_image | Get code or screenshot |
generate_screen_from_text | Create screen from text prompt |
extract_design_context | Extract fonts, colors, layout |
@_davideast/stitch-mcp)npx @_davideast/stitch-mcp init # auth setup
npx @_davideast/stitch-mcp doctor # verify config
npx @_davideast/stitch-mcp logout # revoke auth
npx @_davideast/stitch-mcp screens -p <project-id> # list screens
npx @_davideast/stitch-mcp serve -p <project-id> # local preview (Vite)
npx @_davideast/stitch-mcp site -p <project-id> # generate Astro project
npx @_davideast/stitch-mcp proxy # MCP proxy for Claude Code
claude mcp list # confirm stitch server present
claude mcp get stitch # check config details
Restart Claude Code session to activate MCP tools.
| Issue | Solution |
|---|---|
doctor fails | Re-run init or check API Key |
| Token expired (A) | Re-run init |
| Token expired (B) | gcloud auth application-default login |
| Tools not visible | Restart Claude Code session |
stitch.googleapis.com error | gcloud beta services mcp enable stitch.googleapis.com |
| Node.js version error | Install Node.js 18+ |
Stitch designs can be used as the design foundation for Qfrontend-design:
Stitch design complete → Qfrontend-design Step 0-S → create design-context.md → apply to Tailwind config → implement → use Agentation for revisions
When invoking Qfrontend-design with a Stitch project, Step 0-S automatically extracts colors, fonts, spacing, and other design tokens from Stitch screens into design-context.md, which becomes the source of truth for implementation.
npx claudepluginhub inho-team/qe-framework --plugin qe-frameworkCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.