MCP ツール
Stitch CLI の統一 Model Context Protocol ツールのリファレンス。
Stitch CLI には、CLI の文法を反映した 7 つの統一的な動詞ツールを公開する組み込みの MCP サーバー(stitch mcp start / stitch mcp install)が含まれています。
| ツール | 対応する CLI | 読み取り専用 |
|---|---|---|
stitch_create | stitch create | false |
stitch_delete | stitch delete | false |
stitch_edit | stitch edit | false |
stitch_find | stitch find | true |
stitch_generate | stitch generate | false |
stitch_get | stitch get | true |
stitch_url | stitch url | true |
ツール
stitch_create
1 つのリソースを作成します。stitch create <resource> に対応します。アトミックな作成(‘コンテキストの追加’、‘ループの作成’、‘ツールプロバイダーの接続’、‘スキルの作成’、‘画面の生成’)に使用します。{ resource, item, created } を返します。dryRun を指定すると、リクエストの正確なプレビューを返します。
アノテーション
destructive
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "project" | "screen" | "design-system" |
body | object | true | リソースのペイロード。必須フィールド:project={}、screen={prompt}、design-system={designSystem={displayName, theme={bodyFont, colorMode, customColor, headlineFont, roundness}}}、workspace={displayName}、context={data, description}、skill={content, id}、loop={objective}、webhook={eventTypes, url}、connection={providerId}。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合、ワークスペーススコープのリソースで必須です。 |
project | string | false | Stitch プロジェクト ID(プロジェクトスコープのリソースで必須)。 |
dryRun | boolean | false | ペイロードを検証し、送信せずにリクエストをプレビューします。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"project",
"screen",
"design-system",
"workspace",
"context",
"skill",
"loop",
"webhook",
"connection",
"priority",
"priorities"
],
"description": "Resource type to create (project, screen, design-system, workspace, context, skill, loop, webhook, connection)."
},
"body": {
"type": "object",
"description": "Resource payload. Required fields: project={}, screen={prompt}, design-system={designSystem={displayName, theme={bodyFont, colorMode, customColor, headlineFont, roundness}}}, workspace={displayName}, context={data, description}, skill={content, id}, loop={objective}, webhook={eventTypes, url}, connection={providerId}."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Validate payload and preview the request without sending it."
}
},
"required": [
"resource",
"body"
]
}
対応する CLI コマンド
stitch create --schema
stitch_delete
ID を指定して 1 つのリソース(project、workspace、context、loop、webhook)を削除します。stitch delete <resource> <id> に対応します。{ resource, id, deleted } を返します。
アノテーション
destructive
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "projects" | "project" | "workspaces" |
id | string | true | 削除するリソースの ID。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合、ワークスペーススコープのリソースで必須です。 |
project | string | false | Stitch Canvas プロジェクト ID(プロジェクトスコープのリソースで必須)。 |
dryRun | boolean | false | 削除される内容をプレビューし、HTTP リクエストは送信しません。 |
dry-run | boolean | false | 削除される内容をプレビューし、HTTP リクエストは送信しません。 |
confirm | boolean | false | カスケード削除または破壊的なリソース(workspace、project、context)を削除する場合は、true に設定する必要があります。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"workspaces",
"workspace",
"contexts",
"context",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook"
],
"description": "Resource type to delete (project, workspace, context, loop, webhook)."
},
"id": {
"type": "string",
"description": "ID of the resource to delete."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Preview what would be deleted and issue no HTTP request."
},
"dry-run": {
"type": "boolean",
"description": "Preview what would be deleted and issue no HTTP request."
},
"confirm": {
"type": "boolean",
"description": "Must be set to true when deleting a cascading or destructive resource (workspace, project, context)."
}
},
"required": [
"resource",
"id"
]
}
対応する CLI コマンド
stitch delete --schema
stitch_edit
1 つのリソースに部分的な更新を適用します。stitch edit <resource> <id> に対応します。変更可能なフィールドの変更(‘ループの説明の更新’、‘コンテキストの編集’、‘ワークスペースファイルの更新’、‘スキルへのパッチ適用’、‘Webhook の一時停止’、‘画面の編集’)に使用します。{ resource, item, updateMask } を返します。Canvas が編集を非同期で適用する場合(デザインシステム)、{ resource, id, status: ‘pending’, session, requested, message } を返すため、呼び出し側は後でリソースを再取得する必要があります。dryRun を指定すると、リクエストの正確なプレビューを返します。
アノテーション
destructive
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "screen" | "design-system" | "workspace" |
id | string | true | 編集するリソースの ID。画面の場合は projects/<p>/screens/<s> または Stitch キャンバス URL も使用でき、そこで指定されたプロジェクトが使われます。 |
patch | object | true | 更新するフィールド。編集可能なフィールド:screen={deviceType, modelId, prompt, designSystem}、design-system={designSystem={displayName, theme={bodyFont, colorMode, colorVariant, customColor, designMd, headlineFont, labelFont, overrideNeutralColor, overridePrimaryColor, overrideSecondaryColor, overrideTertiaryColor, roundness, spacing, typography}}}、workspace={description, displayName, priorityGroups, repositories}、context={annotations, data, dataSource, description, expireTime, schema}、file={content, path}、skill={content, description}、loop={autonomyLevel, description, groupId}、webhook={displayName, eventTypes, secret, sslVerificationEnabled, state}。 |
updateMask | string | false | 更新するフィールドパスのカンマ区切りリスト。省略した場合は patch のキーから導出されます。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合、ワークスペーススコープのリソースで必須です。 |
project | string | false | Stitch プロジェクト ID(プロジェクトスコープのリソースで必須)。 |
dryRun | boolean | false | リソースを変更せずにリクエストをプレビューします。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"screen",
"design-system",
"workspace",
"context",
"file",
"skill",
"loop",
"webhook",
"priority",
"priorities"
],
"description": "Resource type to edit (screen, design-system, workspace, context, file, skill, loop, webhook)."
},
"id": {
"type": "string",
"description": "ID of the resource to edit. For screens, also accepts projects/<p>/screens/<s> or a Stitch canvas URL; the project it names is used."
},
"patch": {
"type": "object",
"description": "Fields to update. Editable fields: screen={deviceType, modelId, prompt, designSystem}, design-system={designSystem={displayName, theme={bodyFont, colorMode, colorVariant, customColor, designMd, headlineFont, labelFont, overrideNeutralColor, overridePrimaryColor, overrideSecondaryColor, overrideTertiaryColor, roundness, spacing, typography}}}, workspace={description, displayName, priorityGroups, repositories}, context={annotations, data, dataSource, description, expireTime, schema}, file={content, path}, skill={content, description}, loop={autonomyLevel, description, groupId}, webhook={displayName, eventTypes, secret, sslVerificationEnabled, state}."
},
"updateMask": {
"type": "string",
"description": "Comma-separated field paths to update. Derived from patch keys when omitted."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch project ID (required for project-scoped resources)."
},
"dryRun": {
"type": "boolean",
"description": "Preview the request without modifying the resource."
}
},
"required": [
"resource",
"id",
"patch"
]
}
対応する CLI コマンド
stitch edit --schema
stitch_find
指定した種類のリソース(projects、screens、design-systems、workspaces、contexts、files、skills、loops、webhooks、insights、solutions、connections、organizations)を一覧表示します。stitch find <resource> に対応します。{ resource, items, returnedCount, isTruncated, nextPageToken } を返します。詳細を確認するには、特定の ID に対して stitch_get を続けて呼び出してください。
アノテーション
readOnly
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "projects" | "project" | "screens" |
criteria | object | false | リソース固有のフィルター条件(例:projects={title}、screens={title, deviceType}、design-systems={displayName}、または {id, state})。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合、ワークスペーススコープのリソースで必須です。 |
project | string | false | Stitch Canvas プロジェクト ID(プロジェクトスコープのリソースで必須)。 |
limit | integer | false | 返す項目の最大数(デフォルト 50)。 |
pageSize | integer | false | API に要求する 1 ページあたりの項目数(デフォルトは limit)。 |
pageToken | string | false | 以前の結果の nextPageToken から再開します。Canvas リソースではサポートされていません。 |
filter | string | false | AIP-160 フィルター式。 |
include | array | false | 各項目に取り込む関連コレクション。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"screens",
"screen",
"design-systems",
"design-system",
"workspaces",
"workspace",
"contexts",
"context",
"files",
"file",
"skills",
"skill",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook",
"insights",
"insight",
"solutions",
"solution",
"connections",
"connection",
"toolProvider",
"toolProviders",
"tool-provider",
"tool-providers",
"organizations",
"organization"
],
"description": "Resource type to list (projects, screens, design-systems, workspaces, contexts, files, skills, loops, webhooks, insights, solutions, connections, organizations)."
},
"criteria": {
"type": "object",
"description": "Resource-specific filter criteria (e.g. projects={title}, screens={title, deviceType}, design-systems={displayName}, or {id, state})."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
},
"limit": {
"type": "integer",
"description": "Maximum number of items to return (default 50)."
},
"pageSize": {
"type": "integer",
"description": "Items per page requested from the API (defaults to limit)."
},
"pageToken": {
"type": "string",
"description": "Resume from a previous result's nextPageToken. Not supported for Canvas resources."
},
"filter": {
"type": "string",
"description": "AIP-160 filter expression."
},
"include": {
"type": "array",
"description": "Related collections to pull into each item."
}
},
"required": [
"resource"
]
}
対応する CLI コマンド
stitch find --schema
stitch_generate
バックエンドの生成ジョブ(screens、variants、insights、solutions)を開始します。stitch generate <resource> に対応します。{ resource, workspace, started, complete } を返します(生成は非同期で実行されるため complete は false です。stitch_find でポーリングしてください)。
アノテーション
destructive
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "screens" | "screen" | "variants" |
priorities | array | false | 生成の対象範囲を指定するループ ID(resource=‘insights’ の場合のみ適用。省略するとワークスペース全体を対象に生成します)。 |
insights | array | false | ソリューションを生成する対象のインサイト ID(resource=‘solutions’ の場合は必須。resource=‘solutions’ の場合のみ適用)。 |
delayExecution | boolean | false | エージェントの実行をすぐに開始せず、再スケジュールします(resource=‘insights’ の場合のみ適用)。 |
replaceExisting | boolean | false | 既存の未割り当てソリューションに追加するのではなく、置き換えます(resource=‘solutions’ の場合のみ適用)。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合は必須です。 |
project | string | false | Stitch Canvas プロジェクト ID(newProject が設定されていない場合、画面とバリアントの生成で必須)。 |
newProject | object | false | 生成された画面用に新しい Stitch Canvas プロジェクトを作成します(ブール値またはプロジェクトのタイトル)。 |
title | string | false | 画面またはプロジェクトのタイトル(任意、画面生成用)。 |
prompt | string | false | 画面またはバリアントの生成用のテキストプロンプト。 |
device | string | false | 画面またはバリアントの生成に使用するデバイスタイプ:MOBILE、DESKTOP、TABLET、AGNOSTIC。 |
deviceType | string | false | device のエイリアス:MOBILE、DESKTOP、TABLET、AGNOSTIC。 |
model | string | false | 画面またはバリアントの生成に使用するモデル ID(GEMINI_3_8_FLASH または GEMINI_3_5_FLASH_LITE)。 |
modelId | string | false | model のエイリアス(GEMINI_3_8_FLASH または GEMINI_3_5_FLASH_LITE)。 |
screen | object | false | バリアント生成の対象となるソース画面 ID(単一または複数)。 |
selectedScreenIds | array | false | screen のエイリアス:バリアント生成の対象となるソース画面 ID。 |
count | integer | false | 生成するバリアントの数(1〜5)。 |
variantCount | integer | false | count のエイリアス:生成するバリアントの数(1〜5)。 |
creativeRange | string | false | バリアントのクリエイティブレンジ:REFINE、EXPLORE、REIMAGINE。 |
aspects | array | false | バリアントの対象アスペクト(例:LAYOUT、COLOR_SCHEME、TEXT_FONT)。 |
variantOptions | object | false | ネストされたバリアントオプション({ variantCount, creativeRange, aspects })。 |
dryRun | boolean | false | 生成ジョブを開始せずに引数を検証し、対象範囲をプレビューします。 |
dry-run | boolean | false | 生成ジョブを開始せずに引数を検証し、対象範囲をプレビューします。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"screens",
"screen",
"variants",
"variant",
"insights",
"insight",
"solutions",
"solution"
],
"description": "Resource type to generate (screens, variants, insights, solutions)."
},
"priorities": {
"type": "array",
"description": "Loop IDs to scope generation to (applies to resource='insights' only; omit to generate across the entire workspace)."
},
"insights": {
"type": "array",
"description": "Insight IDs to generate solutions for (required when resource='solutions'; applies to resource='solutions' only)."
},
"delayExecution": {
"type": "boolean",
"description": "Reschedule the agent run rather than starting immediately (applies to resource='insights' only)."
},
"replaceExisting": {
"type": "boolean",
"description": "Replace existing unassigned solutions instead of adding to them (applies to resource='solutions' only)."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for screen and variant generation unless newProject is set)."
},
"newProject": {
"type": "object",
"description": "Create a new Stitch Canvas project for the generated screen (boolean or project title)."
},
"title": {
"type": "string",
"description": "Optional screen or project title (for screen generation)."
},
"prompt": {
"type": "string",
"description": "Text prompt for screen or variant generation."
},
"device": {
"type": "string",
"description": "Device type for screen or variant generation: MOBILE, DESKTOP, TABLET, or AGNOSTIC."
},
"deviceType": {
"type": "string",
"description": "Alias for device: MOBILE, DESKTOP, TABLET, or AGNOSTIC."
},
"model": {
"type": "string",
"description": "Model ID for screen or variant generation (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)."
},
"modelId": {
"type": "string",
"description": "Alias for model (GEMINI_3_8_FLASH or GEMINI_3_5_FLASH_LITE)."
},
"screen": {
"type": "object",
"description": "Source screen ID or IDs for variant generation."
},
"selectedScreenIds": {
"type": "array",
"description": "Alias for screen: source screen IDs for variant generation."
},
"count": {
"type": "integer",
"description": "Number of variants to generate (1-5)."
},
"variantCount": {
"type": "integer",
"description": "Alias for count: number of variants to generate (1-5)."
},
"creativeRange": {
"type": "string",
"description": "Creative range for variants: REFINE, EXPLORE, or REIMAGINE."
},
"aspects": {
"type": "array",
"description": "Target aspects for variants (e.g. LAYOUT, COLOR_SCHEME, TEXT_FONT)."
},
"variantOptions": {
"type": "object",
"description": "Nested variant options ({ variantCount, creativeRange, aspects })."
},
"dryRun": {
"type": "boolean",
"description": "Validate arguments and preview scope without starting a generation job."
},
"dry-run": {
"type": "boolean",
"description": "Validate arguments and preview scope without starting a generation job."
}
},
"required": [
"resource"
]
}
対応する CLI コマンド
stitch generate --schema
stitch_get
ID を指定して 1 つのリソース(project、screen、design-system、status、workspace、context、file、skill、loop、webhook、insight、solution、connection、organization)を取得します。stitch get <resource> <id> に対応します。{ resource, item, availableActions? } を返します。availableActions で示されたツールを続けて呼び出してください。
アノテーション
readOnly
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "projects" | "project" | "screens" |
id | string | false | 取得するリソースの ID。‘status’ を除くすべてのリソースで必須です。‘status’ の場合は id を省略する必要があります。 |
workspace | string | false | ワークスペース ID のオーバーライド。デフォルトのワークスペースが設定されていない場合、ワークスペーススコープのリソースで必須です。 |
project | string | false | Stitch Canvas プロジェクト ID(プロジェクトスコープのリソースで必須)。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"projects",
"project",
"screens",
"screen",
"design-systems",
"design-system",
"status",
"workspaces",
"workspace",
"contexts",
"context",
"files",
"file",
"skills",
"skill",
"loops",
"loop",
"priority",
"priorities",
"webhooks",
"webhook",
"insights",
"insight",
"solutions",
"solution",
"connections",
"connection",
"toolProvider",
"toolProviders",
"tool-provider",
"tool-providers",
"organizations",
"organization"
],
"description": "Resource type to fetch (project, screen, design-system, status, workspace, context, file, skill, loop, webhook, insight, solution, connection, organization)."
},
"id": {
"type": "string",
"description": "ID of the resource to fetch. Required for every resource except 'status', where id must be omitted."
},
"workspace": {
"type": "string",
"description": "Workspace ID override. Required for workspace-scoped resources when no default workspace is configured."
},
"project": {
"type": "string",
"description": "Stitch Canvas project ID (required for project-scoped resources)."
}
},
"required": [
"resource"
]
}
対応する CLI コマンド
stitch get --schema
stitch_url
ネットワーク I/O を一切行わずに、プロジェクトまたは画面の正規の Stitch Canvas Web URL を返します。stitch url <resource> <id> に対応します。stitch.google.com の URL を推測する代わりに、ユーザーがリンク(‘open in Stitch’、‘get canvas URL’、‘link to screen’)を求めたときに使用します。{ resource, id, url, verified: false } を返します。
アノテーション
readOnly
パラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
resource | "project" | "screen" | true |
id | string | true | プロジェクトまたは画面の ID(ベア ID、または ‘projects/<p>/screens/<s>’ のような完全なリソース名を使用できます)。 |
project | string | false | 画面を所有するプロジェクト ID(resource=‘screen’ で、‘id’ が完全な ‘projects/<p>/screens/<s>’ 形式のリソース名でない場合に必須)。 |
入力スキーマ
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"project",
"screen"
],
"description": "Stitch Canvas resource type to construct a URL for (project or screen)."
},
"id": {
"type": "string",
"description": "ID of the project or screen (accepts a bare ID or a full resource name like 'projects/<p>/screens/<s>')."
},
"project": {
"type": "string",
"description": "Project ID that owns the screen (required when resource='screen' and 'id' is not a full 'projects/<p>/screens/<s>' resource name)."
}
},
"required": [
"resource",
"id"
]
}
対応する CLI コマンド
stitch url --schema
原文: https://stitch.withgoogle.com/docs/cli/reference/mcp-tools/
本ページは Google Stitch 公式ドキュメントの翻訳です。原文の著作権は Google LLC に帰属します。本サイトは独立した非公式の翻訳です。