{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","img"]},"type":"markdown"},"seo":{"title":"AWS Kiro を Treasure AI に接続する","description":"Local MCP Server（tdx mcp）または Treasure AI Studio MCP エンドポイントを使用して AWS Kiro IDE を Treasure AI に接続し、データクエリ、セグメント管理、Studio アクションの実行を行う手順を解説します。","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"aws-kiro-を-treasure-ai-に接続する","__idx":0},"children":["AWS Kiro を Treasure AI に接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["AWS Kiro"]}," は、Model Context Protocol（MCP）を標準サポートするエージェント型 IDE です。MCP 経由で AWS Kiro IDE を Treasure AI に接続すると、エディタから離れることなく、データベースのクエリ、スキーマの確認、親セグメント・セグメント・ジャーニー・ワークフローの操作、さらには ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/overview"},"children":["Treasure AI Studio"]}," のアクションやチャットの実行を行えます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AWS Kiro IDE は、次の 2 つの MCP 連携パターンのいずれか、または両方を使って Treasure AI に接続できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/local-mcp-server"},"children":["Local MCP Server"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},"）"]},"：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/"},"children":["Treasure Code（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},"）CLI"]}," をローカルの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]}," 経由で実行します。Kiro はローカルの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルを使って ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," を呼び出し、Treasure AI API に対してデータベースのクエリや親セグメント・セグメント・ジャーニー・ワークフローの操作を直接実行します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Treasure AI Studio MCP エンドポイント"]}]},"：Streamable HTTP 経由で Treasure AI Studio Agent Gateway に接続します。Kiro から Treasure AI Studio の共有作業フォルダに作業を委譲し、保存済みのアクションを実行したり、Studio チャットを開始・継続したりできます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"どちらの-mcp-接続を使うべきか","__idx":1},"children":["どちらの MCP 接続を使うべきか"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"22%","data-label":"観点"},"children":["観点 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"39%","data-label":"Local MCP Server（ tdx mcp ）"},"children":["Local MCP Server（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},"） "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"39%","data-label":"Treasure AI Studio MCP エンドポイント"},"children":["Treasure AI Studio MCP エンドポイント "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["主な用途"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro からテーブルへのクエリ、データベースの探索、親セグメント・セグメント・ジャーニー・ワークフローの操作を行うエンジニア向け"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro から保存済みの Studio アクションの実行、共有作業フォルダの一覧取得、Studio チャットの開始・継続を行うチーム向け"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["トランスポート"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro が起動するローカルの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]}," プロセス（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リモートの Streamable HTTP（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>"]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["認証"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["システムのキーチェーンに保存された ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイル（任意で専用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE=kiro"]}," を指定可能）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["静的 Gateway Token（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization: Bearer tasgwt_<secret>"]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実行ユーザー"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルで認証された Treasure AI ユーザー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 つの共有作業フォルダに紐づく MCP エンドポイントの指定実行者"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["AI トークンの消費"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro のみ（Treasure AI は通常の API リクエストを処理）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro ＋ Treasure AI Studio（Studio チャットおよびアクションに Treasure AI Credits を消費）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["公開されるツール"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," に両方の MCP サーバーを同時に登録できます。両方設定すると、Kiro から ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},"（ローカルで実行する 2 つのツール）と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]},"（Studio で実行する 6 つのツール）の両方を利用できます。"]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR\n    subgraph local[\"オプション 1：Local MCP Server — ローカル stdio\"]\n        K1[\"AWS Kiro IDE\"] -->|\"stdio（tdx プロファイル）\"| TDX[\"tdx mcp\"]\n        TDX -->|\"HTTPS（キーチェーン認証情報）\"| API[\"Treasure AI API<br/>データベース・セグメント・ジャーニー・ワークフロー\"]\n    end\n    subgraph remote[\"オプション 2：Treasure AI Studio MCP — リモート HTTP\"]\n        K2[\"AWS Kiro IDE\"] -->|\"Streamable HTTP<br/>Bearer tasgwt_...\"| GW[\"AI Studio Agent Gateway\"]\n        GW -->|\"実行者として処理\"| WF[\"共有作業フォルダ<br/>保存済みアクションと Studio チャット\"]\n    end\n","diagramHtml":"<svg id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 440.09375px;\" viewBox=\"0 0 440.09375 1104\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .error-icon{fill:#552222;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .error-text{fill:#552222;stroke:#552222;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-thickness-normal{stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-thickness-thick{stroke-width:3.5px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-pattern-solid{stroke-dasharray:0;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-pattern-dashed{stroke-dasharray:3;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edge-pattern-dotted{stroke-dasharray:2;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .marker{fill:#333333;stroke:#333333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .marker.cross{stroke:#333333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb p{margin:0;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster-label text{fill:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster-label span{color:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster-label span p{background-color:transparent;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .label text,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb span{fill:#333;color:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node rect,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node circle,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node ellipse,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node polygon,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .rough-node .label text,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node .label text,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .image-shape .label,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .icon-shape .label{text-anchor:middle;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .rough-node .label,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node .label,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .image-shape .label,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .icon-shape .label{text-align:center;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node.clickable{cursor:pointer;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .arrowheadPath{fill:#333333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .flowchart-link{stroke:#333333;fill:none;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster text{fill:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .cluster span{color:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb rect.text{fill:none;stroke-width:0;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .icon-shape,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .icon-shape p,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .icon-shape .label rect,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb .node .neo-node{stroke:#9370DB;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node rect,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].cluster rect,#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(47.046875, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-remote\" data-look=\"classic\"><rect style=\"\" x=\"-39.046875\" y=\"8\" width=\"424.09375\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(-35.046875, 8)\"><foreignObject width=\"416.09375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>オプション 2：Treasure AI Studio MCP — リモート HTTP</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,109.75C173,120,173,140.5,173,160.333C173,180.167,173,199.333,173,208.917L173,218.5\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-L_K2_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K2_GW_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTYxfSx7IngiOjE3MywieSI6MjIyLjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd)\"></path><path d=\"M173,276.5L173,284.75C173,293,173,309.5,173,325.333C173,341.167,173,356.333,173,363.917L173,371.5\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-L_GW_WF_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_WF_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNzYuNX0seyJ4IjoxNzMsInkiOjMyNn0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 161)\"><g class=\"label\" data-id=\"L_K2_GW_0\" transform=\"translate(-64.0234375, -24)\"><foreignObject width=\"128.046875\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>Streamable HTTP<br>Bearer tasgwt_...</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 326)\"><g class=\"label\" data-id=\"L_GW_WF_0\" transform=\"translate(-63.765625, -12)\"><foreignObject width=\"127.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>実行者として処理</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-K2-4\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-GW-5\" data-look=\"classic\" transform=\"translate(173, 249.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-118.9453125\" y=\"-27\" width=\"237.890625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-88.9453125, -12)\"><rect></rect><foreignObject width=\"177.890625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AI Studio Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-WF-7\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>共有作業フォルダ<br>保存済みアクションと Studio チャット</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(47.046875, 557)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-local\" data-look=\"classic\"><rect style=\"\" x=\"-14.0078125\" y=\"8\" width=\"374.015625\" height=\"531\"></rect><g class=\"cluster-label\" transform=\"translate(-10.0078125, 8)\"><foreignObject width=\"366.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>オプション 1：Local MCP Server — ローカル stdio</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,107.75C173,116,173,132.5,173,148.333C173,164.167,173,179.333,173,186.917L173,194.5\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-L_K1_TDX_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K1_TDX_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTQ5fSx7IngiOjE3MywieSI6MTk4LjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd)\"></path><path d=\"M173,252.5L173,262.75C173,273,173,293.5,173,313.333C173,333.167,173,352.333,173,361.917L173,371.5\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-L_TDX_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TDX_API_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNTIuNX0seyJ4IjoxNzMsInkiOjMxNH0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 149)\"><g class=\"label\" data-id=\"L_K1_TDX_0\" transform=\"translate(-93.796875, -12)\"><foreignObject width=\"187.59375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>stdio（tdx プロファイル）</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 314)\"><g class=\"label\" data-id=\"L_TDX_API_0\" transform=\"translate(-100, -24)\"><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"edgeLabel\"><p>HTTPS（キーチェーン認証情報）</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-K1-0\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-TDX-1\" data-look=\"classic\" transform=\"translate(173, 225.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-58.0078125\" y=\"-27\" width=\"116.015625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-28.0078125, -12)\"><rect></rect><foreignObject width=\"56.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx mcp</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-flowchart-API-3\" data-look=\"classic\" transform=\"translate(173, 438.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-63\" width=\"260\" height=\"126\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -48)\"><rect></rect><foreignObject width=\"200\" height=\"96\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Treasure AI API<br>データベース・セグメント・ジャーニー・ワークフロー</p></span></div></foreignObject></g></g></g></g></g></g></g><defs><filter id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs><defs><filter id=\"diagram-63893dc7143e7495799b8d7d34a988ff0245d152202958a4f6c2fb2fd393cefb-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#000000\"></feDropShadow></filter></defs></svg>","diagramHtmlDark":"<svg id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 440.09375px;\" viewBox=\"0 0 440.09375 1104\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;fill:#ccc;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .error-icon{fill:#a44141;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .error-text{fill:#ddd;stroke:#ddd;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-thickness-normal{stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-thickness-thick{stroke-width:3.5px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-pattern-solid{stroke-dasharray:0;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .marker{fill:lightgrey;stroke:lightgrey;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .marker.cross{stroke:lightgrey;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 p{margin:0;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster-label text{fill:#F9FFFE;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster-label span{color:#F9FFFE;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster-label span p{background-color:transparent;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .label text,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 span{fill:#ccc;color:#ccc;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node rect,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node circle,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node ellipse,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node polygon,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .rough-node .label text,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node .label text,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .image-shape .label,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .icon-shape .label{text-anchor:middle;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .rough-node .label,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node .label,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .image-shape .label,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .icon-shape .label{text-align:center;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node.clickable{cursor:pointer;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .arrowheadPath{fill:lightgrey;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .flowchart-link{stroke:lightgrey;fill:none;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster text{fill:#F9FFFE;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .cluster span{color:#F9FFFE;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 rect.text{fill:none;stroke-width:0;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .icon-shape,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .icon-shape p,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .icon-shape .label rect,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 .node .neo-node{stroke:#ccc;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node rect,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].cluster rect,#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node polygon{stroke:url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node path{stroke:url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient);stroke-width:1px;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node circle{stroke:url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"4.5\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto\"><path d=\"M 0 5 L 10 10 L 10 0 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"11.5\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"10.5\" markerHeight=\"14\" orient=\"auto\"><path d=\"M 0 0 L 11.5 7 L 0 14 z\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 11.5 14\" refX=\"1\" refY=\"7\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11.5\" markerHeight=\"14\" orient=\"auto\"><polygon points=\"0,7 11.5,14 11.5,0\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></polygon></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-circleEnd\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"11\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-circleStart\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-1\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 1; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-circleEnd-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refY=\"5\" refX=\"12.25\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-circleStart-margin\" class=\"marker flowchart-v2\" viewBox=\"0 0 10 10\" refX=\"-2\" refY=\"5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"14\" markerHeight=\"14\" orient=\"auto\"><circle cx=\"5\" cy=\"5\" r=\"5\" class=\"arrowMarkerPath\" style=\"stroke-width: 0; stroke-dasharray: 1, 0;\"></circle></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-crossEnd\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"12\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-crossStart\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 11 11\" refX=\"-1\" refY=\"5.2\" markerUnits=\"userSpaceOnUse\" markerWidth=\"11\" markerHeight=\"11\" orient=\"auto\"><path d=\"M 1,1 l 9,9 M 10,1 l -9,9\" class=\"arrowMarkerPath\" style=\"stroke-width: 2; stroke-dasharray: 1, 0;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-crossEnd-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"17.7\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5;\"></path></marker><marker id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(47.046875, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-remote\" data-look=\"classic\"><rect style=\"\" x=\"-39.046875\" y=\"8\" width=\"424.09375\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(-35.046875, 8)\"><foreignObject width=\"416.09375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>オプション 2：Treasure AI Studio MCP — リモート HTTP</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,109.75C173,120,173,140.5,173,160.333C173,180.167,173,199.333,173,208.917L173,218.5\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-L_K2_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K2_GW_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTYxfSx7IngiOjE3MywieSI6MjIyLjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd)\"></path><path d=\"M173,276.5L173,284.75C173,293,173,309.5,173,325.333C173,341.167,173,356.333,173,363.917L173,371.5\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-L_GW_WF_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_WF_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNzYuNX0seyJ4IjoxNzMsInkiOjMyNn0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 161)\"><g class=\"label\" data-id=\"L_K2_GW_0\" transform=\"translate(-64.0234375, -24)\"><foreignObject width=\"128.046875\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>Streamable HTTP<br>Bearer tasgwt_...</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 326)\"><g class=\"label\" data-id=\"L_GW_WF_0\" transform=\"translate(-63.765625, -12)\"><foreignObject width=\"127.53125\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>実行者として処理</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-K2-4\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-GW-5\" data-look=\"classic\" transform=\"translate(173, 249.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-118.9453125\" y=\"-27\" width=\"237.890625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-88.9453125, -12)\"><rect></rect><foreignObject width=\"177.890625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AI Studio Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-WF-7\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>共有作業フォルダ<br>保存済みアクションと Studio チャット</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(47.046875, 557)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-local\" data-look=\"classic\"><rect style=\"\" x=\"-14.0078125\" y=\"8\" width=\"374.015625\" height=\"531\"></rect><g class=\"cluster-label\" transform=\"translate(-10.0078125, 8)\"><foreignObject width=\"366.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>オプション 1：Local MCP Server — ローカル stdio</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,107.75C173,116,173,132.5,173,148.333C173,164.167,173,179.333,173,186.917L173,194.5\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-L_K1_TDX_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K1_TDX_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTQ5fSx7IngiOjE3MywieSI6MTk4LjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd)\"></path><path d=\"M173,252.5L173,262.75C173,273,173,293.5,173,313.333C173,333.167,173,352.333,173,361.917L173,371.5\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-L_TDX_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TDX_API_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNTIuNX0seyJ4IjoxNzMsInkiOjMxNH0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 149)\"><g class=\"label\" data-id=\"L_K1_TDX_0\" transform=\"translate(-93.796875, -12)\"><foreignObject width=\"187.59375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>stdio（tdx プロファイル）</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 314)\"><g class=\"label\" data-id=\"L_TDX_API_0\" transform=\"translate(-100, -24)\"><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"edgeLabel\"><p>HTTPS（キーチェーン認証情報）</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-K1-0\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-TDX-1\" data-look=\"classic\" transform=\"translate(173, 225.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-58.0078125\" y=\"-27\" width=\"116.015625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-28.0078125, -12)\"><rect></rect><foreignObject width=\"56.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx mcp</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-flowchart-API-3\" data-look=\"classic\" transform=\"translate(173, 438.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-63\" width=\"260\" height=\"126\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -48)\"><rect></rect><foreignObject width=\"200\" height=\"96\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Treasure AI API<br>データベース・セグメント・ジャーニー・ワークフロー</p></span></div></foreignObject></g></g></g></g></g></g></g><defs><filter id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-drop-shadow\" height=\"130%\" width=\"130%\"><feDropShadow dx=\"4\" dy=\"4\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><defs><filter id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-drop-shadow-small\" height=\"150%\" width=\"150%\"><feDropShadow dx=\"2\" dy=\"2\" stdDeviation=\"0\" flood-opacity=\"0.06\" flood-color=\"#FFFFFF\"></feDropShadow></filter></defs><linearGradient id=\"diagram-efd10ab0e848cdeb176b37f72e00b92604af5df95f726ef3ad71a500aa4dfec4-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#cccccc\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(180, 0%, 18.3529411765%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["flowchart LR\n    subgraph local[\"オプション 1：Local MCP Server — ローカル stdio\"]\n        K1[\"AWS Kiro IDE\"] -->|\"stdio（tdx プロファイル）\"| TDX[\"tdx mcp\"]\n        TDX -->|\"HTTPS（キーチェーン認証情報）\"| API[\"Treasure AI API<br/>データベース・セグメント・ジャーニー・ワークフロー\"]\n    end\n    subgraph remote[\"オプション 2：Treasure AI Studio MCP — リモート HTTP\"]\n        K2[\"AWS Kiro IDE\"] -->|\"Streamable HTTP<br/>Bearer tasgwt_...\"| GW[\"AI Studio Agent Gateway\"]\n        GW -->|\"実行者として処理\"| WF[\"共有作業フォルダ<br/>保存済みアクションと Studio チャット\"]\n    end\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のコマンド例は macOS（Apple Silicon）を前提としています。Intel Mac、Linux、Windows でも、それぞれのプラットフォーム向け Kiro インストーラーとターミナルコマンドに置き換えるだけで同じ手順で設定できます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"28%","data-label":"要件"},"children":["要件 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"詳細"},"children":["詳細 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE とサインイン"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["AWS Kiro IDE"]}," をインストール済み（Kiro Crew ではなく Kiro IDE を選択）で、GitHub または Google アカウントでサインイン済みであること"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Node.js"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["バージョン 22.12 以降（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," および任意の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npx"]}," エンドポイント確認コマンドで必要）。macOS では ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://brew.sh"},"children":["Homebrew"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]},"）でインストールできます。その他の OS は ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/installation"},"children":["tdx インストールガイド"]}," を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI アカウント"]}," ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," 用）"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["利用するデータベース、セグメント、ジャーニー、ワークフローへの権限を持つ API キーまたは SSO サインイン"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio アクセス"]}," ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["（Studio MCP エンドポイント用）"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アーカイブされていない",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders"},"children":["共有作業フォルダ"]},"に対する ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["管理（Manage）"]}," 権限、アカウントの作成ポリシーにおける静的トークン方式エンドポイントの作成権限（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["静的トークン方式の MCP エンドポイント"]},"）、Web またはデスクトップ版 Studio（モバイル不可）、および Studio Agent Gateway への HTTPS 接続"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプション-1local-mcp-server-tdx-mcp-を接続する","__idx":3},"children":["オプション 1：Local MCP Server（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},"）を接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この設定では、Kiro がローカルで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]}," 経由で起動します。すべてのコマンドは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルに紐づく Treasure AI ユーザーの権限で実行されます。Kiro の設定ファイルに保存されるのは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," のパス（および任意のプロファイル名）のみで、認証情報はシステムの認証情報ストアに保管されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-1kiro-ide-をインストールして起動する","__idx":4},"children":["ステップ 1：Kiro IDE をインストールして起動する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すでに Kiro IDE をインストールしてサインイン済みの場合は、ステップ 2 に進んでください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["kiro.dev"]}," を開き、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Download"]}," を選択して、お使いのプラットフォーム向けの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE"]},"（例：",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE for Mac (Apple Silicon)"]}," — Kiro Crew ではありません）をダウンロードします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Kiro をインストールして起動します。macOS では、ダウンロードした ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".dmg"]}," を開いて ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," を ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Applications"]}," にドラッグし、Applications から起動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sign in"]}," を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GitHub"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google"]}," を選んでブラウザで承認した後、Kiro に戻ります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要に応じて検証用フォルダを作成します（",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File → Open Folder"]}," で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro-td-test"]}," フォルダを作成して開きます）。Kiro のエージェントチャットパネルに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hello"]}," と入力し、応答が返ることを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-2nodejs-を確認し-tdx-をインストールする","__idx":5},"children":["ステップ 2：Node.js を確認し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," をインストールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ターミナルを開き、Node.js がバージョン 22.12 以降であることを確認します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"node --version\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Node.js が未インストール、または 22.12 未満の場合は最新リリースをインストールしてください（macOS では ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]},"）。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@treasuredata/tdx"]}," をグローバルにインストールし、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," が出力するフルパスを控えます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @treasuredata/tdx\ntdx --version\nwhich tdx\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," が表示したフルパス（Apple Silicon の macOS では ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/tdx"]}," など）をメモしておきます。ステップ 4 でこのパスを指定します。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Treasure Work とは別にインストールが必要です"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Work デスクトップアプリには独自の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," が同梱されていますが、Kiro からはそのバイナリを参照できません。Kiro 用に別途グローバルの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@treasuredata/tdx"]}," をインストールしてください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-3treasure-ai-にサインインする","__idx":6},"children":["ステップ 3：Treasure AI にサインインする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," がすでに認証済みか確認します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx user\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure AI のアカウントとメールアドレスが表示されれば、ステップ 4 に進みます。エラーになる場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," を実行して画面の案内に従ってください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx auth setup\ntdx user\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["米国以外のリージョンを使用する場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site eu01"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site ap01"]},"、または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site ap02"]}," を指定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["SSO でサインインする場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--account-name <YOUR_ACCOUNT>"]}," を指定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認証情報は平文ファイルではなく、システムの認証情報ストア（macOS キーチェーン、Windows 資格情報マネージャー、または Linux Secret Service）に保存されます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"任意専用の-kiro-プロファイルを作成する","__idx":7},"children":["任意：専用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro"]}," プロファイルを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," 設定に影響を与えずに、Kiro を特定の Treasure AI アカウント（サンドボックスアカウントなど）に紐づける場合は、専用プロファイルを作成します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx profile create kiro\ntdx status --profile kiro\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["作成時にサインインが求められない場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup --profile kiro"]}," を実行します。このプロファイル名はステップ 4 で指定します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-4kiro-に-tdx-を登録する","__idx":8},"children":["ステップ 4：Kiro に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," を登録する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiro のユーザーレベル MCP 設定ファイル（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]},"）を作成して開きます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"mkdir -p ~/.kiro/settings && touch ~/.kiro/settings/mcp.json && open -a Kiro ~/.kiro/settings/mcp.json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ファイルは Kiro（または別のコードエディタ）で編集してください。macOS のテキストエディット（TextEdit）は引用符をスマートクォートに変換してしまい JSON が破損するため使用しないでください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の設定を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," に貼り付け、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/tdx"]}," をステップ 2 の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," で確認したパスに置き換えます。すでに他のサーバーが定義されている場合は、既存の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," オブジェクト内に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," エントリを追加してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"/opt/homebrew/bin/tdx\",\n      \"args\": [\"mcp\"],\n      \"autoApprove\": [\"tdx_search\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ファイルを保存します（macOS は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd+S"]},"、Windows/Linux は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+S"]},"）。ファイルが変更されると、Kiro は MCP サーバーを自動的に再読み込みします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["専用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイル（ステップ 3 で作成した ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro"]}," プロファイルなど）を使用する場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," エントリに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"env\""]}," ブロックを追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"\"env\": { \"TDX_PROFILE\": \"kiro\" }\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"tdx_run は autoApprove に追加しないでください"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}," に追加しないでください。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," はワークフローの実行やセグメントのプッシュなど、元に戻せない操作を含むあらゆる ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," コマンドを実行できます。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," はコマンド検索のみを行うため、自動承認しても安全です。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"認証情報の優先順位とワークスペース設定"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_API_KEY"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_SITE"]}," の組み合わせ、通常の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," サインインの順で認証情報を解決します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," に API キーを置かないよう、原則としてプロファイルを使用してください。特定のプロジェクトだけで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," を使いたい場合は、プロジェクト内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]}," を使用することもできますが、認証情報を含む設定ファイルは絶対に Git にコミットしないでください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-5-tdx-接続を確認する","__idx":9},"children":["ステップ 5：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," 接続を確認する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["左サイドバーの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," アイコンを選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}," セクションを確認します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," が接続済みとなり、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," の 2 つのツールが表示されていれば完了です。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-mcp-connected.fe71ad2ef8a880eeb1ab9c52fc3fd8d131bcfd6e8ccc7cda74bc78687921d46f.5866d770.webp","alt":"tdx MCP サーバーが接続され、tdx_search と tdx_run ツールが利用可能であることを確認している AWS Kiro のチャット画面","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiro のチャットで次のようなプロンプトを試してください。Kiro が ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," の実行許可を求めたら、コマンド引数を確認したうえで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]}," を選択します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Use tdx to list my Treasure AI databases.」"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Show the tables in sample_datasets and describe one of them.」"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Using tdx, run this query: SELECT COUNT(1) FROM sample_datasets.www_access」"]}]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-approval.64329db9722da4af9774ec1b9e32f2844b3ed337500c4c747a4af1778f80af7e.5866d770.webp","alt":"SELECT COUNT(1) FROM sample_datasets.www_access を実行する @tdx/tdx_run の承認を求める AWS Kiro の画面","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiro が ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," 経由のクエリ結果を返せば、ローカル MCP の接続は正常に動作しています。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-query-result.2f71c8526975ebd86ffee7a7b0efc0677df77c8caa1d9bd12b4ad7cf4b870c1e.5866d770.webp","alt":"tdx_run 経由で sample_datasets.www_access の 5000 行を返している AWS Kiro のチャット画面","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプション-2treasure-ai-studio-mcp-エンドポイントを接続する","__idx":10},"children":["オプション 2：Treasure AI Studio MCP エンドポイントを接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この設定により、Kiro から Streamable HTTP 経由で Studio の共有作業フォルダの一覧取得、保存済み",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/skills/actions"},"children":["アクション"]},"の実行、および ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/overview"},"children":["Treasure AI Studio"]}," チャットの開始・継続を行えます。リクエストはエンドポイントの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実行者"]},"（デフォルトでは作成者）の権限と Treasure AI Credits を使って実行されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-1共有作業フォルダを作成または選択する","__idx":11},"children":["ステップ 1：共有作業フォルダを作成または選択する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["静的トークン方式の MCP エンドポイントは 1 つの共有作業フォルダを公開します。すでに利用したい非アーカイブの共有作業フォルダの管理権限を持っている場合は、ステップ 2 に進んでください。フォルダ構成と管理手順の詳細は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders"},"children":["共有作業フォルダ"]},"および",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders/sharing-a-work-folder"},"children":["作業フォルダを共有する"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["新しい共有フォルダを作成する"]},"：Work Folders カタログの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+"]}," から ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New shared folder"]}," を選択します。新規作成には、アカウントのアクティブな作業フォルダ数が 25 未満である必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["既存のフォルダを共有する"]},"：対象フォルダの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["⋯"]}," メニューから ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Share…"]}," を選択し、公開するトップレベル項目を選びます。フォルダはその場で共有フォルダに変換され、既存のチャットは引き続き動作し、個人用コンテンツは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my/"]}," エリアへ移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["公開とアクセス付与"]},"：新しい共有フォルダは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setting up"]}," 状態で作成されます。公開は一方向であり、一度公開した共有フォルダはプライベートに戻せません（メンバー変更は可能です）。アクセス権を付与するには、フォルダを開いて ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["⋯ → Shared folder settings"]}," を選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["People"]}," の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add people"]}," から同一 Treasure AI アカウント内のユーザーをメールアドレスで検索してワークモードを割り当て、準備ができたら公開します。"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"28%","data-label":"ワークモード"},"children":["ワークモード "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"許可される操作"},"children":["許可される操作 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View only"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フォルダ全体を読み取り、自分のプライベートな ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my/"]}," エリアにのみ書き込み可能"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Custom folders"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["モードで指定されたトップレベルフォルダ（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reports/"]}," など）にのみ書き込み可能"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Write everywhere"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["共有フォルダ全体の読み取りと書き込みが可能"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メンバー、ワークモード、設定、削除を含むフルアクセス"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MCP エンドポイントを作成するユーザーには、対象共有フォルダの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," 権限が必要です。ウィザードに表示されるのは、自分が ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," 権限を持つ非アーカイブのフォルダのみです。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-2treasure-ai-studio-で静的トークン方式の-mcp-エンドポイントを作成する","__idx":12},"children":["ステップ 2：Treasure AI Studio で静的トークン方式の MCP エンドポイントを作成する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Web またはデスクトップ版の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio"]}," を開きます（モバイル版は不可）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels → New MCP Endpoint"]}," を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static token · shared executor"]}," が選択された状態のまま、名前（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro-test"]},"）を入力して ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Shared work folder"]}," でステップ 1 のフォルダを選択します。Kiro からのリクエストはあなたの権限と Treasure AI Credits で実行されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["トークンの有効期限（例：",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["30 days"]},"）を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create endpoint & issue first token"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection URL"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>"]},"）と ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Token"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_..."]},"）の両方をすぐにパスワードマネージャーへコピーして保存します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["I have stored the values"]}," にチェックを入れ、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-agent-channels-mcp-connect.34e9c57849f5c47a2b1933bf45488d47d3ec9105cd615dceb8e7bf7696665cfd.679d8dbd.webp","alt":"Connection URL と Authentication header が表示された Treasure AI Studio の MCP クライアント接続完了画面","framed":false,"withLightbox":true,"width":"640px"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"トークンはすぐに保存してください"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," トークンが表示されるのはこの 1 回限りです。紛失したトークンは復元できないため、エンドポイントの詳細ページで新しいトークンを発行し、古いトークンを失効させる必要があります。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"New MCP Endpoint が表示されない場合"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New MCP Endpoint"]}," が表示されない、または選択可能なフォルダが出てこない場合は、アカウント管理者に確認してください。共有作業フォルダの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," 権限が不足しているか、アカウントの作成ポリシーがアカウント管理者のみに制限されています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-3kiro-設定前にエンドポイントをテストする任意","__idx":13},"children":["ステップ 3：Kiro 設定前にエンドポイントをテストする（任意）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エンドポイント単体で応答することを先に確認しておくと、後から問題が起きた際に Kiro 側の設定ミスと切り分けやすくなります。ターミナルで自身の Connection URL とトークンを設定して実行します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"export MCP_SERVER_URL=\"https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>\"\nexport MCP_TOKEN=\"tasgwt_...\"\nnpx @modelcontextprotocol/inspector --cli \"$MCP_SERVER_URL\" --transport http --header \"Authorization: Bearer $MCP_TOKEN\" --method tools/list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@modelcontextprotocol/inspector"]}," のインストール確認が表示されたら ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["y"]}," を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["zsh のコマンド履歴にトークンを残さない場合は、2 行目の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["export"]}," の代わりに非表示プロンプトで入力します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"zsh","header":{"controls":{"copy":{}}},"source":"read -rs 'MCP_TOKEN?Paste the Studio token (hidden): '\nexport MCP_TOKEN\nprintf '\\n'\necho ${MCP_TOKEN:0:7}\n","lang":"zsh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["成功すると、6 つの Studio ツール（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]},"）が一覧表示されます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}]},"：Connection URL またはトークンのコピーミス、あるいはトークンの期限切れ・失効です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]}]},"：エンドポイントが無効化されている、実行者が未設定、または実行者がフォルダへのアクセス権を失っています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-4kiro-の-mcpjson-に-tai-studio-を追加する","__idx":14},"children":["ステップ 4：Kiro の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," を追加する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Kiro のユーザーレベル MCP 設定ファイルを再度開きます。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"open -a Kiro ~/.kiro/settings/mcp.json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," 内に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," と並べて ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tai-studio\""]}," ブロックを追加します。URL とトークンを自分の値に置き換え、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_..."]}," の前に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bearer"]}," と半角スペース 1 つを残してください。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," のバイナリパスはオプション 1 で設定した自分のパスを維持します。"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"/opt/homebrew/bin/tdx\",\n      \"args\": [\"mcp\"],\n      \"autoApprove\": [\"tdx_search\"]\n    },\n    \"tai-studio\": {\n      \"url\": \"https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>\",\n      \"headers\": { \"Authorization\": \"Bearer tasgwt_...\" },\n      \"autoApprove\": [\"list_work_folders\", \"list_actions\", \"get_chat_result\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファイルを保存します（macOS は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd+S"]},"、Windows/Linux は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+S"]},"）。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["自動承認する 3 つのツール（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]},"）は読み取り専用です。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}," から外しておくことで、Studio でクレジットを消費する処理を開始する前に Kiro が毎回確認を求めるようになります。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Studio トークンを Git リポジトリに置かないでください"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," はホームディレクトリ配下にあり、Git リポジトリには含まれません。プロジェクト内の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]}," に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," トークンを記載しないでください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ステップ-5kiro-で-studio-接続を確認する","__idx":15},"children":["ステップ 5：Kiro で Studio 接続を確認する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiro のサイドバーにある ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}," セクションを開き、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," に 2 つのツール、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," に 6 つのツールが表示されていることを確認します。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-studio-mcp-connected.9d935f1f55eb64a6fe8fcadcba071a5f19912782dacccc1c61b4b76b3b17c727.5866d770.webp","alt":"tai-studio MCP サーバーが接続され、6 つの Studio ツールと共有フォルダ内のアクションが表示されている AWS Kiro のチャット画面","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のようなプロンプトで Studio 接続をテストします。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「List the actions in my Treasure AI Studio folder.」"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Run the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<action_name>"]}," Action in tai-studio. If it returns a running status, poll ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," until it finishes.」"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Start a Studio chat in that folder asking: summarize what's in this folder.」"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Use tdx to count rows in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets.www_access"]},", then start a Studio chat that explains the result.」"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"利用可能なツールとプロンプト例","__idx":16},"children":["利用可能なツールとプロンプト例"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"local-mcp-server-tdx-","__idx":17},"children":["Local MCP Server（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},"）"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"24%","data-label":"ツール"},"children":["ツール "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"76%","data-label":"説明"},"children":["説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," CLI コマンドを実行して出力を返します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["タスクに合致する ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," コマンドを検索します"]}]}]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"領域"},"children":["領域 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"80%","data-label":"プロンプト例"},"children":["プロンプト例 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「List the tables in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets"]}," and describe ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["www_access"]},".」"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["クエリ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「Count rows in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets.www_access"]}," grouped by HTTP method.」"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CDP"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「List my parent segments and the child segments under one of them.」"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ジャーニー"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「List my journeys and show the stages of one.」"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ワークフロー"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「List my workflow projects and show the last few sessions for one.」"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-ai-studio-mcp-エンドポイント-tai-studio-","__idx":18},"children":["Treasure AI Studio MCP エンドポイント（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]},"）"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"24%","data-label":"ツール"},"children":["ツール "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"28%","data-label":"入力"},"children":["入力 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"48%","data-label":"説明"},"children":["説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["なし"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このエンドポイントから参照できる作業フォルダを一覧表示します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["作業フォルダ内の保存済みアクションを一覧表示します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio で保存済みアクションを実行します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio で自由形式のタスクを開始します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["既存の Studio チャットに追加の指示を送信します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio チャットの最新結果を取得する、または完了まで待機します"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ツールのスキーマとステータスコードの詳細は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#the-tools"},"children":["MCP クライアントを接続する"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ガードレールと運用上の制限","__idx":19},"children":["ガードレールと運用上の制限"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"本番環境に影響するコマンド（tdx mcp）"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," は、プロファイルのユーザーに権限があるあらゆる ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," コマンドを実行でき、元に戻せない操作も含まれます。まずはドライランを依頼し、すべてのツール呼び出しを内容確認してから承認してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx wf run"]}]},"：ワークフローの実行を即座に開始します。アクティベーションワークフローは対象オーディエンス全体へ直ちに送信されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey resume"]}]},"：一時停止中のジャーニーを再開し、オーディエンスのステージ進入とアクティベーション発火を開始します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["セグメント・ジャーニー・親セグメントのプッシュ"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg push"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey push"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx ps push"]}," など）：本番の CDP 設定を変更します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["変更を伴うコマンドは先に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--dry-run"]}," 付きで実行するよう Kiro に指示するか、読み取り専用の検証コマンド（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx wf validate"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg validate"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey validate"]},"）を使用してください。可能であれば Kiro 用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルはデモまたはサンドボックス環境に向けてください。"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Studio 共有フォルダのスコープ"]},"：静的トークン方式のエンドポイントは 1 つの共有作業フォルダを読み取り専用で公開し、すべての呼び出しを実行者の権限と Treasure AI Credits で実行します。各チャットは一時ワークスペースで実行され、チャット終了後に破棄されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["レートおよびメッセージ制限"]},"：1 分あたり最大 30 件の新規チャットを開始できます。メッセージ長は 1〜32,768 文字です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["アクションと確認質問"]},"：保存済みアクションは引数を取れません。入力を渡す必要がある場合は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," を使用してください。Studio が確認質問を返そうとした場合は自動的に辞退されるため、必要な情報はすべてプロンプトに含めてください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["対応する MCP 機能"]},"：MCP ツールのみ対応しています。MCP リソースとプロンプトはサポートされていません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["長時間実行される Studio タスク"]},"：ツール呼び出しは最大 200 秒待機します。処理が長引く場合や Kiro 側でタイムアウトした場合は、タスクを再実行せず、返された ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," を使って ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," をポーリングしてください。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"セキュリティ上の注意事項","__idx":20},"children":["セキュリティ上の注意事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_API_KEY"]}," ではなく ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE"]}," を使う"]},"：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルを使うことで、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," にキーを置かずにシステムのキーチェーンで認証情報を管理できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["最小権限の原則を守る"]},"：Kiro は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," プロファイルのユーザーや Studio エンドポイントの実行者に許可されたすべての操作を実行できます。必要最小限の権限を持つアカウントを使用してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["変更系ツールを ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}," に含めない"]},"：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}," に追加しないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," を保護する"]},"：このファイルには ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," トークンが平文で保存されます。ホームディレクトリに保管し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chmod 600 ~/.kiro/settings/mcp.json"]}," でパーミッションを制限してください。トークンを Git にコミットしたり、ワークスペースの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]}," に記載したり、チャットツールに貼り付けたりしないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["トークンのローテーションと失効"]},"：Studio エンドポイント作成時に有効期限を設定し、定期的にトークンをローテーションしてください。トークンが漏えいした場合は ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}," で即座に失効させ、新しいトークンを発行してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["アクセスの取り消し"]},"：",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Local MCP Server の場合"]},"：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," から ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," ブロックを削除し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth clear"]},"（専用プロファイルを作成した場合は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx profile delete kiro"]},"）を実行します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Studio MCP エンドポイントの場合"]},"：直ちにアクセスを遮断するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}," でエンドポイントを無効化します。無効化だけではトークンは失効しないため、必要に応じて別途トークンを失効させてください。"]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":21},"children":["トラブルシューティング"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"症状"},"children":["症状 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"34%","data-label":"主な原因"},"children":["主な原因 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"36%","data-label":"対処方法"},"children":["対処方法 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["macOS で Kiro が開けない（",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「開発元を検証できない」"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["macOS の Gatekeeper によって初回起動がブロックされている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Applications 内の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," を右クリック → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["開く"]}," → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["開く"]}," を選択します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm: command not found"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npx: command not found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js がインストールされていない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js 22.12 以降（macOS では ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]},"）をインストールして再試行します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm install -g @treasuredata/tdx"]}," で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EACCES"]}," 権限エラーが出る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js がシステム所有のディレクトリにインストールされている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Homebrew などのユーザー書き込み可能な Node 環境を使用します（Apple Silicon では ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which node"]}," が ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/node"]}," になることを確認）。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sudo"]}," は使用しないでください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js のバージョンエラーが出る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インストールされている Node.js が 22.12 未満"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js を 22.12 以降にアップグレードします"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターミナルで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," を直接実行すると止まったように見える"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["正常な動作です。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," は MCP クライアントからの stdio メッセージを待機します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+C"]}," で終了してください。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," は Kiro が自動で起動します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}," で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," が失敗表示になる"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"command\""]}," のパスが誤っているか、Kiro の PATH から ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," が見つからない（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nvm"]}," 環境で起きやすい）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," を実行し、出力された正確なフルパスを ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"command\""]}," に貼り付けます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," で認証エラーが出る、または別のアカウントが使われる"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," にサインインしていないか、別のプロファイルを指している"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx user"]},"（または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status --profile kiro"]},"）を実行し、必要に応じて ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," をやり直します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," で長時間クエリがタイムアウトする"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," コマンドは 15 分でタイムアウトする"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["長時間クエリは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx job submit"]}," で非同期実行するよう Kiro に指示します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["その他の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," エラー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ローカルの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," ランタイムまたは API エラー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tail -50 ~/.cache/tdx/logs/tdx.log"]}," でログを確認します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio で ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New MCP Endpoint"]}," が表示されない、または無効になっている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイント作成がアカウント管理者に制限されている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アカウント管理者にエンドポイントの作成または作成ポリシーの変更を依頼します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ウィザードに共有フォルダが表示されない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非アーカイブの共有フォルダに対する ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," 権限がない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フォルダ管理者に ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," 権限の付与を依頼するか、対象の共有フォルダを選びます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio エンドポイントから ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}," が返る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["URL またはトークンのコピーミス、トークンの期限切れ・失効、またはエンドポイントの削除"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["URL とトークンをコピーし直すか、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}," で新しいトークンを発行します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio エンドポイントから ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]}," が返る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイントが無効、実行者が不在、または実行者がフォルダへのアクセス権を失っている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio でエンドポイントを再度有効にするか、フォルダのアクセス権を復元します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["MCP Inspector のテストは通るのに、Kiro で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," が失敗する"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON 構文エラー、またはヘッダーに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bearer "]},"（末尾の半角スペース）が抜けている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON の構文（サーバーブロック間のカンマなど）と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Authorization\": \"Bearer tasgwt_...\""]}," を確認し、テキストエディットではなく Kiro で編集して保存します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," を追加したら ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," が消えた"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," を上書きした際に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," ブロックを削除してしまった"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["同じ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," オブジェクトの中に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tai-studio\""]}," の両方を記載します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio ツールの呼び出しが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," ステータスを返す"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio のタスク処理が 200 秒を超えている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["返された ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," を使って ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を呼び出すよう Kiro に指示します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["想定と違うフォルダやアクションについて応答が返る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイントが想定と別の共有フォルダを公開している"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio でエンドポイントの概要を確認し、Kiro で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}," を実行します"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"次のステップ","__idx":22},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/local-mcp-server"},"children":["Local MCP Server"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," のリファレンス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx mcp コマンドリファレンス"]}," — ツール仕様およびブロック対象コマンドの一覧"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["静的トークン方式の MCP エンドポイント"]}," — Treasure AI Studio エンドポイントの作成と管理"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients"},"children":["MCP クライアントを接続する"]}," — 6 つの Studio MCP ツールの詳細リファレンス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev/docs/mcp/configuration/"},"children":["Kiro MCP Configuration"]}," — AWS Kiro 公式の MCP 設定ドキュメント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["別のツールを接続する：",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/claude-code"},"children":["Claude Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/openai-codex"},"children":["OpenAI Codex"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/vscode-github-copilot"},"children":["VS Code と GitHub Copilot"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/cursor"},"children":["Cursor"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/snowflake-cortex-code"},"children":["Snowflake Cortex Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/databricks-genie-code"},"children":["Databricks Genie Code"]}]}]}]},"headings":[{"value":"AWS Kiro を Treasure AI に接続する","id":"aws-kiro-を-treasure-ai-に接続する","depth":1},{"value":"どちらの MCP 接続を使うべきか","id":"どちらの-mcp-接続を使うべきか","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"オプション 1：Local MCP Server（ tdx mcp ）を接続する","id":"オプション-1local-mcp-server-tdx-mcp-を接続する","depth":2},{"value":"ステップ 1：Kiro IDE をインストールして起動する","id":"ステップ-1kiro-ide-をインストールして起動する","depth":3},{"value":"ステップ 2：Node.js を確認し、 tdx をインストールする","id":"ステップ-2nodejs-を確認し-tdx-をインストールする","depth":3},{"value":"ステップ 3：Treasure AI にサインインする","id":"ステップ-3treasure-ai-にサインインする","depth":3},{"value":"任意：専用の kiro プロファイルを作成する","id":"任意専用の-kiro-プロファイルを作成する","depth":4},{"value":"ステップ 4：Kiro に tdx を登録する","id":"ステップ-4kiro-に-tdx-を登録する","depth":3},{"value":"ステップ 5： tdx 接続を確認する","id":"ステップ-5-tdx-接続を確認する","depth":3},{"value":"オプション 2：Treasure AI Studio MCP エンドポイントを接続する","id":"オプション-2treasure-ai-studio-mcp-エンドポイントを接続する","depth":2},{"value":"ステップ 1：共有作業フォルダを作成または選択する","id":"ステップ-1共有作業フォルダを作成または選択する","depth":3},{"value":"ステップ 2：Treasure AI Studio で静的トークン方式の MCP エンドポイントを作成する","id":"ステップ-2treasure-ai-studio-で静的トークン方式の-mcp-エンドポイントを作成する","depth":3},{"value":"ステップ 3：Kiro 設定前にエンドポイントをテストする（任意）","id":"ステップ-3kiro-設定前にエンドポイントをテストする任意","depth":3},{"value":"ステップ 4：Kiro の mcp.json に tai-studio を追加する","id":"ステップ-4kiro-の-mcpjson-に-tai-studio-を追加する","depth":3},{"value":"ステップ 5：Kiro で Studio 接続を確認する","id":"ステップ-5kiro-で-studio-接続を確認する","depth":3},{"value":"利用可能なツールとプロンプト例","id":"利用可能なツールとプロンプト例","depth":2},{"value":"Local MCP Server（ tdx ）","id":"local-mcp-server-tdx-","depth":3},{"value":"Treasure AI Studio MCP エンドポイント（ tai-studio ）","id":"treasure-ai-studio-mcp-エンドポイント-tai-studio-","depth":3},{"value":"ガードレールと運用上の制限","id":"ガードレールと運用上の制限","depth":2},{"value":"セキュリティ上の注意事項","id":"セキュリティ上の注意事項","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2},{"value":"次のステップ","id":"次のステップ","depth":2}],"frontmatter":{"seo":{"title":"AWS Kiro を Treasure AI に接続する","description":"Local MCP Server（tdx mcp）または Treasure AI Studio MCP エンドポイントを使用して AWS Kiro IDE を Treasure AI に接続し、データクエリ、セグメント管理、Studio アクションの実行を行う手順を解説します。"}},"lastModified":"2026-12-04T00:41:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/headless/aws-kiro","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}