๐ก๏ธ N2 Stitch MCP โ Resilient Proxy Skill
name: n2-stitch-mcp
by choihyunsus ยท published 2026-03-22
$ claw add gh:choihyunsus/choihyunsus-n2-stitch-mcp---
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)
Virtual Tools (N2 Exclusive)
Links
---
*Part of the N2 AI Body series โ Building the Body for AI*
More tools from the same signal band
Order food/drinks (็น้ค) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...