Installation

clawhub install choihyunsus/n2-stitch-mcp

Summary

Never lose a screen generation again. The only Stitch MCP proxy with TCP drop recovery .

SKILL.md

πŸ›‘οΈ 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.

text
Other MCP servers:  Request β†’ 60s β†’ TCP drop β†’ ❌ LOST!
N2 Stitch MCP:      Request β†’ 60s β†’ TCP drop β†’ πŸ›‘οΈ Auto-recovery β†’ βœ… Delivered!

Why This One?

FeatureOthersN2 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)

bash
# Option A: gcloud (recommended)
gcloud auth application-default login

# Option B: API Key
export STITCH_API_KEY="your-key"

2. Add to MCP Config

json
{
  "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

Recommended skills

Browse all β†’

Related guides

Hand-picked reading to help you choose, install, and use agent skills.