Skip to content
Back to search

stitch

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

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/gemini-cli-extensions--stitch/badge.svg)](/listings/gemini-cli-extensions--stitch)

HTML

<a href="/listings/gemini-cli-extensions--stitch"><img src="/api/listings/gemini-cli-extensions--stitch/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

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

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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 165 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Stitch Extension for Gemini CLI
  2. 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](https://stitch.withgoogle.com/), the AI-powered UI/UX design and code generation tool.
  3. ## ✨ Features
  4. - **🎨 List Projects:** View a list of your Stitch projects.
  5. - **🎨 Project Details:** Get detailed information about a specific project.
  6. - **🎨 Retrieve Screens:** Access all screens within a given project.
  7. - **🎨 Download Assets:** Download assets such as images and HTML files.
  8. - **🎨 Generate Screen From Text:** Generate new screens from text prompt, using Gemini 3 Pro or Gemini 3 Flash(default) models.
  9. - **🎨 More features coming soon...**
  10. ## 📋 Prerequisites
  11. Before using this extension, ensure you have the following installed:
  12. 1. **Gemini CLI:**
  13. * Install the Gemini CLI (v0.19.0 or newer).
  14. * Refer to [Gemini CLI Documentation](https://geminicli.com/) for installation instructions.
  15. 2. **gcloud CLI:** (Optional, recommended for ADC authentication)
  16. * Install and initialize the [gcloud CLI](https://cloud.google.com/sdk/docs/install).
  17. * Ensure you have a Google Cloud Project to use with Stitch.
  18. ## 🚀 Installation
  19. Run the following command in your terminal to install the Stitch extension:
  20. ```bash
  21. gemini extensions install https://github.com/gemini-cli-extensions/stitch --auto-update
  22. ```
  23. ## 🔐 Configuration & Authentication
  24. To use the Stitch extension, you need to configure authentication. The Stitch MCP server supports two authentication methods:
  25. - **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.
  26. - **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.
  27. Choose one method below based on your needs.
  28. ### 1. Authenticate with Auth API Key
  29. 1. **Get API Key:**
  30. * Go to [Stitch](https://stitch.withgoogle.com/).
  31. * Click on your profile icon in the top-right corner.
  32. * Select "Stitch Settings" from the dropdown menu.
  33. * Go to the "API Keys" section.
  34. * Click on "Create Key".
  35. * Copy the generated API key.
  36. 2. **Configure Extension:**
  37. Run the following commands to configure your API key (replace `your-api-key-here` with your actual API key):
  38. ```bash
  39. export API_KEY="your-api-key-here"
  40. sed "s/YOUR_API_KEY/$API_KEY/g" ~/.gemini/extensions/Stitch/gemini-extension-apikey.json > ~/.gemini/extensions/Stitch/gemini-extension.json
  41. ```
  42. ### 2. Authenticate with Application Default Credentials (ADC)
  43. 1. **Login to gcloud:**
  44. ```bash
  45. gcloud auth login
  46. ```
  47. 2. **Configure Project and Quota:**
  48. Set your project ID variable and configure the project. Replace `your-project-id` with your actual Google Cloud Project ID.
  49. ```bash
  50. export PROJECT_ID="your-project-id"
  51. gcloud config set project $PROJECT_ID
  52. gcloud auth application-default set-quota-project $PROJECT_ID
  53. ```
  54. 3. **Enable Stitch MCP API:**
  55. Enable the Stitch MCP service on your project.
  56. ```bash
  57. gcloud beta services mcp enable stitch.googleapis.com --project=$PROJECT_ID
  58. ```
  59. 4. **Grant Permissions:**
  60. Your account needs the `roles/serviceusage.serviceUsageConsumer` role.
  61. ```bash
  62. gcloud projects add-iam-policy-binding $PROJECT_ID \
  63. --member="user:your-email@gmail.com" \
  64. --role="roles/serviceusage.serviceUsageConsumer"
  65. ```
  66. 5. **Login to ADC:**
  67. ```bash
  68. gcloud auth application-default login
  69. ```
  70. 6. **Configure Extension:**
  71. Run the following command to update the configuration file with your project ID:
  72. ```bash
  73. sed "s/YOUR_PROJECT_ID/$PROJECT_ID/g" ~/.gemini/extensions/Stitch/gemini-extension-adc.json > ~/.gemini/extensions/Stitch/gemini-extension.json
  74. ```
  75. ## 💡 Usage
  76. 1. **Start Gemini CLI:**
  77. Launch the Gemini CLI with the Stitch extension enabled:
  78. ```bash
  79. gemini
  80. ```
  81. 2. **List Available Tools:**
  82. To see all available MCP tools, including those from Stitch, use:
  83. ```
  84. /mcp list
  85. /mcp desc
  86. ```
  87. 3. **Interact with Stitch:**
  88. Use the `/stitch` command prefix to send natural language requests. Examples:
  89. * **List Projects:**
  90. ```
  91. /stitch What Stitch projects do I have?
  92. ```
  93. * **Get Project Details:**
  94. ```
  95. /stitch Tell me details about my project 3677573127824787033
  96. ```
  97. * **List Screens:**
  98. ```
  99. /stitch Give me all the screens of project 3677573127824787033
  100. ```
  101. * **Download Assets:**
  102. ```
  103. /stitch Download the image of screen 6393b8177be0490f89eb8f2c1e4cfb37
  104. /stitch Download the HTML of screen 6393b8177be0490f89eb8f2c1e4cfb37
  105. ```
  106. * **Generate new Screens:**
  107. You can generate new screens from text prompt, using Gemini 3 Pro or Gemini 3 Flash (default) models.
  108. ```
  109. /stitch Design a mobile app for people who love skiing in the Alps, using Gemini 3 Pro.
  110. ```
  111. * **Enhance a Prompt:**
  112. ```
  113. /stitch Enhance this prompt: "Design a landing page for a podcast about the latest in Design and AI."
  114. ```
  115. ## 💸 Pricing
  116. * Stitch MCP is **free of charge**.
  117. ## 🔧 Resources
  118. * [Stitch](https://stitch.withgoogle.com/): The official Stitch web application.
  119. * [Gemini CLI Extensions](https://google-gemini.github.io/gemini-cli/docs/extensions/): Documentation on using extensions in Gemini CLI.
  120. * [GitHub Issues](https://github.com/gemini-cli-extensions/stitch/issues): Report bugs or request new features.
  121. ## 📄 Legal
  122. 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.
  123. * **[Google Terms and Use Policy](https://policies.google.com/terms)**
  124. * **[Google APIs Terms of Service](https://console.cloud.google.com/tos?id=universal)**
  125. * **[Stitch Privacy Notice](https://stitch.withgoogle.com/privacy)**
  126. * **[Apache License 2.0](https://github.com/gemini-cli-extensions/stitch/blob/main/LICENSE)**

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.