プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Stitch Native

作者:rafaelcsan705バージョン 0.7.2i★ 0iパソコンで動くリポジトリ ↗

インストール方法

できること

Convert Google Stitch screens (HTML + Tailwind) to SwiftUI, Jetpack Compose and HTML.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ ウェブ・ブラウザ

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

last30days-skill

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

作者:mvanhorn★ 74,3801 個の skill

Skill · 手順書

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6811 個の skill

Skill · 手順書

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6271 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Stitch Native をインストールして。https://mcp.popnx.com/i/rafaelcsan705-stitch-native.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月26日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Stitch Native を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stitch Native のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "stitch-native": {
          "command": "uvx",
          "args": [
            "stitch-native"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Stitch Native を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Stitch Native を使っていると言うか、回答に Stitch Native のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Stitch Native につなげません

Stitch Native はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Stitch Native につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · ウェブ・ブラウザ の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Stitch Native を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user stitch-native -- uvx stitch-native 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stitch Native のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user stitch-native -- uvx stitch-native
  4. Claude Code で /mcp と入力

    Stitch Native が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Stitch Native を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Stitch Native を使っていると言うか、回答に Stitch Native のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Stitch Native を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stitch Native のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Stitch Native を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Stitch Native を使っていると言うか、回答に Stitch Native のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Stitch Native を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "stitch-native": { "type": "stdio", "command": "uvx", "args": [ "stitch-native" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Stitch Native のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Stitch Native を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Stitch Native を使っていると言うか、回答に Stitch Native のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Stitch Native を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user stitch-native -- uvx stitch-native

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "stitch-native": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

レジストリ名
io.github.rafaelcsan705/stitch-native
週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.7.2
レジストリ公開日i
2026年11月26日
コードの最終更新i
2026年11月26日
作者
rafaelcsan705
パッケージ
pypi: stitch-native
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント rafaelcsan705 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:今日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/rafaelcsan705-stitch-native.svg)](https://mcp.popnx.com/en/servers/rafaelcsan705-stitch-native)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

ウェブ・ブラウザのほかのサーバーとの比較i

  • このカテゴリのほかの1790件のうち0%よりスターが多い
  • このカテゴリのほかの1790件のうち99%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1790件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Stitch Nativeは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は今日、最新バージョン(0.7.2)がレジストリに届いたのは今日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Browser Use, changedetection.io (official), Apify, Pomerado, Actionbook

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Browser Use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

作者:browser-use広く使われている↓ 167.3万/週★ 12.2万36 日前更新

すぐ接続できる(URL あり)ツール 7 個 · 軽め✓ 提供元 · browser-use.com

Apify

Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡

作者:apify広く使われている★ 1.8万一昨日更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · apify.com

Pomerado

Connect your agents to any website. The cheaper, faster and more reliable alternative to browser use

作者:Pomerado成長中★ 18238 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · pomerado.ai

Actionbook

Let your AI agent operate any website through a real, logged-in browser session.

作者:actionbook成長中★ 163338 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · actionbook.app
似たものと比べる
これ
Stitch Native
Browser Usechangedetection.io (official)ApifyPomeradoActionbook
動く場所パソコンにインストールが必要クラウドでもパソコンにインストールでも使えるクラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえはいいいえはいいいえいいえ
Claude で + から追加いいえはいいいえいいえいいえいいえ
基本チェック3/35/53/34/44/44/4
ライセンスMITMITApache-2.0MITMITApache-2.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

stitch-native Google Stitch screens → native SwiftUI , Jetpack Compose and plain HTML . CLI + MCP server.

Quick start

uvx stitch-native swiftui screen.html > Screen.swift

Add to your agent

ClientConfig
Claude Codeclaude mcp add stitch-native -- uvx --from stitch-native stitch-native-mcp
Claude Desktop / Cursor / VS Codesee JSON below
{ "mcpServers": { "stitch-native": {

"command": "uvx", "args": ["--from", "stitch-native", "stitch-native-mcp"] } } }

Tools: stitch_to_native, stitch_to_swiftui, stitch_to_compose, stitch_to_html, extract_tokens, stitch_to_ir, init_config (source: html, path or url). Prompt: convert_screen. Resources: token-map and IR docs.

How it works

Stitch HTML + tailwind.config  →  DOM  →  IR (JSON: box / text / icon / image + styles)  →  emitter
  1. Reads the Tailwind theme Stitch embeds (colors, spacing, borderRadius, fontFamily, fontSize).
  2. Resolves each element's classes into a small layout IR (row / column / grid, padding, gap, radius, borders, text styles).
  3. Emits SwiftUI, Compose or HTML. Colours that are not theme tokens are reported as off-token literals.

Usage

python3 stitch_native.py swiftui  screen.html --name MatchStatsView    > MatchStatsView.swift

python3 stitch_native.py compose screen.html --name MatchStatsScreen > MatchStatsScreen.kt python3 stitch_native.py tokens screen.html > StitchTheme.swift python3 stitch_native.py tokens-kotlin screen.html > StitchTheme.kt python3 stitch_native.py html screen.html --name MatchStats > MatchStats.html python3 stitch_native.py tokens-css screen.html > tokens.css python3 stitch_native.py ir screen.html > screen.ir.json

State mode: stateless screen + State struct/sample, keys, callbacks (no ViewModel)

python3 stitch_native.py swiftui fixtures/fornada-encomendas.html --name OrdersListView --mode state python3 stitch_native.py compose fixtures/fornada-encomendas.html --name OrdersListScreen --mode state

--mode state reads locale, timeZone, currency and key prefixes from stitch-native.json. Plug the screen into your own ViewModel/Coordinator: it only takes state and callbacks.

state.* config (all optional)
KeyWhat it does
brandTexts bound to state.brandName instead of being baked in
storeFieldField name for "Brand — Store" texts (default storeName)
prefix, keys, locale, renameKey prefix; source text or auto key → final L10n key; locale; rename a row struct or field ({"Order": "OrderRow", "orderRows": "orders"})
fieldsSemantic names. Key = source text, auto name (field2) or Item.name (Order.field1) → name
samplesSample value by final field name (Item.name for row fields; a list gives one value per row; prices take cents). Without it samples are neutral (Text 1, Store 1)
money{type, swiftSample, swiftFormat, kotlinType, kotlinSample, kotlinFormat}; {cents} is the sample amount, {v} the value expression. The Swift type must be Equatable (the state struct is). Without it: Int/Long cents plus a private money() helper
enums. cases (source texts), type, current, caseNames (list, or text → name; default case1…)
enums. .existingtrue = use the app's own enum: needs type (Swift), kotlinType, caseMap (source text → domain case), optional kotlinCaseMap (domain case → Kotlin name). Not declared; the tracker shows only the caseMap steps in cases order; the generated private helpers Steps, Rank, Title map cases to L10n keys. Two source texts mapped to one domain case are de-duplicated in the steps (first occurrence wins) and share a key
enums. .domainCasesEvery case of the app's enum, in order. Title then gets one L10n key per case and an exhaustive switch / when (no default), so a missing case fails to compile. Cases not in caseMap get a key whose text is derived from the case name. Without it the helper keeps a flagged default (first step's label). A case that is not a tracker step shows its own label in the status chip; in the tracker every step is pending and none is highlighted
detail{field, type, fields} for the active/detail struct (default active / Active ), or false to keep everything on the root. fields lists extra root fields (final names) to move into it, e.g. data bound outside the tracker/lines block; texts rendered outside that block are wrapped in their own if let active / ?.let { active -> }

An existing enum must be a plain case enum (Hashable, no payloads). The Swift generated code uses Order.Status-style names verbatim, so the row struct must not be called Order (it is renamed automatically).

Targets

A project declares its ecosystem with targets in stitch-native.json: any of swiftui, compose, html. Without it (and without a targets argument) the tools emit swiftui + compose, as before. Unknown names are an error that lists the valid ones.

python3 stitch_native.py init screen.html --targets swiftui,html   # writes only swiftui + html keys, stores targets
  • MCP stitch_to_native and init_config take a targets argument (it wins over the config). stitch_to_native emits only those targets and their theme files; init_config writes only their keys (an iOS-only project gets no iconsCompose and no output.compose) and never deletes existing entries.
  • Internally one registry (TARGETS in stitch_native.py: emitter, theme function, fence language, owned config keys) drives the CLI, MCP and init, so a new ecosystem is one registry entry plus its emitter.
  • Config discovery (MCP): when no config, map or config_path is passed but path is, the server reads the nearest stitch-native.json next to that file or in a parent directory (up to the filesystem root); otherwise it uses no config. The CLI keeps reading ./stitch-native.json.
HTML target

html writes one self-contained page: a single block (tokens as --color-*, --space-*, --font-* custom properties on :root, plus generated .s1, .s2… classes), semantic tags where the export has them (header, nav, main, section, h1…, ul, table…), and no Tailwind, no , no external URLs. Fonts use the system stack (a token's own font name is tried first). Images keep their src; inline becomes an empty with a TODO comment.

  • Material icons become . Fill them with iconsHtml ({"home": "⌂"} text or inline markup, used verbatim); unmapped names are listed (unmapped iconsHtml in init, unmapped icons in the report).
  • Colours: colorsHtml (token or #hex → CSS value) wins; colors entries are used only when they already look like a CSS value (#hex, var(...), rgb(...)…), so a Swift expression shared with the iOS target never lands in the CSS. Off-token literals are reported like for the other targets.
  • Toasts and sheets are emitted hidden; top and bottom bars are position: sticky.
  • Layout mode only: --mode state / mode: "state" is an error for html; stitch_to_native in state mode skips it with a warning.
  • Examples: examples/MatchStats.html, examples/OrdersList.html.
Map tokens to your design system
{ "colors": { "primary": "DS.Color.accent", "#12241c": "DS.Color.card" },

"fonts": { "headline-md": "DS.Font.title" } }

python3 stitch_native.py init screen.html      # writes stitch-native.json, lists unmapped tokens/icons

python3 stitch_native.py swiftui screen.html # auto-loads ./stitch-native.json (or --config path)

stitch-native.json also takes targets, icons (Material → SF Symbol), iconsCompose (Material → Icons.X.Y), iconsHtml, colorsHtml, preview.colorScheme and output folders. null entries fall back to the theme.

MCP server

stitch_native_mcp.py exposes the converter to any MCP client (stdio, no dependencies).

claude mcp add stitch-native -- python3 /path/to/stitch_native_mcp.py
ToolDoes
extract_tokensTheme file for swiftui, compose or html (CSS custom properties)
stitch_to_irLayout IR as JSON
stitch_to_swiftuiSwiftUI view + off-token report
stitch_to_composeCompose composable + off-token report
stitch_to_htmlSelf-contained HTML page + off-token and unmapped-icon report (layout mode)
stitch_to_nativeThe configured targets (default swiftui + compose) in one call, with their theme files
init_configstitch-native.json skeleton + unmapped list

Each tool takes html (the export) or path; the code tools also take name and config (object) or config_path (else the nearest stitch-native.json next to path). Pairs well with the official Stitch MCP: fetch the screen HTML there, convert here.

Example

fixtures/match-stats.html → examples/MatchStatsView.swift, examples/MatchStatsScreen.kt and examples/MatchStats.html.

Status

Prototype. Known gaps:

  • Output not yet compile-checked in CI.
  • SwiftUI drops the font weight when a family token and a text-* size class share an element.
  • Absolute positioning, animations and hover: states are ignored.

Roadmap: visual_diff tool (render vs Stitch screenshot) and a Claude skill.

Releasing

Pushing a tag vX.Y.Z runs .github/workflows/publish.yml: tests, build, upload to PyPI (trusted publishing), then publish server.json to the MCP registry (GitHub OIDC). No secrets are stored. pyproject.toml, both versions in server.json and VERSION in stitch_native_mcp.py must agree (a unit test checks it); the tag must match too.

One-time manual step on pypi.org (Account → Publishing → "Add a new pending publisher"), before the first tag:

FieldValue
PyPI project namestitch-native
Ownerrafaelcsan705
Repository namestitch-native
Workflow namepublish.yml
Environment namepypi

Optionally create a GitHub environment named pypi (Settings → Environments) with required reviewers as a manual gate.

License

MIT