{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","tabs","tab","img"]},"redocly_category":"AI","product_name":"Treasure AI Studio","type":"markdown"},"seo":{"title":"Connecting an MCP Client to Treasure AI Studio","description":"Connect an MCP client to a Treasure AI Studio MCP Endpoint with OAuth or a static token, then run Actions and chats with six tools and read their results, limits, and errors.","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":"connecting-an-mcp-client","__idx":0},"children":["Connecting an MCP Client"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["MCP Endpoint"]}," is a remote MCP server for Treasure AI Studio work folders. A client connected to it gets six tools: two to find out what the work folders offer, three to start or continue work, and one to collect a result. The work runs in Treasure AI Studio, not in the client. The client calls a tool, Studio starts a chat in a work folder, and the tool returns the agent's answer."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Who the chat runs as depends on the endpoint's connection method. Through a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["static-token"]}," endpoint, it runs as the endpoint's executor in the one shared work folder the endpoint publishes. Through an ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth"]}]}," endpoint, it runs as the person who connected the client, in their own work folders."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This page covers configuring a client, what each tool does, and how to read what comes back. It is for whoever sets up the client and for anyone writing an agent against the endpoint directly. To create the endpoint and get its URL, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Static-Token MCP Endpoints"]}," or ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth MCP Endpoints"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"how-a-tool-call-becomes-work-in-studio","__idx":1},"children":["How a Tool Call Becomes Work in 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":["The client sends a tool call"]}," to the endpoint's URL with its credential in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}," header: the endpoint's token for a static-token endpoint, or the access token the client obtained when the person allowed access for an OAuth endpoint."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio checks the credential on every request"]}," — that it belongs to this endpoint and has not expired or been revoked, and that the endpoint is enabled. For a static-token endpoint it also checks that the endpoint has an executor and that the executor still has access to the folder; for an OAuth endpoint, that the person can still use the folder the tool names."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tools that start work open a chat"]}," in a work folder. Through a static-token endpoint, the chat runs as the executor, reads the folder read-only, and writes only to a temporary work area that is discarded with the chat. Through an OAuth endpoint, it is the connected person's own ordinary Studio chat, which can change files in their work folders — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#the-chats-are-the-persons-own-studio-chats"},"children":["The Chats Are the Person's Own Studio Chats"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The gateway waits for the answer"]}," and returns it as the tool result. If the agent is still working when the wait runs out, the result says so and gives the chat ID to come back with. The chat keeps running."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["No per-chat token is issued or exchanged with either method. A static-token endpoint's Gateway Token is covered in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/tokens"},"children":["Gateway Tokens and Chat Access Tokens"]},"; an OAuth client obtains and renews its own credentials, as described in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#what-a-person-sees-when-they-connect"},"children":["OAuth MCP Endpoints"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configure-the-client","__idx":2},"children":["Configure the Client"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The endpoint speaks MCP over ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Streamable HTTP"]},". What else the client needs depends on the endpoint's connection method."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"OAuth","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The client needs to support OAuth sign-in for remote MCP servers. Give it one value:"]},{"$$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":"Setting"},"children":["Setting "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"Value"},"children":["Value "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Server URL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The endpoint's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection URL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<your account's Agent Gateway>/v1/mcp/<endpoint ID>"]},", or, if the endpoint holds the account's common URL, the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Common MCP URL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<your account's Agent Gateway>/v1/mcp"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Transport"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Streamable HTTP"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Leave the header empty. When the client first connects, the endpoint answers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," and tells the client where to sign in. The client registers itself with Treasure AI Studio, then opens a browser so the person can sign in and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow access"]},". ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#what-a-person-sees-when-they-connect"},"children":["What a Person Sees When They Connect"]}," walks through that screen."]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Static token","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The client needs to send a fixed header with every request. Give it the values from the endpoint's completion screen:"]},{"$$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":"Setting"},"children":["Setting "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"Value"},"children":["Value "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Server URL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The endpoint's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection URL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<your account's Agent Gateway>/v1/mcp/<endpoint ID>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Transport"]}]},{"$$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":["Header"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization: Bearer tasgwt_<the secret>"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A static-token endpoint authenticates with this header only, so a client that expects to sign in through a browser has nothing to sign in to. Enter the header as a fixed value in the client's configuration, or keep the token in a secret manager. Do not put it in a web page's code."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To check the values before configuring a client, list the tools with the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://modelcontextprotocol.io/docs/tools/inspector"},"children":["MCP Inspector"]}," from a shell:"]},{"$$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":["Set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MCP_SERVER_URL"]}," to the endpoint's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection URL"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MCP_TOKEN"]}," to its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," token first. A working endpoint answers with the six tools below. A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," means the token was refused; a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," means the endpoint is disabled or cannot run, or the request carried an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," header. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#troubleshooting"},"children":["Troubleshooting"]},"."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"the-tools","__idx":3},"children":["The Tools"]},{"$$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":"Tool"},"children":["Tool "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"48%","data-label":"What It Does"},"children":["What It Does "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Arguments"},"children":["Arguments "]}]}]},{"$$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":["Lists the work folders available through the connection, each with its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]},". A static-token endpoint publishes exactly one, so its list always has one entry. Through an OAuth endpoint, the list is the connected person's private work folders and the shared work folders they have added to Studio and can still use"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$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":["Lists the folder's Actions, each with its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["description"]},", sorted by name"]},{"$$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":["Starts a new chat that runs an Action with its saved instructions, then waits for the result. Each call is a separate run"]},{"$$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":["Starts a new chat with the task in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]},", then waits for the result. Use it when no Action fits"]},{"$$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":["Sends a new instruction to an existing chat, to ask for more work or a revision, then waits for the reply"]},{"$$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":["Reads the result of the chat's latest instruction, including one sent with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},", without sending anything. Waits if the chat is still running"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every endpoint offers all six, and an endpoint cannot hide any of them. Through an OAuth endpoint, all six tools require the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]}," scope, including the tools that run Actions and start or continue chats — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#the-mcp-permission"},"children":["The MCP Permission"]},". Arguments are checked against each tool's published schema before anything runs. Unknown arguments are refused rather than ignored, and every problem with a call is reported together in one error."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"which-actions-are-listed","__idx":4},"children":["Which Actions Are Listed"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}," returns the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/skills/actions"},"children":["Actions"]}," defined in the work folder you pass. Pass the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name"]}," it returns to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},". The list is read when the tool is called, so an Action added to the folder is available to the client right away."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"run-an-action-or-start-a-chat","__idx":5},"children":["Run an Action or Start a Chat"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," takes no input beyond the Action's name: no arguments and no extra instructions. It runs the Action exactly as it is saved, which makes it the predictable choice and the one the tool descriptions steer a client toward first."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," takes a task in plain language instead. The agent in Studio does not see the client's conversation, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," has to carry everything the task needs: the context, the data to use, and what the result should look like."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," to send an instruction on an existing chat. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," to wait for an answer that is still being produced. Calling a starting tool again for the same task starts a second, separate run."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"read-a-result","__idx":6},"children":["Read a Result"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every tool answers with one JSON object in a text block. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}," return their data directly. The four tools that work with a chat return an object whose ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," says what happened:"]},{"$$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":"Meaning"},"children":["Meaning "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"40%","data-label":"What to Do Next"},"children":["What to Do Next "]}]}]},{"$$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":["The turn finished. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result"]}," holds the agent's answer as text"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read ",{"$$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":["The agent was still working when the gateway's wait ran out. The chat has not stopped"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},". Do not start another run or resend the instruction"]}]},{"$$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":["The agent asked a question instead of answering. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["question"]}," holds it. The gateway declines it on your behalf, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["declined"]}," says whether that was confirmed; when it is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", the agent carries on without an answer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," to read the outcome. To change the direction of the work, send a ",{"$$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":["The turn ended in failure. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," is one of a fixed set of messages, and the underlying reason stays inside the platform"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Decide whether to retry; there is nothing more to read from this result"]}]},{"$$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":["The result could not be read. The chat may still be running"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},". Do not repeat the original instruction"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The wait exists because MCP clients put a time limit on a tool call, and an Action can take longer than that. The gateway waits up to 200 seconds, then answers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," with the chat ID rather than letting the client time out. A client that calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," in a loop until the status changes will reach the final status."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Only the agent's text comes back. The agent's reasoning, the tools it called, and their output are not included, and neither are any files it wrote. Through a static-token endpoint, those files are discarded with the work area; through an OAuth endpoint, they stay in the person's work folder, but the client still cannot read them. Anything the client needs has to be in the answer, so for an Action that produces a file, have the Action say what it produced."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"follow-ups-stay-on-the-same-endpoint","__idx":7},"children":["Follow-Ups Stay on the Same Endpoint"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," reach only chats that were started through the same endpoint. A chat ID from a different endpoint, or from a chat started in Studio, is answered with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]},", even when the folder is the same. Through a static-token endpoint, a chat started with one token can be continued with another token of the same endpoint, so rotating a token does not cut off a conversation. Through an OAuth endpoint, follow-ups also reach only the connected person's own chats."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The chats appear in a Studio chat list with a conversation icon of two speech bubbles. A static-token endpoint's chats are in the executor's list, labelled ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP"]},". An OAuth endpoint's chats are in the connected person's own list under the folder they ran in, with the folder's name as the label; the icon's tooltip reads ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Created through MCP\""]},"."]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-agent-channels-mcp-chat.9feaa468325868869a5582d430b751e2db5591d9063fa41b775129650e2d0498.679d8dbd.webp","alt":"Recent Chats in the sidebar showing a chat labelled MCP above its title, with a conversation icon of two speech bubbles","framed":false,"withLightbox":true,"width":"300px"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"limits","__idx":8},"children":["Limits"]},{"$$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":"Limit"},"children":["Limit "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"66%","data-label":"Value"},"children":["Value "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New chats"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["30 per minute, counted across ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},". A static-token endpoint counts per endpoint, across all of its tokens; an OAuth endpoint counts per endpoint for each connected person. Over the limit, the tool answers ",{"$$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":["Message length"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 to 32,768 characters for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Wait per tool call"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Up to 200 seconds, then ",{"$$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":["Folders per connection"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One for a static-token endpoint. Through an OAuth endpoint, the connected person's private work folders and the shared work folders they have added to Studio and can still use"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Requests per call"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One JSON-RPC message per HTTP request. Batches are refused"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The connection is stateless. There is no MCP session to open or close, so ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," is the only HTTP method the endpoint accepts, and a client that drops its connection mid-call does not stop the chat it started."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-is-not-supported","__idx":9},"children":["What Is Not Supported"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Answering the agent's questions."]}," A question is always declined automatically, and the result reports it as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: \"question\""]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Arguments for an Action."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," runs the Action as saved. To pass input, use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," and describe the task."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Choosing a different folder or executor per call on a static-token endpoint."]}," Both are fixed on the endpoint."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resources, prompts, and other MCP capabilities."]}," The endpoint offers tools only."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static-token and OAuth on one endpoint."]}," The connection method is chosen at creation and cannot be changed."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth clients that return the authorization code by hand."]}," Sign-in has to come back through a browser callback."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Browsers."]}," Requests with an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," header are refused."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"errors","__idx":10},"children":["Errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A call can fail at two levels. A refused credential fails the whole HTTP request; a problem with one tool call comes back as a tool result with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isError"]}," set."]},{"$$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":"Response"},"children":["Response "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"70%","data-label":"Meaning"},"children":["Meaning "]}]}]},{"$$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"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_token"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The credential is unknown, revoked, or expired, or it belongs to a different endpoint, or the endpoint has been deleted. All of these look the same from outside. When an OAuth client sends no credential, the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]},"'s ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WWW-Authenticate"]}," header leaves out the error code and points the client to where to sign in; the body still reads ",{"$$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"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["insufficient_scope"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth only. The client's token does not include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]},". The response names this scope so the client can request it"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp_disabled"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The endpoint is disabled. For a static-token endpoint, also when it has no executor or the executor has lost access to the folder"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["browser_refused"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The request carried an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Origin"]}," header"]}]},{"$$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":["The client used ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]},". Only ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," is accepted"]}]},{"$$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":["The request's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Accept"]}," header did not include both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["text/event-stream"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON-RPC error ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"The service is temporarily unavailable.\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AI Studio could not be reached for this call. Nothing was started; try again"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool error ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["invalid_request"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The arguments did not match the tool's schema. The message lists every problem"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool error ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The folder ID, Action name, or chat ID does not exist or is not reachable through this endpoint — or, through an OAuth endpoint, by the connected person"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool error ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rate_limited"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Too many chats were started on this endpoint in the last minute — through an OAuth endpoint, by this person. Try again later"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool error ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["dispatch_failed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Action, chat, or follow-up could not be started. Try again"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tool error ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["folder_unavailable"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The folder's contents could not be read at that moment. Try again"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":11},"children":["Troubleshooting"]},{"$$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":"Symptom"},"children":["Symptom "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"62%","data-label":"Cause and Fix"},"children":["Cause and Fix "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An OAuth client keeps asking to sign in, or is refused with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["If the common MCP URL setting changed, authorize again. If the endpoint was deleted or the person left the account, access through that endpoint cannot be restored; ask an account administrator about another OAuth endpoint. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#troubleshooting"},"children":["OAuth MCP Endpoints"]}," for errors on the consent screen"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Every request with a static token is refused with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Check that the header is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization: Bearer <token>"]}," with the full token, and that the URL and token come from the same endpoint. If they do, the token has expired or been revoked — issue a new one on the endpoint's detail page"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Every request is refused with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Open the endpoint in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}," and check its status. If it is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Disabled"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Stopped — needs an executor"]},", it has to be enabled again; if a static-token endpoint is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Active"]},", the executor may have lost access to the folder. Through an OAuth endpoint, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["insufficient_scope"]}," means the client's token does not include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp"]},"; authorize the client again and grant ",{"$$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"]}," returns nothing, or not the Action you expected"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Action is not defined in the work folder passed as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},". Open the folder in Studio and check that it appears as an Action in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Actions and Skills"]}," section — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/skills/actions"},"children":["Actions"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A tool keeps returning ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The chat is still working. Keep calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," with the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},"; to see progress, the executor (static token) or the connected person (OAuth) can open the chat in Studio"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," answers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["not_found"]}," for a chat you started"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The chat was started through a different endpoint, it has been deleted, or, through an OAuth endpoint, another person started it. Follow-ups work only on the endpoint that started the chat"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":12},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Static-Token MCP Endpoints"]}," — a static-token endpoint, its executor, and its tokens."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth MCP Endpoints"]}," — endpoints each person connects to as themselves."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/snowflake-cortex-code"},"children":["Connect Snowflake Cortex Code to Treasure AI"]}," — step-by-step setup for the Snowflake Cortex Code CLI."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/databricks-genie-code"},"children":["Connect Databricks Genie Code to Treasure AI"]}," — step-by-step setup for the Databricks Genie Code CLI."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/skills/actions"},"children":["Actions"]}," — write the Actions the client runs."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/channel-chats"},"children":["What an Agent Channel Chat Can Reach"]}," — the workspace, credentials, and limits behind each chat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/tokens"},"children":["Gateway Tokens and Chat Access Tokens"]}," — rotate and revoke the endpoint's token."]}]}]},"headings":[{"value":"Connecting an MCP Client","id":"connecting-an-mcp-client","depth":1},{"value":"How a Tool Call Becomes Work in Studio","id":"how-a-tool-call-becomes-work-in-studio","depth":2},{"value":"Configure the Client","id":"configure-the-client","depth":2},{"value":"The Tools","id":"the-tools","depth":2},{"value":"Which Actions Are Listed","id":"which-actions-are-listed","depth":3},{"value":"Run an Action or Start a Chat","id":"run-an-action-or-start-a-chat","depth":3},{"value":"Read a Result","id":"read-a-result","depth":2},{"value":"Follow-Ups Stay on the Same Endpoint","id":"follow-ups-stay-on-the-same-endpoint","depth":3},{"value":"Limits","id":"limits","depth":2},{"value":"What Is Not Supported","id":"what-is-not-supported","depth":2},{"value":"Errors","id":"errors","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Connecting an MCP Client to Treasure AI Studio","description":"Connect an MCP client to a Treasure AI Studio MCP Endpoint with OAuth or a static token, then run Actions and chats with six tools and read their results, limits, and errors."},"platforms":["Web","Desktop"]},"lastModified":"2026-11-16T07:29:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/ai-studio/agent-channels/mcp-clients","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}