用途:引导用户完成两项配置——把 AI 客户端连接到 Google Stitch 的远程生成 API(Stitch MCP 服务器),以及安装用于编排 Stitch 工作流的 stitch-kit 插件技能。适用于用户询问如何配置、提示不可用、连接失败,或运行 list_tools 后找不到 Stitch 工具,以及新环境首次安装。
主要能力:先检查已安装内容,运行 list_tools 查找 create_project、generate_screen_from_text、get_screen 等工具;若已存在则跳到插件安装。随后指导获取 API Key(在 stitch.withgoogle.com/settings 创建),并针对 Claude Code、Codex CLI、Cursor、VS Code 给出 MCP 配置方式,也提供 npx @booplex/stitch-kit 快速安装。插件安装使用 /plugin marketplace add https://github.com/gabelul/stitch-kit.git 与 /plugin install stitch-kit@stitch-kit。最后通过“Use Stitch to design a simple login screen”验证完整流程。
限制与注意:API Key 不应提交到公开仓库,需安全保存;Stitch MCP 为云端远程 HTTP 服务器,需访问 stitch.googleapis.com、storage.googleapis.com、accounts.google.com,代理或 VPN 环境需放行。无法配置 MCP 时可使用仅提示词模式,手动在 stitch.withgoogle.com 粘贴提示词。受限环境可用 OAuth(gcloud auth login 等命令),但令牌每小时过期需手动刷新。常见问题包括 401、403、404、空返回及插件未激活,需按对应原因处理。具体收费与价格暂未提供。