{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","tabs","tab","img"]},"type":"markdown"},"seo":{"title":"Treasure AI Studio - MCP クライアントを接続する","description":"MCP クライアントを OAuth 方式または静的トークン方式で Treasure AI Studio の MCP エンドポイントに接続し、6つのツールでアクションやチャットを実行する方法と、結果の読み方・制限値・エラーを解説します。","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":"mcp-クライアントを接続する","__idx":0},"children":["MCP クライアントを接続する"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-endpoints"},"children":["MCP エンドポイント"]},"は、Treasure AI Studio の作業フォルダを扱うリモートの MCP サーバーです。接続したクライアントが使えるツールは6つです。作業フォルダで何ができるかを調べるツールが2つ、作業を開始・継続するツールが3つ、結果を受け取るツールが1つです。作業はクライアントではなく Treasure AI Studio で行われます。クライアントがツールを呼ぶと、Studio が作業フォルダでチャットを開始し、エージェントの回答がツールの結果として返ります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["チャットが誰として動くかは、エンドポイントの接続方式で決まります。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["静的トークン方式"]},"のエンドポイントでは、エンドポイントが公開する1つの共有作業フォルダで、エンドポイントの実行者として動きます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth 方式"]}]},"のエンドポイントでは、クライアントを接続した本人として、本人の作業フォルダで動きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このページでは、クライアントの設定、各ツールの役割、返ってくる結果の読み方を扱います。クライアントを設定する人と、エンドポイントに対して直接エージェントを実装する人に向けた内容です。エンドポイントの作成と URL の取得は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-endpoints"},"children":["静的トークン方式の MCP エンドポイント"]},"または ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth 方式の MCP エンドポイント"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ツールの呼び出しが-studio-の作業になるまで","__idx":1},"children":["ツールの呼び出しが Studio の作業になるまで"]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR\n    A[\"MCP client<br/>holds a credential\"] -->|\"POST to the endpoint URL<br/>Authorization: Bearer\"| B[\"Agent Gateway\"]\n    B -->|\"Check the credential<br/>on every request\"| C[\"Treasure AI Studio\"]\n    C -->|\"Start or continue a chat<br/>in a work folder\"| D[\"Agent<br/>runs as the executor<br/>or the connected person\"]\n    D -->|\"Answer\"| B\n    B -->|\"Tool result\"| A\n","diagramHtml":"<svg id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 1446.65625px;\" viewBox=\"0 0 1446.65625 131\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728{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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .error-icon{fill:#552222;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .error-text{fill:#552222;stroke:#552222;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-thickness-normal{stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-thickness-thick{stroke-width:3.5px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-pattern-solid{stroke-dasharray:0;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .marker{fill:#333333;stroke:#333333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .marker.cross{stroke:#333333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 p{margin:0;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster-label text{fill:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster-label span{color:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster-label span p{background-color:transparent;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .label text,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 span{fill:#333;color:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node rect,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node circle,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node ellipse,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node polygon,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .rough-node .label text,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node .label text,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .image-shape .label,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .icon-shape .label{text-anchor:middle;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .rough-node .label,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node .label,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .image-shape .label,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .icon-shape .label{text-align:center;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node.clickable{cursor:pointer;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .arrowheadPath{fill:#333333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .flowchart-link{stroke:#333333;fill:none;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster text{fill:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .cluster span{color:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 rect.text{fill:none;stroke-width:0;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .icon-shape,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .icon-shape p,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .icon-shape .label rect,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 .node .neo-node{stroke:#9370DB;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node rect,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].cluster rect,#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_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\"><path d=\"M193.422,59.797L213.426,57.165C233.43,54.532,273.438,49.266,312.785,49.278C352.132,49.291,390.819,54.582,410.162,57.228L429.506,59.873\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-L_A_B_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_A_B_0\" data-points=\"W3sieCI6MTkzLjQyMTg3NSwieSI6NTkuNzk3NDI5MzA1OTEyNTk0fSx7IngiOjMxMy40NDUzMTI1LCJ5Ijo0NH0seyJ4Ijo0MzMuNDY4NzUsInkiOjYwLjQxNTM0MDU4Mzg1ODA0fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_flowchart-v2-pointEnd)\"></path><path d=\"M602.875,54.84L619.197,51.533C635.518,48.227,668.161,41.613,700.138,38.307C732.115,35,763.424,35,779.079,35L794.734,35\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-L_B_C_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_B_C_0\" data-points=\"W3sieCI6NjAyLjg3NSwieSI6NTQuODM5Nzk5ODAzMjI1Mzl9LHsieCI6NzAwLjgwNDY4NzUsInkiOjM1fSx7IngiOjc5OC43MzQzNzUsInkiOjM1fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_flowchart-v2-pointEnd)\"></path><path d=\"M990.656,35L1008.609,35C1026.563,35,1062.469,35,1097.717,37.857C1132.966,40.714,1167.556,46.427,1184.852,49.284L1202.147,52.141\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-L_C_D_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_C_D_0\" data-points=\"W3sieCI6OTkwLjY1NjI1LCJ5IjozNX0seyJ4IjoxMDk4LjM3NSwieSI6MzV9LHsieCI6MTIwNi4wOTM3NSwieSI6NTIuNzkyODI5MjQxMDcxNDN9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_flowchart-v2-pointEnd)\"></path><path d=\"M1206.094,91.207L1188.141,94.173C1170.188,97.138,1134.281,103.069,1082.382,106.035C1030.482,109,962.589,109,896.327,109C830.065,109,765.435,109,717.452,105.826C669.468,102.651,638.132,96.303,622.464,93.129L606.795,89.954\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-L_D_B_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_D_B_0\" data-points=\"W3sieCI6MTIwNi4wOTM3NSwieSI6OTEuMjA3MTcwNzU4OTI4NTd9LHsieCI6MTA5OC4zNzUsInkiOjEwOX0seyJ4Ijo4OTQuNjk1MzEyNSwieSI6MTA5fSx7IngiOjcwMC44MDQ2ODc1LCJ5IjoxMDl9LHsieCI6NjAyLjg3NSwieSI6ODkuMTYwMjAwMTk2Nzc0NjF9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_flowchart-v2-pointEnd)\"></path><path d=\"M433.469,83.585L413.465,86.321C393.461,89.056,353.453,94.528,314.106,94.718C274.759,94.908,236.074,89.816,216.731,87.27L197.388,84.725\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-L_B_A_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_B_A_0\" data-points=\"W3sieCI6NDMzLjQ2ODc1LCJ5Ijo4My41ODQ2NTk0MTYxNDE5Nn0seyJ4IjozMTMuNDQ1MzEyNSwieSI6MTAwfSx7IngiOjE5My40MjE4NzUsInkiOjg0LjIwMjU3MDY5NDA4NzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(313.4453125, 44)\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(-95.0234375, -24)\"><foreignObject width=\"190.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>POST to the endpoint URL<br>Authorization: Bearer</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(700.8046875, 35)\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(-72.9296875, -24)\"><foreignObject width=\"145.859375\" 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>Check the credential<br>on every request</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(1098.375, 35)\"><g class=\"label\" data-id=\"L_C_D_0\" transform=\"translate(-82.71875, -24)\"><foreignObject width=\"165.4375\" 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>Start or continue a chat<br>in a work folder</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(894.6953125, 109)\"><g class=\"label\" data-id=\"L_D_B_0\" transform=\"translate(-26.6796875, -12)\"><foreignObject width=\"53.359375\" 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>Answer</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(313.48602, 99.99443)\"><g class=\"label\" data-id=\"L_B_A_0\" transform=\"translate(-36.4609375, -12)\"><foreignObject width=\"72.921875\" 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>Tool result</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-flowchart-A-0\" data-look=\"classic\" transform=\"translate(100.7109375, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-92.7109375\" y=\"-39\" width=\"185.421875\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-62.7109375, -24)\"><rect></rect><foreignObject width=\"125.421875\" height=\"48\"><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>MCP client<br>holds a credential</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-flowchart-B-1\" data-look=\"classic\" transform=\"translate(518.171875, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-84.703125\" y=\"-27\" width=\"169.40625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-54.703125, -12)\"><rect></rect><foreignObject width=\"109.40625\" 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>Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-flowchart-C-3\" data-look=\"classic\" transform=\"translate(894.6953125, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-95.9609375\" y=\"-27\" width=\"191.921875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-65.9609375, -12)\"><rect></rect><foreignObject width=\"131.921875\" 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>Treasure AI Studio</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-flowchart-D-5\" data-look=\"classic\" transform=\"translate(1322.375, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-116.28125\" y=\"-51\" width=\"232.5625\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-86.28125, -36)\"><rect></rect><foreignObject width=\"172.5625\" height=\"72\"><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>Agent<br>runs as the executor<br>or the connected person</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-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-fe828f9d0793cda417487ac3ebcdb4fd6e40beb8036d7bf9969d77c4ea7b3728-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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 1446.65625px;\" viewBox=\"0 0 1446.65625 131\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04{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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .error-icon{fill:#a44141;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .error-text{fill:#ddd;stroke:#ddd;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-thickness-normal{stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-thickness-thick{stroke-width:3.5px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-pattern-solid{stroke-dasharray:0;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-pattern-dashed{stroke-dasharray:3;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edge-pattern-dotted{stroke-dasharray:2;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .marker{fill:lightgrey;stroke:lightgrey;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .marker.cross{stroke:lightgrey;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 p{margin:0;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster-label text{fill:#F9FFFE;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster-label span{color:#F9FFFE;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster-label span p{background-color:transparent;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .label text,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 span{fill:#ccc;color:#ccc;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node rect,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node circle,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node ellipse,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node polygon,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .rough-node .label text,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node .label text,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .image-shape .label,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .icon-shape .label{text-anchor:middle;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .rough-node .label,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node .label,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .image-shape .label,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .icon-shape .label{text-align:center;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node.clickable{cursor:pointer;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .arrowheadPath{fill:lightgrey;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .flowchart-link{stroke:lightgrey;fill:none;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster text{fill:#F9FFFE;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .cluster span{color:#F9FFFE;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 rect.text{fill:none;stroke-width:0;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .icon-shape,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .icon-shape p,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .icon-shape .label rect,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 .node .neo-node{stroke:#ccc;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node rect,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].cluster rect,#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node polygon{stroke:url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node path{stroke:url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-gradient);stroke-width:1px;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node circle{stroke:url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04 :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_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\"><path d=\"M193.422,59.797L213.426,57.165C233.43,54.532,273.438,49.266,312.785,49.278C352.132,49.291,390.819,54.582,410.162,57.228L429.506,59.873\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-L_A_B_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_A_B_0\" data-points=\"W3sieCI6MTkzLjQyMTg3NSwieSI6NTkuNzk3NDI5MzA1OTEyNTk0fSx7IngiOjMxMy40NDUzMTI1LCJ5Ijo0NH0seyJ4Ijo0MzMuNDY4NzUsInkiOjYwLjQxNTM0MDU4Mzg1ODA0fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_flowchart-v2-pointEnd)\"></path><path d=\"M602.875,54.84L619.197,51.533C635.518,48.227,668.161,41.613,700.138,38.307C732.115,35,763.424,35,779.079,35L794.734,35\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-L_B_C_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_B_C_0\" data-points=\"W3sieCI6NjAyLjg3NSwieSI6NTQuODM5Nzk5ODAzMjI1Mzl9LHsieCI6NzAwLjgwNDY4NzUsInkiOjM1fSx7IngiOjc5OC43MzQzNzUsInkiOjM1fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_flowchart-v2-pointEnd)\"></path><path d=\"M990.656,35L1008.609,35C1026.563,35,1062.469,35,1097.717,37.857C1132.966,40.714,1167.556,46.427,1184.852,49.284L1202.147,52.141\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-L_C_D_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_C_D_0\" data-points=\"W3sieCI6OTkwLjY1NjI1LCJ5IjozNX0seyJ4IjoxMDk4LjM3NSwieSI6MzV9LHsieCI6MTIwNi4wOTM3NSwieSI6NTIuNzkyODI5MjQxMDcxNDN9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_flowchart-v2-pointEnd)\"></path><path d=\"M1206.094,91.207L1188.141,94.173C1170.188,97.138,1134.281,103.069,1082.382,106.035C1030.482,109,962.589,109,896.327,109C830.065,109,765.435,109,717.452,105.826C669.468,102.651,638.132,96.303,622.464,93.129L606.795,89.954\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-L_D_B_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_D_B_0\" data-points=\"W3sieCI6MTIwNi4wOTM3NSwieSI6OTEuMjA3MTcwNzU4OTI4NTd9LHsieCI6MTA5OC4zNzUsInkiOjEwOX0seyJ4Ijo4OTQuNjk1MzEyNSwieSI6MTA5fSx7IngiOjcwMC44MDQ2ODc1LCJ5IjoxMDl9LHsieCI6NjAyLjg3NSwieSI6ODkuMTYwMjAwMTk2Nzc0NjF9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_flowchart-v2-pointEnd)\"></path><path d=\"M433.469,83.585L413.465,86.321C393.461,89.056,353.453,94.528,314.106,94.718C274.759,94.908,236.074,89.816,216.731,87.27L197.388,84.725\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-L_B_A_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_B_A_0\" data-points=\"W3sieCI6NDMzLjQ2ODc1LCJ5Ijo4My41ODQ2NTk0MTYxNDE5Nn0seyJ4IjozMTMuNDQ1MzEyNSwieSI6MTAwfSx7IngiOjE5My40MjE4NzUsInkiOjg0LjIwMjU3MDY5NDA4NzR9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(313.4453125, 44)\"><g class=\"label\" data-id=\"L_A_B_0\" transform=\"translate(-95.0234375, -24)\"><foreignObject width=\"190.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>POST to the endpoint URL<br>Authorization: Bearer</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(700.8046875, 35)\"><g class=\"label\" data-id=\"L_B_C_0\" transform=\"translate(-72.9296875, -24)\"><foreignObject width=\"145.859375\" 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>Check the credential<br>on every request</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(1098.375, 35)\"><g class=\"label\" data-id=\"L_C_D_0\" transform=\"translate(-82.71875, -24)\"><foreignObject width=\"165.4375\" 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>Start or continue a chat<br>in a work folder</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(894.6953125, 109)\"><g class=\"label\" data-id=\"L_D_B_0\" transform=\"translate(-26.6796875, -12)\"><foreignObject width=\"53.359375\" 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>Answer</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(313.48602, 99.99443)\"><g class=\"label\" data-id=\"L_B_A_0\" transform=\"translate(-36.4609375, -12)\"><foreignObject width=\"72.921875\" 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>Tool result</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-flowchart-A-0\" data-look=\"classic\" transform=\"translate(100.7109375, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-92.7109375\" y=\"-39\" width=\"185.421875\" height=\"78\"></rect><g class=\"label\" style=\"\" transform=\"translate(-62.7109375, -24)\"><rect></rect><foreignObject width=\"125.421875\" height=\"48\"><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>MCP client<br>holds a credential</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-flowchart-B-1\" data-look=\"classic\" transform=\"translate(518.171875, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-84.703125\" y=\"-27\" width=\"169.40625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-54.703125, -12)\"><rect></rect><foreignObject width=\"109.40625\" 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>Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-flowchart-C-3\" data-look=\"classic\" transform=\"translate(894.6953125, 35)\"><rect class=\"basic label-container\" style=\"\" x=\"-95.9609375\" y=\"-27\" width=\"191.921875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-65.9609375, -12)\"><rect></rect><foreignObject width=\"131.921875\" 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>Treasure AI Studio</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-flowchart-D-5\" data-look=\"classic\" transform=\"translate(1322.375, 72)\"><rect class=\"basic label-container\" style=\"\" x=\"-116.28125\" y=\"-51\" width=\"232.5625\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-86.28125, -36)\"><rect></rect><foreignObject width=\"172.5625\" height=\"72\"><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>Agent<br>runs as the executor<br>or the connected person</p></span></div></foreignObject></g></g></g></g></g><defs><filter id=\"diagram-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-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-67baf83abce325fc103d209ed790ed4c0d19ae2bcf7e5e3b27ff42003850ff04-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    A[\"MCP client<br/>holds a credential\"] -->|\"POST to the endpoint URL<br/>Authorization: Bearer\"| B[\"Agent Gateway\"]\n    B -->|\"Check the credential<br/>on every request\"| C[\"Treasure AI Studio\"]\n    C -->|\"Start or continue a chat<br/>in a work folder\"| D[\"Agent<br/>runs as the executor<br/>or the connected person\"]\n    D -->|\"Answer\"| B\n    B -->|\"Tool result\"| A\n"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["クライアントがツールを呼び出します。"]}," エンドポイントの URL に、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}," ヘッダーで資格情報を付けて送ります。静的トークン方式ではエンドポイントのトークン、OAuth 方式では利用者がアクセスを許可したときにクライアントが取得したアクセストークンです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio がリクエストごとに資格情報を確認します。"]}," 資格情報がこのエンドポイントのもので期限切れ・失効していないこと、エンドポイントが有効であることを確かめます。静的トークン方式では、エンドポイントに実行者がいることと、実行者がまだフォルダにアクセスできることも確認します。OAuth 方式では、ツールで指定した作業フォルダを本人がまだ使えることを確認します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["作業を開始するツールは、作業フォルダでチャットを開きます。"]}," 静的トークン方式では、チャットは実行者として動き、フォルダを読み取り専用で参照し、書き込めるのはチャットとともに破棄される一時作業領域だけです。OAuth 方式では、チャットは接続した本人の通常の Studio チャットで、本人の作業フォルダのファイルを変更できます。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth#%E3%83%81%E3%83%A3%E3%83%83%E3%83%88%E3%81%AF%E6%9C%AC%E4%BA%BA%E3%81%AE%E9%80%9A%E5%B8%B8%E3%81%AE-studio-%E3%83%81%E3%83%A3%E3%83%83%E3%83%88"},"children":["チャットは本人の通常の Studio チャット"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ゲートウェイが回答を待ち、ツールの結果として返します。"]}," 待機時間内にエージェントの作業が終わらなかった場合は、その旨と、後で結果を取りに来るためのチャット ID が返ります。チャットはそのまま動き続けます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["どちらの方式でも、チャットごとのトークンの発行や交換はありません。静的トークン方式の Gateway Token については ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/tokens"},"children":["Gateway Token と Chat Access Token"]},"で扱います。OAuth 方式のクライアントは認証情報を自分で取得・更新します。流れは ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth#%E5%88%A9%E7%94%A8%E8%80%85%E3%81%8C%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AE%E6%B5%81%E3%82%8C"},"children":["利用者が接続するときの流れ"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"クライアントを設定する","__idx":2},"children":["クライアントを設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エンドポイントは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Streamable HTTP"]}," で MCP を話します。それ以外にクライアントに必要なものは、エンドポイントの接続方式によって異なります。"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"OAuth","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントには、リモート MCP サーバー向けの OAuth ログインに対応しているものが必要です。設定する値は1つだけです。"]},{"$$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":["サーバー URL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイントの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["接続 URL"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<アカウントの Agent Gateway>/v1/mcp/<エンドポイント ID>"]},"）。エンドポイントにアカウントの共通 URL が割り当てられている場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["共通 MCP URL"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<アカウントの Agent Gateway>/v1/mcp"]},"）も使えます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["トランスポート"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Streamable HTTP"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ヘッダーは空のままにします。クライアントが初めて接続すると、エンドポイントは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," を返し、ログイン先をクライアントに伝えます。クライアントは Treasure AI Studio に自身を登録したうえでブラウザを開き、利用者がログインして ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["アクセスを許可"]}," を選択します。この画面については ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth#%E5%88%A9%E7%94%A8%E8%80%85%E3%81%8C%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AE%E6%B5%81%E3%82%8C"},"children":["利用者が接続するときの流れ"]},"で説明しています。"]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"静的トークン","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"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":"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":["サーバー URL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイントの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["接続 URL"]},"。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<アカウントの Agent Gateway>/v1/mcp/<エンドポイント 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":["Streamable HTTP"]}]},{"$$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":["Authorization: Bearer tasgwt_<シークレット>"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["静的トークン方式のエンドポイントは、このヘッダーだけで認証します。ブラウザでのログインを前提とするクライアントでは、ログインする先がありません。ヘッダーは固定値としてクライアントの設定に入力するか、トークンをシークレット管理ツールに置いてください。Web ページのコードには埋め込まないでください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントを設定する前に値を確かめたい場合は、シェルから ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://modelcontextprotocol.io/docs/tools/inspector"},"children":["MCP Inspector"]}," でツールの一覧を取得できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npx @modelcontextprotocol/inspector --cli \"$MCP_SERVER_URL\" \\\n  --transport http \\\n  --header \"Authorization: Bearer $MCP_TOKEN\" \\\n  --method tools/list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["先に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MCP_SERVER_URL"]}," にエンドポイントの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["接続 URL"]}," を、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MCP_TOKEN"]}," に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," で始まるトークンを設定してください。正しく動いているエンドポイントは、後述の6つのツールを返します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," はトークンが拒否されたこと、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," はエンドポイントが無効か動作できない状態、またはリクエストに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," ヘッダーが付いていたことを示します。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0"},"children":["トラブルシューティング"]},"を参照してください。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ツール","__idx":3},"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":"22%","data-label":"ツール"},"children":["ツール "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"48%","data-label":"役割"},"children":["役割 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","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":"code","attributes":{},"children":["id"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," とともに一覧します。静的トークン方式のエンドポイントが公開するフォルダは1つなので、結果は常に1件です。OAuth 方式のエンドポイントでは、接続した本人の私有作業フォルダと、本人が Studio に追加済みで、今も利用できる共有作業フォルダが返ります"]},{"$$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":["name"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["description"]}," とともに名前順で一覧します"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]}]}]},{"$$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":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action_name"]}]}]},{"$$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":["message"]}," に書いたタスクで新しいチャットを開始し、結果を待ちます。合うアクションがないときに使います"]},{"$$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":"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":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]}]},{"$$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":["continue_chat"]}," で送ったものを含む）の結果を、何も送らずに読み取ります。チャットが実行中なら結果を待ちます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["6つのツールはすべてのエンドポイントで使え、一部だけを隠すことはできません。OAuth 方式のエンドポイントでは、アクションの実行やチャットの開始・継続を含む、6つすべてのツールに同じスコープ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]}," が必要です。",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth#mcp-%E3%81%AE%E6%A8%A9%E9%99%90"},"children":["MCP の権限"]},"を参照してください。引数は実行前に各ツールが公開しているスキーマで検証されます。未知の引数は無視されずに拒否され、1回の呼び出しの問題はまとめて1つのエラーとして返ります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一覧に出るアクション","__idx":4},"children":["一覧に出るアクション"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}," は、指定した作業フォルダに定義されている",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/skills/actions"},"children":["アクション"]},"を返します。返る ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," に渡してください。一覧はツールを呼んだ時点で読み込まれるため、フォルダに追加したアクションはすぐにクライアントから使えます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"アクションの実行とチャットの開始","__idx":5},"children":["アクションの実行とチャットの開始"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," に渡せるのはアクションの名前だけで、引数や追加の指示は受け付けません。アクションを保存済みの内容どおりに実行するので結果が予測しやすく、ツールの説明もまずこちらを使うようクライアントに促しています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," は、代わりにタスクを自然文で受け取ります。Studio 側のエージェントにはクライアントでの会話が見えないため、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," にはタスクに必要なことをすべて書いてください。前提となる文脈、使うデータ、結果に期待する形です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のチャットに指示を送るには ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},"、作業中の回答を待つには ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を使います。同じタスクで開始系のツールをもう一度呼ぶと、別の実行がもう1つ始まります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"結果を読む","__idx":6},"children":["結果を読む"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["どのツールも、テキストブロック1つに JSON オブジェクトを1つ入れて返します。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}," はデータをそのまま返します。チャットを扱う4つのツールは、何が起きたかを ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," で示すオブジェクトを返します。"]},{"$$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":"16%","data-label":"status"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"44%","data-label":"意味"},"children":["意味 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"40%","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":["completed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターンが完了しました。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result"]}," にエージェントの回答がテキストで入っています"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result"]}," を読む"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ゲートウェイの待機時間が終わった時点で、エージェントはまだ作業中でした。チャットは止まっていません"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," を指定して ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を呼ぶ。別の実行を始めたり、指示を送り直したりしない"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["question"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エージェントが回答の代わりに質問をしました。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["question"]}," に質問が入っています。この質問には回答できないため、ゲートウェイがクライアントに代わって回答をスキップします。スキップが受け付けられたかは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," で分かり、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," なら、エージェントは回答なしで作業を続けます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," で結果を読む。作業の方向を変えたい場合は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," を送る"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ターンが失敗で終わりました。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," は決まった文言のいずれかで、具体的な原因はプラットフォームの外には出ません"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["再試行するかを判断する。この結果から読み取れることはこれ以上ない"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["unknown"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["結果を読み取れませんでした。チャットはまだ動いている可能性があります"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," を指定して ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を呼ぶ。元の指示を繰り返さない"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["待機があるのは、MCP クライアントがツール呼び出しに時間制限を設けていて、アクションがそれより長くかかることがあるためです。ゲートウェイは最大 200 秒待ち、クライアント側でタイムアウトさせる代わりに、チャット ID とともに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," を返します。ステータスが変わるまで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を繰り返し呼ぶクライアントであれば、最終的なステータスまでたどり着けます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["返るのはエージェントのテキストだけです。エージェントの推論、呼び出したツールとその出力は含まれず、書き出したファイルも返りません。静的トークン方式では、そのファイルは作業領域とともに破棄されます。OAuth 方式では本人の作業フォルダに残りますが、クライアントから読むことはできません。クライアントが必要とするものは回答の本文に含まれている必要があります。ファイルを生成するアクションでは、何を生成したかを回答に書かせてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"続きの指示は同じエンドポイントで","__idx":7},"children":["続きの指示は同じエンドポイントで"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," が扱えるのは、同じエンドポイントから開始したチャットだけです。別のエンドポイントのチャット ID や、Studio で開始したチャットの ID を渡すと、フォルダが同じでも ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]}," が返ります。静的トークン方式では、あるトークンで開始したチャットは同じエンドポイントの別のトークンでも続けられるため、トークンをローテーションしても会話は途切れません。OAuth 方式では、続きの指示が届くのは接続した本人のチャットだけです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["チャットは、吹き出しが2つ重なったアイコン付きで Studio のチャット一覧に表示されます。静的トークン方式のエンドポイントのチャットは、実行者のチャット一覧に ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP"]}," のラベル付きで表示されます。OAuth 方式のエンドポイントのチャットは、接続した本人のチャット一覧に、チャットが動いた作業フォルダの名前をラベルとして表示されます。アイコンのツールチップは ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「MCP 経由で作成」"]}," です。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-agent-channels-mcp-chat.9feaa468325868869a5582d430b751e2db5591d9063fa41b775129650e2d0498.679d8dbd.webp","alt":"サイドバーの最近のチャット。タイトルの上に MCP というラベルが付き、吹き出しが2つ重なったアイコンのチャットが表示されている","framed":false,"withLightbox":true,"width":"300px"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限値","__idx":8},"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":"34%","data-label":"制限"},"children":["制限 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"66%","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":["1 分あたり 30 件。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," の合計で数えます。静的トークン方式ではエンドポイントごとに、すべてのトークンをまとめて数えます。OAuth 方式ではエンドポイントごとに、接続した利用者1人ずつ数えます。超えるとツールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rate_limited"]}," を返します"]}]},{"$$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":["start_chat"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," で 1〜32,768 文字"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ツール呼び出しごとの待機"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最大 200 秒。その後は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," を返します"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["接続あたりの作業フォルダ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["静的トークン方式では1つ。OAuth 方式では、接続した本人の私有作業フォルダと、本人が Studio に追加済みで、今も利用できる共有作業フォルダ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1回の HTTP リクエストに含められるもの"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON-RPC メッセージ1つ。バッチは拒否されます"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接続はステートレスです。開いたり閉じたりする MCP セッションはないため、受け付ける HTTP メソッドは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," だけです。また、呼び出しの途中でクライアントが接続を切っても、開始したチャットは止まりません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サポートされないもの","__idx":9},"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":["status: \"question\""]}," として返ります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["アクションへの引数。"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," は保存済みの内容どおりに実行します。入力を渡したい場合は、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," でタスクを説明してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["静的トークン方式での、呼び出しごとのフォルダや実行者の指定。"]}," どちらもエンドポイントで固定されています。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["リソース、プロンプトなどの MCP の機能。"]}," エンドポイントが提供するのはツールだけです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1つのエンドポイントでの静的トークン方式と OAuth 方式の併用。"]}," 接続方式は作成時に選び、あとから変更できません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["認可コードを手動で戻す OAuth クライアント。"]}," ログインの結果は、ブラウザ経由のコールバックで受け取る必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ブラウザからの呼び出し。"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," ヘッダーの付いたリクエストは拒否されます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エラー","__idx":10},"children":["エラー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["失敗には2つの段階があります。資格情報が拒否されると HTTP リクエスト全体が失敗し、個々のツール呼び出しの問題は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isError"]}," 付きのツール結果として返ります。"]},{"$$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":"70%","data-label":"意味"},"children":["意味 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_token"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["資格情報が不明・失効済み・期限切れ、別のエンドポイントのもの、またはエンドポイントが削除されています。外からはどれも同じに見えます。OAuth 方式のクライアントが資格情報を送らなかった場合、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WWW-Authenticate"]}," ヘッダーにはエラーコードが入らず、ログイン先がクライアントに示されます。本文は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_token"]}," のままです"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["insufficient_scope"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth 方式のみ。クライアントのトークンに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]}," が含まれていません。応答にこのスコープが示されるので、クライアントはそれを要求できます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp_disabled"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイントが無効です。静的トークン方式では、実行者が空席の場合や、実行者がフォルダへのアクセスを失っている場合も含みます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]},"（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_refused"]},"）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエストに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," ヘッダーが付いていました"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["405"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}," で呼び出しました。受け付けるのは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," だけです"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["406"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエストの ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Accept"]}," ヘッダーに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["text/event-stream"]}," の両方が含まれていませんでした"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON-RPC エラー ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「The service is temporarily unavailable.」"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この呼び出しで Treasure AI Studio に到達できませんでした。何も開始されていないので、再試行してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールのエラー ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_request"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["引数がツールのスキーマに合いませんでした。メッセージにすべての問題が列挙されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールのエラー ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フォルダ ID、アクション名、チャット ID が存在しないか、このエンドポイントからは扱えません。OAuth 方式では、接続した本人が扱えない場合も含みます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールのエラー ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rate_limited"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["このエンドポイントで（OAuth 方式ではこの利用者が）直近 1 分間に開始したチャットが多すぎます。時間をおいて再試行してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールのエラー ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dispatch_failed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アクション、チャット、続きの指示を開始できませんでした。再試行してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールのエラー ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folder_unavailable"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["その時点でフォルダの内容を読み込めませんでした。再試行してください"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":11},"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":"38%","data-label":"症状"},"children":["症状 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"62%","data-label":"原因と対処"},"children":["原因と対処 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth 方式のクライアントが何度もログインを求める、または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," で拒否される"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["共通 MCP URL の設定が変更された場合は、もう一度認可してください。エンドポイントが削除された場合や、利用者がアカウントから外れた場合は、そのエンドポイント経由のアクセスは元に戻せません。別の OAuth エンドポイントについてアカウント管理者に相談してください。同意画面に表示されるエラーについては ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth#%E3%83%88%E3%83%A9%E3%83%96%E3%83%AB%E3%82%B7%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0"},"children":["OAuth 方式の MCP エンドポイント"]},"を参照してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["静的トークンを使ったすべてのリクエストが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," で拒否される"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ヘッダーが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization: Bearer <トークン>"]}," の形でトークン全体を含んでいるか、URL とトークンが同じエンドポイントのものかを確認してください。どちらも問題なければ、トークンが期限切れか失効しています。エンドポイントの詳細ページで新しく発行してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべてのリクエストが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," で拒否される"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["設定 → エージェントチャネル"]},"でエンドポイントを開き、ステータスを確認してください。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["無効"]}," または ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["停止中（実行者が必要）"]}," なら、再び有効にする必要があります。静的トークン方式のエンドポイントが ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["有効"]}," の場合は、実行者がフォルダへのアクセスを失っている可能性があります。OAuth 方式で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["insufficient_scope"]}," が返る場合は、クライアントのトークンに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]}," が含まれていません。クライアントをもう一度認可し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]}," を許可してください"]}]},{"$$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"]}," で指定した作業フォルダに定義されていません。Studio でフォルダを開き、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["アクションとスキル"]}," セクションにアクションとして表示されているか確認してください（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/skills/actions"},"children":["アクション"]},"を参照）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ツールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," を返し続ける"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チャットはまだ作業中です。同じ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," を呼び続けてください。進み具合は、実行者（静的トークン方式）または接続した本人（OAuth 方式）が Studio でチャットを開くと確認できます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["自分で開始したチャットに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," を送ると ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]}," が返る"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["そのチャットは別のエンドポイントから開始されたか、削除されています。OAuth 方式では、別の利用者が開始したチャットの場合もあります。続きの指示は、チャットを開始したエンドポイントでしか送れません"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"次のステップ","__idx":12},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-endpoints"},"children":["静的トークン方式の MCP エンドポイント"]}," — 静的トークン方式のエンドポイント、実行者、トークン"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth 方式の MCP エンドポイント"]}," — 各利用者が本人として接続するエンドポイント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/snowflake-cortex-code"},"children":["Snowflake Cortex CodeをTreasure AIに接続する"]}," — Snowflake Cortex Code CLIのセットアップ手順"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/databricks-genie-code"},"children":["Databricks Genie CodeをTreasure AIに接続する"]}," — Databricks Genie Code CLIのセットアップ手順"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/skills/actions"},"children":["アクション"]}," — クライアントが実行するアクションを書く"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/channel-chats"},"children":["エージェントチャネルのチャットが到達できる範囲"]}," — 各チャットの作業領域、資格情報、制限"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/agent-channels/tokens"},"children":["Gateway Token と Chat Access Token"]}," — エンドポイントのトークンのローテーションと失効"]}]}]},"headings":[{"value":"MCP クライアントを接続する","id":"mcp-クライアントを接続する","depth":1},{"value":"ツールの呼び出しが Studio の作業になるまで","id":"ツールの呼び出しが-studio-の作業になるまで","depth":2},{"value":"クライアントを設定する","id":"クライアントを設定する","depth":2},{"value":"ツール","id":"ツール","depth":2},{"value":"一覧に出るアクション","id":"一覧に出るアクション","depth":3},{"value":"アクションの実行とチャットの開始","id":"アクションの実行とチャットの開始","depth":3},{"value":"結果を読む","id":"結果を読む","depth":2},{"value":"続きの指示は同じエンドポイントで","id":"続きの指示は同じエンドポイントで","depth":3},{"value":"制限値","id":"制限値","depth":2},{"value":"サポートされないもの","id":"サポートされないもの","depth":2},{"value":"エラー","id":"エラー","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2},{"value":"次のステップ","id":"次のステップ","depth":2}],"frontmatter":{"seo":{"title":"Treasure AI Studio - MCP クライアントを接続する","description":"MCP クライアントを OAuth 方式または静的トークン方式で Treasure AI Studio の MCP エンドポイントに接続し、6つのツールでアクションやチャットを実行する方法と、結果の読み方・制限値・エラーを解説します。"},"platforms":["Web","Desktop"]},"lastModified":"2026-11-16T07:29:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/ai-studio/agent-channels/mcp-clients","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}