Logo di Stitch

Stitch

Organizzazione
gemini-cli-extensions

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

Autoregemini-cli-extensions
Repositorystitch
Fork
47
Stelle
473
Strumenti disponibili
0
Tipo di trasportostdio
LicenzaApache-2.0
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Stitch mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    473 stelle e 47 fork nel repository collegato.

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.

Usa MCP Stitch con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Stitch, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Stitch come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Stitch.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "stitch": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Stitch, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Stitch.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Stitch per aiutarmi con questa attività?
Stitch
Certo. Ho letto.
Ecco cosa ho trovato con Stitch.

Domande frequenti

A cosa serve il server MCP Stitch?

Stitch è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Stitch MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Stitch con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Stitch con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Stitch, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Stitch MCP a TypingMind?

Stitch funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Stitch MCP in TypingMind?

Stitch mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Stitch MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Stitch richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇