← 返回
内容创作 中文

Stitch Ui Designer

Design, preview, and generate UI code using Google Stitch (via MCP). Helps developers choose the best UI by generating previews first, allowing iteration, and then exporting code.
使用 Google Stitch(通过 MCP)设计、预览和生成 UI 代码。先预览再迭代,选择最佳方案后导出代码。
a2mus
内容创作 clawhub v1.0.0 1 版本 99801.9 Key: 无需
★ 2
Stars
📥 1,975
下载
💾 151
安装
1
版本
#latest

概述

Stitch UI Designer

This skill allows you to design high-quality user interfaces using Google Stitch.

Workflow

Follow this process to help the user design a UI:

  1. Setup (First Time Only)
    • Check if the stitch server is configured in mcporter.
    • If not, configure it: mcporter config add stitch --command "npx" --args "-y stitch-mcp-auto"
    • Ensure the user is authenticated with Google Cloud (the tool may prompt for gcloud auth).
  1. Generate & Preview
    • Ask for a description of the interface (e.g., "Login screen for a crypto app").
    • Use stitch.generate_screen_from_text with the prompt.
    • Important: This returns a screenId.
    • Immediately fetch the preview image using stitch.fetch_screen_image(screenId).
    • Show the image to the user. Do not fetch the code yet.
  1. Iterate & Customize
    • Ask the user for feedback on the preview.
    • If changes are needed, use stitch.generate_screen_from_text again (potentially using stitch.extract_design_context from the previous screen to maintain style) or just refine the prompt.
    • Show the new preview.
  1. Export Code
    • Once the user approves the design ("This looks great"), fetch the code.
    • Use stitch.fetch_screen_code(screenId).
    • Present the HTML/CSS code or save it to a file as requested.

Tools (via mcporter)

Call these using mcporter call stitch. :

  • generate_screen_from_text
  • Args: prompt (string), projectId (optional, usually auto-detected by stitch-mcp-auto)
  • Returns: screenId, name, url
  • Use this to start a design.
  • fetch_screen_image
  • Args: screenId (string)
  • Returns: Image data (display this to the user).
  • Use this to show the preview.
  • fetch_screen_code
  • Args: screenId (string)
  • Returns: html (string), css (string), etc.
  • Use this ONLY after user approval.
  • create_project
  • Args: name (string)
  • Use if no project exists.

Tips

  • Project Context: stitch-mcp-auto tries to manage the project ID automatically. If you get errors about missing project IDs, ask the user to create or select a Google Cloud project first using create_project or by setting the GOOGLE_CLOUD_PROJECT env var.
  • Preview First: Always prioritize the visual preview. Generating code for a bad design wastes tokens and time.
  • Stitch MCP Auto: We use stitch-mcp-auto because it handles the complex Google auth setup more gracefully than the standard package.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 22:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Doro Git Essentials

a2mus
Git 关键命令和工作流,涵盖版本控制、分支和协作。
★ 0 📥 1,313
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,173
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,464