Stitchのロゴ

Stitch

組織
gemini-cli-extensions

The Stitch extension for Gemini CLI enables you to interact with the Stitch MCP server using natural language commands.

公開者gemini-cli-extensions
リポジトリstitch
フォーク
47
スター
473
利用可能なツール
0
通信方式stdio
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Stitchは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには473件のスターと47件のフォークがあります。

Stitch Extension for Gemini CLI

The Stitch extension for Gemini CLI enables you to interact with the Stitch MCP (Model Context Protocol) server using natural language commands. This makes it easier to manage your design projects and assets within Stitch, the AI-powered UI/UX design and code generation tool.

✨ Features

  • 🎨 List Projects: View a list of your Stitch projects.
  • 🎨 Project Details: Get detailed information about a specific project.
  • 🎨 Retrieve Screens: Access all screens within a given project.
  • 🎨 Download Assets: Download assets such as images and HTML files.
  • 🎨 Generate Screen From Text: Generate new screens from text prompt, using Gemini 3 Pro or Gemini 3 Flash(default) models.
  • 🎨 More features coming soon...

📋 Prerequisites

Before using this extension, ensure you have the following installed:

  1. Gemini CLI:

  2. gcloud CLI: (Optional, recommended for ADC authentication)

    • Install and initialize the gcloud CLI.
    • Ensure you have a Google Cloud Project to use with Stitch.

🚀 Installation

Run the following command in your terminal to install the Stitch extension:

bash
gemini extensions install https://github.com/gemini-cli-extensions/stitch --auto-update

🔐 Configuration & Authentication

To use the Stitch extension, you need to configure authentication. The Stitch MCP server supports two authentication methods:

  • API Key Authentication: Simpler to set up. Use an API key generated from Stitch settings, powered by Google Cloud Managed Projects. Ideal for personal use and quick setup.
  • Application Default Credentials (ADC): Uses Google Cloud credentials for authentication. Requires your own Google Cloud project with proper IAM permissions, needs multiple manual steps to set up.

Choose one method below based on your needs.

1. Authenticate with Auth API Key

  1. Get API Key:

    • Go to Stitch.
    • Click on your profile icon in the top-right corner.
    • Select "Stitch Settings" from the dropdown menu.
    • Go to the "API Keys" section.
    • Click on "Create Key".
    • Copy the generated API key.
  2. Configure Extension: Run the following commands to configure your API key (replace your-api-key-here with your actual API key):

    bash
    export API_KEY="your-api-key-here"
    sed "s/YOUR_API_KEY/$API_KEY/g" ~/.gemini/extensions/Stitch/gemini-extension-apikey.json > ~/.gemini/extensions/Stitch/gemini-extension.json

2. Authenticate with Application Default Credentials (ADC)

  1. Login to gcloud:

    bash
    gcloud auth login
  2. Configure Project and Quota: Set your project ID variable and configure the project. Replace your-project-id with your actual Google Cloud Project ID.

    bash
    export PROJECT_ID="your-project-id"
    gcloud config set project $PROJECT_ID
    gcloud auth application-default set-quota-project $PROJECT_ID
  3. Enable Stitch MCP API: Enable the Stitch MCP service on your project.

    bash
    gcloud beta services mcp enable stitch.googleapis.com --project=$PROJECT_ID
  4. Grant Permissions: Your account needs the roles/serviceusage.serviceUsageConsumer role.

    bash
    gcloud projects add-iam-policy-binding $PROJECT_ID \
      --member="user:your-email@gmail.com" \
      --role="roles/serviceusage.serviceUsageConsumer"
  5. Login to ADC:

    bash
    gcloud auth application-default login
  6. Configure Extension: Run the following command to update the configuration file with your project ID:

    bash
    sed "s/YOUR_PROJECT_ID/$PROJECT_ID/g" ~/.gemini/extensions/Stitch/gemini-extension-adc.json > ~/.gemini/extensions/Stitch/gemini-extension.json

💡 Usage

  1. Start Gemini CLI: Launch the Gemini CLI with the Stitch extension enabled:

    bash
    gemini
  2. List Available Tools: To see all available MCP tools, including those from Stitch, use:

    /mcp list
    
    /mcp desc
  3. Interact with Stitch: Use the /stitch command prefix to send natural language requests. Examples:

    • List Projects:

      /stitch What Stitch projects do I have?
    • Get Project Details:

      /stitch Tell me details about my project 3677573127824787033
    • List Screens:

      /stitch Give me all the screens of project 3677573127824787033
    • Download Assets:

      /stitch Download the image of screen 6393b8177be0490f89eb8f2c1e4cfb37
      /stitch Download the HTML of screen 6393b8177be0490f89eb8f2c1e4cfb37
    • Generate new Screens:

      You can generate new screens from text prompt, using Gemini 3 Pro or Gemini 3 Flash (default) models.

      /stitch Design a mobile app for people who love skiing in the Alps, using Gemini 3 Pro.
    • Enhance a Prompt:

      /stitch Enhance this prompt: "Design a landing page for a podcast about the latest in Design and AI."

💸 Pricing

  • Stitch MCP is free of charge.

🔧 Resources

📄 Legal

Your use of the Stitch API is governed by the Google Terms and Use Policy, and the Google APIs Terms, and your Stitch settings. The Stitch Privacy Notice describes how your data is handled.

StitchのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Stitchに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Stitchをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. StitchのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "stitch": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてStitchのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. StitchのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Stitchを使ってこのタスクを手伝ってもらえますか?
Stitch
はい、読みました。
Stitchで調べた結果をお伝えします。

よくある質問

Stitch MCPサーバーは何に使いますか?

Stitchは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでStitch MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでStitchを利用できます。

TypingMindでStitch MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Stitchを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Stitch MCPをTypingMindに接続するにはどうすればよいですか?

StitchはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでStitch MCPのどのようなツールを利用できますか?

StitchはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Stitch MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Stitchで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇