AI卡包 ACCESS.AICARDBAO.COM
首页 / 开源 / Stitch Skills
AI TOOL / #13000

Stitch Skills

谷歌 Labs 为 Stitch MCP 服务器打造的 Agent Skills 库,遵循开放 Agent Skills 标准,兼容主流编码 agent。

详细介绍

功能要点

  • 配套 Stitch MCP 服务器的技能集合
  • 兼容 Antigravity、Gemini CLI、Claude Code、Cursor 等编码 agent

这是一套专为Google Stitch设计的代理技能及插件,遵循Agent Skills开放标准。这些技能适用于包括Antigravity、Claude Code、Codex、Cursor、GitHub Copilot以及OpenCode在内的编程代理。

先决条件

使用这些技能需要Stitch MCP服务器(https://stitch.googleapis.com/mcp)。

  1. 请在stitch.withgoogle.com的设置 → API密钥页面创建一个Stitch API密钥,或参考Stitch MCP配置指南进行OAuth/Google Cloud身份验证。
  2. 为你的代理添加stitch MCP服务器(请将API密钥保存在全局配置文件、用户配置文件或环境变量中——切勿将密钥提交到Git仓库):

Antigravity — ~/.gemini/config/mcp_config.json

将以下配置添加到~/.gemini/config/mcp_config.json文件中(适用于全局环境),然后在自定义设置 → 已安装服务 → MCP服务器中验证配置是否正确(或在CLI中执行/mcp命令进行检查):

{
  "mcpServers": {
    "stitch": {
      "serverUrl": "https://stitch.googleapis.com/mcp",
      "headers": {

Claude Code — claude mcp add

claude mcp add --transport http stitch https://stitch.googleapis.com/mcp \ --header "X-Goog-Api-Key: YOUR_STITCH_API_KEY" \ --scope user


您可以通过执行 `claude mcp list` 或在会话中使用 `/mcp` 命令来验证配置是否正确。

Codex — ~/.codex/config.toml

首先将 `STITCH_API_KEY` 变量导出到您的 shell 环境中,然后将其添加到 `~/.codex/config.toml` 文件中:

[mcp_servers.stitch] url = "https://stitch.googleapis.com/mcp"

[mcpservers.stitch.env_http_headers] X-Goog-Api-Key = "STITCH_API_KEY"


*或者,您也可以使用 `[mcp Servers.stitch.http_headers]` 来直接设置这个键值对。*

Cursor — ~/.cursor/mcp.json

将以下配置添加到 `~/.cursor/mcp.json` 文件中(此配置为全局设置;如需为特定项目设置,请使用 `.cursor/mcp.json` 文件,并通过 `${env:STITCH_API_KEY}` 变量来避免直接存储敏感信息):

{ "mcpServers": { "stitch": { "url": "https://stitch.googleapis.com/mcp", "headers": { "X-Goog-Api-Key": "${env:STITCH_API_KEY}" } } } }

OpenCode — opencode.json

在您的shell中导出STITCH_API_KEY,然后将其添加到~/.config/opencode/opencode.json文件中(全局配置)或项目中的opencode.json文件中:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "stitch": {
      "type": "remote",
      "url": "https://stitch.googleapis.com/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "X-Goog-Api-Key": "{env:STITCH_API_KEY}"
      }
    }
  }
}

VS Code / GitHub Copilot — .vscode/mcp.json(或用户自定义的mcp.json文件)

{
  "servers": {
    "stitch": {
      "type": "http",
      "url": "https://stitch.googleapis.com/mcp",
      "headers": {
        "X-Goog-Api-Key": "${input:stitch_api_key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "stitch_api_key",
      "description": "Google Stitch API Key",
      "password": true
    }
  ]
}
累计访问:10 更新时间:2026-12-03 AI 工具

相关推荐