Stitch logo

Stitch

Organization
gemini-cli-extensions

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

Publishergemini-cli-extensions
Repositorystitch
Forks
47
Stars
473
Available tools
0
Transport typestdio
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Stitch exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    473 stars and 47 forks from the linked repository.

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.

Use Stitch MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Stitch is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Stitch as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Stitch MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "stitch": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Stitch MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Stitch MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Stitch to help me with this task?
Stitch
Sure. I read it.
Here is what I found using Stitch.

Frequently asked questions

What is the Stitch MCP server used for?

Stitch is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Stitch MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Stitch with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Stitch MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Stitch connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Stitch MCP to TypingMind?

Stitch runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Stitch MCP provide in TypingMind?

Stitch exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Stitch MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Stitch requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇