What is Google Stitch?
Google Stitch generates production-ready UI designs from natural language prompts or image inputs. It’s free (350 standard + 50 experimental generations/month) and requires only a Google account.Setup (Optional)
Use the/stitch-setup skill to set up the integration. It runs npx @_davideast/stitch-mcp init, which walks you through gcloud sign-in, project selection and enabling the Stitch API:
mcp_strict: true (Overdeck then launches them with
--strict-mcp-config). In that case, add Stitch to the project’s
mcp_servers instead; see Project MCP servers.
How It Works
When the Stitch MCP server is registered, agents can use it. Overdeck’s planning prompt does not mention Stitch, so ask the planning agent for a design when you want one. The flow:- Create UI designs - Generate screens for UI-related issues
- Record it in the PRD draft - Add the Stitch project/screen IDs to the issue’s PRD draft (
.pan/drafts/<issue>.md) - Work agents pick up designs - The work agent’s kickoff prompt includes the Stitch section and points it at
/stitch-react-components
Bidirectional Sync
Designs are stored in your Google account and sync bidirectionally:- MCP → Web UI: Designs created by agents appear in Stitch web UI
- Web UI → MCP: Designs created in web UI are accessible to agents
- Edit anywhere: Refine AI-generated designs in the web UI before workers convert them
Available MCP Tools
Stitch Skills
Recording designs in the PRD draft
When planning UI work, add a Stitch section to the issue’s PRD draft (.pan/drafts/<issue>.md). When the work agent starts, Overdeck copies the section headed ## UI Designs (or, failing that, ### Stitch Assets or ## Stitch) into the agent’s kickoff prompt:
Workflow: From Design to Code
1. Planning Phase
During issue planning, the planning agent can create designs:2. Implementation Phase
The implementation agent picks up the design:3. Iteration
If the design needs changes:- Open https://stitch.withgoogle.com
- Find your project and screen
- Edit using the visual tools
- Re-run
/stitch-react-componentsto get updated code
Manual Workflow (No MCP)
If you prefer not to set up the MCP:- Design at https://stitch.withgoogle.com
- Export HTML/CSS from the UI
- Give the exported files to the agent and ask it to convert them.
/stitch-react-componentsitself fetches designs through the Stitch MCP (get_screen), so it needs the MCP.
Best Practices
Design Quality
- Be specific in prompts - Include details about colors, spacing, and layout
- Use device types - Specify MOBILE or DESKTOP for appropriate layouts
- Iterate in the web UI - Fine-tune designs visually before converting
Code Quality
- Review generated code - AI-generated components may need cleanup
- Extract common components - Don’t duplicate similar UI elements
- Follow project conventions - Adapt generated code to match your style guide
Team Collaboration
- Share Stitch projects - Multiple team members can access the same designs
- Document decisions - Note why specific design choices were made in the PRD draft
- Version control DESIGN.md - Track design evolution alongside code changes
Troubleshooting
”Permission denied” errors
Make sure you’ve authenticated with gcloud:“API not enabled” errors
Enable the Stitch API:MCP not connecting
Verify the MCP is registered:stitch in the list.
Still stuck? Ask on the Overdeck Discord or file a GitHub Issue.
Related Guides
- Skills - Understanding Overdeck skills
- Quickstart - Initial setup
- Concepts - Core Overdeck concepts