HomeBrowseUpload
โ† Back to registry
โšก
// Skill profile

๐Ÿ›ก๏ธ N2 Stitch MCP โ€” Resilient Proxy Skill

name: n2-stitch-mcp

by choihyunsus ยท published 2026-03-22

ๅผ€ๅ‘ๅทฅๅ…ทAPI้›†ๆˆๅŠ ๅฏ†่ดงๅธ
Total installs
0
Stars
โ˜… 0
Last updated
2026-03
// Install command
$ claw add gh:choihyunsus/choihyunsus-n2-stitch-mcp
View on GitHub
// Full documentation

---

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

user-invocable: true

---

# ๐Ÿ›ก๏ธ 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)

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

# Option B: API Key
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

  • NPM: https://www.npmjs.com/package/n2-stitch-mcp
  • GitHub: https://github.com/choihyunsus/n2-stitch-mcp
  • Website: https://nton2.com
  • ---

    *Part of the N2 AI Body series โ€” Building the Body for AI*

    // Comments
    Sign in with GitHub to leave a comment.
    // Related skills

    More tools from the same signal band