| name | n2-stitch-mcp |
| description | Resilient MCP proxy for Google Stitch โ 3-layer safety (auto-retry, token refresh, TCP drop recovery). |
| homepage | https://nton2.com |
๐ก๏ธ N2 Stitch MCP โ Resilient Proxy Skill
Never lose a screen generation again. The only Stitch MCP proxy with TCP drop recovery.
The Problem
Google Stitch's generate_screen_from_text takes 2โ10 minutes, but the API drops TCP after ~60 seconds.
Other MCP servers: Request โ 60s โ TCP drop โ โ LOST!
N2 Stitch MCP: Request โ 60s โ TCP drop โ ๐ก๏ธ Auto-recovery โ โ
Delivered!
Why This One?
| Feature | Others | N2 Stitch MCP |
|---|
| TCP Drop Recovery | โ | โ
Auto-polling |
| Generation Tracking | โ | โ
generation_status |
| Exponential Backoff | โ | โ
3x retry + jitter |
| Auto Token Refresh | โ ๏ธ | โ
Background refresh |
| Test Suite | โ | โ
35 tests |
Quick Setup
1. Authenticate (one-time)
gcloud auth application-default login
export STITCH_API_KEY="your-key"
2. Add to MCP Config
{
"mcpServers": {
"n2-stitch": {
"command": "npx",
"args": ["-y", "n2-stitch-mcp"]
}
}
}
Available Tools
Stitch API (auto-discovered)
- create_project โ Create a Stitch project
- list_projects โ List all projects
- get_project โ Get project details
- list_screens โ List screens in a project
- get_screen โ Get screen HTML/CSS
- generate_screen_from_text โ โจ Generate UI from text (Resilient!)
- edit_screens โ Edit existing screens
- generate_variants โ Generate design variants
Virtual Tools (N2 Exclusive)
- generation_status โ Check generation progress in real-time
- list_generations โ List all tracked generations
Links
Part of the N2 AI Body series โ Building the Body for AI