{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","img"]},"redocly_category":"AI","product_name":"Headless","type":"markdown"},"seo":{"title":"Connect AWS Kiro to Treasure AI","description":"Connect AWS Kiro IDE to Treasure AI using the Local MCP Server (tdx mcp) or a Studio MCP Endpoint to query data, manage segments, and run Studio Actions.","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-aws-kiro-to-treasure-ai","__idx":0},"children":["Connecting AWS Kiro to Treasure AI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["AWS Kiro"]}," is an agentic IDE with built-in Model Context Protocol (MCP) support. Connect AWS Kiro IDE to Treasure AI through MCP so Kiro's agent can query databases, inspect schemas, manage parent segments, segments, journeys, and workflows, or run ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/overview"},"children":["Treasure AI Studio"]}," Actions and chats without leaving your editor."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can connect AWS Kiro IDE to Treasure AI using either or both of two MCP integration patterns:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/local-mcp-server"},"children":["Local MCP Server"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},")"]},": Runs the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/"},"children":["Treasure Code (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},") CLI"]}," locally over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]},". Kiro calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," using your local ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile to query databases and work with parent segments, segments, journeys, and workflows directly against Treasure AI APIs."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Treasure AI Studio MCP Endpoint"]}]},": Connects over Streamable HTTP to the Treasure AI Studio Agent Gateway. Kiro delegates work to a shared work folder in Treasure AI Studio, runs saved Actions, and starts or continues Studio chats."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"which-mcp-connection-should-you-use","__idx":1},"children":["Which MCP Connection Should You Use?"]},{"$$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":"Aspect"},"children":["Aspect "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"39%","data-label":"Local MCP Server ( tdx mcp )"},"children":["Local MCP Server (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},") "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"39%","data-label":"Treasure AI Studio MCP Endpoint"},"children":["Treasure AI Studio MCP Endpoint "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Best for"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Engineers querying tables, exploring databases, and working with parent segments, segments, journeys, and workflows from Kiro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teams running saved Studio Actions, listing shared work folders, and starting or continuing Studio chats from Kiro"]}]},{"$$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":["Local ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]}," process (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},") started by Kiro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Remote Streamable HTTP (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile stored in your system keychain (optional dedicated ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE=kiro"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Static Gateway Token (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization: Bearer tasgwt_<secret>"]},")"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Runs as"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Treasure AI user authenticated in your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The MCP endpoint's designated executor in one shared work folder"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["AI token usage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro only (Treasure AI serves standard API requests)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro + Treasure AI Studio (Treasure AI Credits for Studio chats and Actions)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tools exposed"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can connect both MCP servers to Kiro at the same time in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]},". With both configured, Kiro has ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," (2 tools, running locally on your machine) and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," (6 tools, running work in Studio)."]},{"$$mdtype":"Tag","name":"Diagram","attributes":{"data-language":"mermaid","diagramType":"mermaid","diagramSource":"flowchart LR\n    subgraph local[\"Option 1: Local MCP Server — Local stdio\"]\n        K1[\"AWS Kiro IDE\"] -->|\"stdio (tdx profile)\"| TDX[\"tdx mcp\"]\n        TDX -->|\"HTTPS (Keychain credentials)\"| API[\"Treasure AI APIs<br/>Databases, Segments, Journeys, Workflows\"]\n    end\n    subgraph remote[\"Option 2: Treasure AI Studio MCP — Remote HTTP\"]\n        K2[\"AWS Kiro IDE\"] -->|\"Streamable HTTP<br/>Bearer tasgwt_...\"| GW[\"AI Studio Agent Gateway\"]\n        GW -->|\"Runs as executor\"| WF[\"Shared Work Folder<br/>Saved Actions & Studio Chats\"]\n    end\n","diagramHtml":"<svg id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 391.859375px;\" viewBox=\"0 0 391.859375 1080\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc{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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .error-icon{fill:#552222;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .error-text{fill:#552222;stroke:#552222;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-thickness-normal{stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-thickness-thick{stroke-width:3.5px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-pattern-solid{stroke-dasharray:0;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-pattern-dashed{stroke-dasharray:3;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edge-pattern-dotted{stroke-dasharray:2;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .marker{fill:#333333;stroke:#333333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .marker.cross{stroke:#333333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc p{margin:0;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster-label text{fill:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster-label span{color:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster-label span p{background-color:transparent;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .label text,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc span{fill:#333;color:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node rect,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node circle,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node ellipse,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node polygon,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .rough-node .label text,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node .label text,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .image-shape .label,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .icon-shape .label{text-anchor:middle;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .rough-node .label,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node .label,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .image-shape .label,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .icon-shape .label{text-align:center;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node.clickable{cursor:pointer;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .arrowheadPath{fill:#333333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edgePath .path{stroke:#333333;stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .flowchart-link{stroke:#333333;fill:none;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster text{fill:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .cluster span{color:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc 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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc rect.text{fill:none;stroke-width:0;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .icon-shape,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .icon-shape p,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .icon-shape .label rect,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc .node .neo-node{stroke:#9370DB;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node rect,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].cluster rect,#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node path{stroke:#9370DB;stroke-width:1px;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node .neo-line path{stroke:#9370DB;filter:none;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc [data-look=\"neo\"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(22.9296875, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-remote\" data-look=\"classic\"><rect style=\"\" x=\"-14.9296875\" y=\"8\" width=\"375.859375\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(-10.9296875, 8)\"><foreignObject width=\"367.859375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Option 2: Treasure AI Studio MCP — Remote HTTP</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,109.75C173,120,173,140.5,173,160.333C173,180.167,173,199.333,173,208.917L173,218.5\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-L_K2_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K2_GW_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTYxfSx7IngiOjE3MywieSI6MjIyLjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_flowchart-v2-pointEnd)\"></path><path d=\"M173,276.5L173,284.75C173,293,173,309.5,173,325.333C173,341.167,173,356.333,173,363.917L173,371.5\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-L_GW_WF_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_WF_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNzYuNX0seyJ4IjoxNzMsInkiOjMyNn0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 161)\"><g class=\"label\" data-id=\"L_K2_GW_0\" transform=\"translate(-64.0234375, -24)\"><foreignObject width=\"128.046875\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>Streamable HTTP<br>Bearer tasgwt_...</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 326)\"><g class=\"label\" data-id=\"L_GW_WF_0\" transform=\"translate(-62.2578125, -12)\"><foreignObject width=\"124.515625\" 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>Runs as executor</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-K2-4\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-GW-5\" data-look=\"classic\" transform=\"translate(173, 249.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-118.9453125\" y=\"-27\" width=\"237.890625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-88.9453125, -12)\"><rect></rect><foreignObject width=\"177.890625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AI Studio Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-WF-7\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Shared Work Folder<br>Saved Actions &amp; Studio Chats</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(22.9296875, 557)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-local\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"330\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(22.8515625, 8)\"><foreignObject width=\"300.296875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Option 1: Local MCP Server — Local stdio</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,107.75C173,116,173,132.5,173,148.333C173,164.167,173,179.333,173,186.917L173,194.5\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-L_K1_TDX_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K1_TDX_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTQ5fSx7IngiOjE3MywieSI6MTk4LjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_flowchart-v2-pointEnd)\"></path><path d=\"M173,252.5L173,262.75C173,273,173,293.5,173,313.333C173,333.167,173,352.333,173,361.917L173,371.5\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-L_TDX_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TDX_API_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNTIuNX0seyJ4IjoxNzMsInkiOjMxNH0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 149)\"><g class=\"label\" data-id=\"L_K1_TDX_0\" transform=\"translate(-59.1328125, -12)\"><foreignObject width=\"118.265625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>stdio (tdx profile)</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 314)\"><g class=\"label\" data-id=\"L_TDX_API_0\" transform=\"translate(-100, -24)\"><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"edgeLabel\"><p>HTTPS (Keychain credentials)</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-K1-0\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-TDX-1\" data-look=\"classic\" transform=\"translate(173, 225.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-58.0078125\" y=\"-27\" width=\"116.015625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-28.0078125, -12)\"><rect></rect><foreignObject width=\"56.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx mcp</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-flowchart-API-3\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Treasure AI APIs<br>Databases, Segments, Journeys, Workflows</p></span></div></foreignObject></g></g></g></g></g></g></g><defs><filter id=\"diagram-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-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-d924fbbf404ebd45ee02ae087cbb946e457b6c7afb9f2a83c096c1ba9eb7d1fc-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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" class=\"flowchart\" style=\"max-width: 391.859375px;\" viewBox=\"0 0 391.859375 1080\" role=\"graphics-document document\" aria-roledescription=\"flowchart-v2\"><style>\n    #diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e foreignObject {\n      overflow: visible;\n    }\n  </style><style>#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e{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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .error-icon{fill:#a44141;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .error-text{fill:#ddd;stroke:#ddd;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-thickness-normal{stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-thickness-thick{stroke-width:3.5px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-pattern-solid{stroke-dasharray:0;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-thickness-invisible{stroke-width:0;fill:none;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-pattern-dashed{stroke-dasharray:3;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edge-pattern-dotted{stroke-dasharray:2;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .marker{fill:lightgrey;stroke:lightgrey;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .marker.cross{stroke:lightgrey;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e svg{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;font-size:16px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e p{margin:0;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .label{font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;color:#ccc;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster-label text{fill:#F9FFFE;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster-label span{color:#F9FFFE;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster-label span p{background-color:transparent;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .label text,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e span{fill:#ccc;color:#ccc;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node rect,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node circle,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node ellipse,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node polygon,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node path{fill:#1f2020;stroke:#ccc;stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .rough-node .label text,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node .label text,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .image-shape .label,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .icon-shape .label{text-anchor:middle;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .rough-node .label,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node .label,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .image-shape .label,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .icon-shape .label{text-align:center;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node.clickable{cursor:pointer;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .root .anchor path{fill:lightgrey!important;stroke-width:0;stroke:lightgrey;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .arrowheadPath{fill:lightgrey;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edgePath .path{stroke:lightgrey;stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .flowchart-link{stroke:lightgrey;fill:none;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edgeLabel p{background-color:hsl(0, 0%, 34.4117647059%);}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster text{fill:#F9FFFE;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .cluster span{color:#F9FFFE;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e 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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e rect.text{fill:none;stroke-width:0;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .icon-shape,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .image-shape{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .icon-shape p,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .image-shape p{background-color:hsl(0, 0%, 34.4117647059%);padding:2px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .icon-shape .label rect,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .image-shape .label rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e .node .neo-node{stroke:#ccc;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node rect,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].cluster rect,#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node polygon{stroke:url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].swimlane.cluster rect{filter:none;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node path{stroke:url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient);stroke-width:1px;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node .neo-line path{stroke:#ccc;filter:none;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node circle{stroke:url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].node circle .state-start{fill:#000000;}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].icon-shape .icon{fill:url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e [data-look=\"neo\"].icon-shape .icon-neo path{stroke:url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e :root{--mermaid-font-family:\"Redocly Mermaid Sans\",Arial,\"Liberation Sans\",Arimo,Helvetica,\"Redocly Mermaid CJK\",sans-serif;}</style><g><marker id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_flowchart-v2-crossStart-margin\" class=\"marker cross flowchart-v2\" viewBox=\"0 0 15 15\" refX=\"-3.5\" refY=\"7.5\" markerUnits=\"userSpaceOnUse\" markerWidth=\"12\" markerHeight=\"12\" orient=\"auto\"><path d=\"M 1,1 L 14,14 M 1,14 L 14,1\" class=\"arrowMarkerPath\" style=\"stroke-width: 2.5; stroke-dasharray: 1, 0;\"></path></marker><g class=\"root\"><g class=\"clusters\"></g><g class=\"edgePaths\"></g><g class=\"edgeLabels\"></g><g class=\"nodes\"><g class=\"root\" transform=\"translate(22.9296875, 0)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-remote\" data-look=\"classic\"><rect style=\"\" x=\"-14.9296875\" y=\"8\" width=\"375.859375\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(-10.9296875, 8)\"><foreignObject width=\"367.859375\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Option 2: Treasure AI Studio MCP — Remote HTTP</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,109.75C173,120,173,140.5,173,160.333C173,180.167,173,199.333,173,208.917L173,218.5\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-L_K2_GW_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K2_GW_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTYxfSx7IngiOjE3MywieSI6MjIyLjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_flowchart-v2-pointEnd)\"></path><path d=\"M173,276.5L173,284.75C173,293,173,309.5,173,325.333C173,341.167,173,356.333,173,363.917L173,371.5\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-L_GW_WF_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_GW_WF_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNzYuNX0seyJ4IjoxNzMsInkiOjMyNn0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 161)\"><g class=\"label\" data-id=\"L_K2_GW_0\" transform=\"translate(-64.0234375, -24)\"><foreignObject width=\"128.046875\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>Streamable HTTP<br>Bearer tasgwt_...</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 326)\"><g class=\"label\" data-id=\"L_GW_WF_0\" transform=\"translate(-62.2578125, -12)\"><foreignObject width=\"124.515625\" 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>Runs as executor</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-K2-4\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-GW-5\" data-look=\"classic\" transform=\"translate(173, 249.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-118.9453125\" y=\"-27\" width=\"237.890625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-88.9453125, -12)\"><rect></rect><foreignObject width=\"177.890625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AI Studio Agent Gateway</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-WF-7\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Shared Work Folder<br>Saved Actions &amp; Studio Chats</p></span></div></foreignObject></g></g></g></g><g class=\"root\" transform=\"translate(22.9296875, 557)\"><g class=\"clusters\"><g class=\"cluster\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-local\" data-look=\"classic\"><rect style=\"\" x=\"8\" y=\"8\" width=\"330\" height=\"507\"></rect><g class=\"cluster-label\" transform=\"translate(22.8515625, 8)\"><foreignObject width=\"300.296875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5;\"><span class=\"nodeLabel\"><p>Option 1: Local MCP Server — Local stdio</p></span></div></foreignObject></g></g></g><g class=\"edgePaths\"><path d=\"M173,99.5L173,107.75C173,116,173,132.5,173,148.333C173,164.167,173,179.333,173,186.917L173,194.5\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-L_K1_TDX_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_K1_TDX_0\" data-points=\"W3sieCI6MTczLCJ5Ijo5OS41fSx7IngiOjE3MywieSI6MTQ5fSx7IngiOjE3MywieSI6MTk4LjV9XQ==\" data-look=\"classic\" marker-end=\"url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_flowchart-v2-pointEnd)\"></path><path d=\"M173,252.5L173,262.75C173,273,173,293.5,173,313.333C173,333.167,173,352.333,173,361.917L173,371.5\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-L_TDX_API_0\" class=\"edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link\" style=\";\" data-edge=\"true\" data-et=\"edge\" data-id=\"L_TDX_API_0\" data-points=\"W3sieCI6MTczLCJ5IjoyNTIuNX0seyJ4IjoxNzMsInkiOjMxNH0seyJ4IjoxNzMsInkiOjM3NS41fV0=\" data-look=\"classic\" marker-end=\"url(#diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e_flowchart-v2-pointEnd)\"></path></g><g class=\"edgeLabels\"><g class=\"edgeLabel\" transform=\"translate(173, 149)\"><g class=\"label\" data-id=\"L_K1_TDX_0\" transform=\"translate(-59.1328125, -12)\"><foreignObject width=\"118.265625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"edgeLabel\"><p>stdio (tdx profile)</p></span></div></foreignObject></g></g><g class=\"edgeLabel\" transform=\"translate(173, 314)\"><g class=\"label\" data-id=\"L_TDX_API_0\" transform=\"translate(-100, -24)\"><foreignObject width=\"200\" height=\"48\"><div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"labelBkg\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"edgeLabel\"><p>HTTPS (Keychain credentials)</p></span></div></foreignObject></g></g></g><g class=\"nodes\"><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-K1-0\" data-look=\"classic\" transform=\"translate(173, 72.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-79.9375\" y=\"-27\" width=\"159.875\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-49.9375, -12)\"><rect></rect><foreignObject width=\"99.875\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>AWS Kiro IDE</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-TDX-1\" data-look=\"classic\" transform=\"translate(173, 225.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-58.0078125\" y=\"-27\" width=\"116.015625\" height=\"54\"></rect><g class=\"label\" style=\"\" transform=\"translate(-28.0078125, -12)\"><rect></rect><foreignObject width=\"56.015625\" height=\"24\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;\"><span class=\"nodeLabel\"><p>tdx mcp</p></span></div></foreignObject></g></g><g class=\"node default\" id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-flowchart-API-3\" data-look=\"classic\" transform=\"translate(173, 426.5)\"><rect class=\"basic label-container\" style=\"\" x=\"-130\" y=\"-51\" width=\"260\" height=\"102\"></rect><g class=\"label\" style=\"\" transform=\"translate(-100, -36)\"><rect></rect><foreignObject width=\"200\" height=\"72\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;\"><span class=\"nodeLabel\"><p>Treasure AI APIs<br>Databases, Segments, Journeys, Workflows</p></span></div></foreignObject></g></g></g></g></g></g></g><defs><filter id=\"diagram-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-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-4ee9ea580745e35aefa98ea10e0d54e0037b29b2ec36b98fcf4762c66daf074e-gradient\" gradientUnits=\"objectBoundingBox\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#cccccc\" stop-opacity=\"1\"></stop><stop offset=\"100%\" stop-color=\"hsl(180, 0%, 18.3529411765%)\" stop-opacity=\"1\"></stop></linearGradient></svg>"},"children":["flowchart LR\n    subgraph local[\"Option 1: Local MCP Server — Local stdio\"]\n        K1[\"AWS Kiro IDE\"] -->|\"stdio (tdx profile)\"| TDX[\"tdx mcp\"]\n        TDX -->|\"HTTPS (Keychain credentials)\"| API[\"Treasure AI APIs<br/>Databases, Segments, Journeys, Workflows\"]\n    end\n    subgraph remote[\"Option 2: Treasure AI Studio MCP — Remote HTTP\"]\n        K2[\"AWS Kiro IDE\"] -->|\"Streamable HTTP<br/>Bearer tasgwt_...\"| GW[\"AI Studio Agent Gateway\"]\n        GW -->|\"Runs as executor\"| WF[\"Shared Work Folder<br/>Saved Actions & Studio Chats\"]\n    end\n"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":2},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The commands below are shown for macOS (Apple Silicon). Intel Macs, Linux, and Windows follow the same steps with their platform-specific Kiro installer and terminal commands."]},{"$$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":"Requirement"},"children":["Requirement "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"Details"},"children":["Details "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE and sign-in"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["AWS Kiro IDE"]}," installed (choose Kiro IDE, not Kiro Crew) and signed in with a GitHub or Google account"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Node.js"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Version 22.12 or later, required for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," and the optional ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npx"]}," endpoint check. On macOS, install with ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://brew.sh"},"children":["Homebrew"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]},"), or see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/installation"},"children":["tdx Installation Guide"]}," for other operating systems"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI account"]}," ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["(for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},")"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An API key or SSO sign-in with permissions for the databases, segments, journeys, and workflows you plan to use"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio access"]}," ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["(for Studio MCP Endpoint)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," access to a non-archived ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders"},"children":["shared work folder"]},", permission under your account's endpoint creation policy (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Static-Token MCP Endpoints"]},"), access to Studio on Web or Desktop (not Mobile), and HTTPS connectivity to the Studio Agent Gateway"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"option-1-connect-local-mcp-server--tdx-mcp-","__idx":3},"children":["Option 1: Connect Local MCP Server (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},")"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this setup so Kiro starts ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," locally over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["stdio"]},". Every command runs with the permissions of the Treasure AI user behind your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile. Kiro's configuration file stores only the path to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," (and optionally a profile name); ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," keeps credentials in your system credential store."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-install-and-open-kiro-ide","__idx":4},"children":["Step 1: Install and Open Kiro IDE"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you already have Kiro IDE installed and signed in, skip to Step 2."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev"},"children":["kiro.dev"]},", select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Download"]},", and pick ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE"]}," for your platform (for example, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro IDE for Mac (Apple Silicon)"]}," — not Kiro Crew)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Install and launch Kiro. On macOS, open the downloaded ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".dmg"]},", drag ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," into ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Applications"]},", and launch it from Applications."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sign in"]},", choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["GitHub"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Google"]},", approve in the browser, and return to Kiro."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Optionally create a practice folder (",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File → Open Folder"]},", create ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro-td-test"]},", and open it). Type ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hello"]}," in Kiro's agent chat panel to confirm you receive a reply."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-check-nodejs-and-install-tdx","__idx":5},"children":["Step 2: Check Node.js and Install ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Open your terminal and confirm Node.js is version 22.12 or later:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"node --version\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If Node.js is missing or older than 22.12, install a current release (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]}," on macOS)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Install ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@treasuredata/tdx"]}," globally and note the full path returned by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @treasuredata/tdx\ntdx --version\nwhich tdx\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Write down the full path printed by ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/tdx"]}," on Apple Silicon macOS). You need this exact path in Step 4."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Separate installation from Treasure Work"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Work ships its own bundled copy of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," inside the desktop app. Kiro cannot reach that bundled binary, so install this separate global copy of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@treasuredata/tdx"]}," for Kiro."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-sign-in-to-treasure-ai","__idx":6},"children":["Step 3: Sign In to Treasure AI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Check whether ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," is already authenticated:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx user\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If it displays your Treasure AI account and email, continue to Step 4. Otherwise, run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," and follow the prompts:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx auth setup\ntdx user\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["For a non-US site, pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site eu01"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site ap01"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--site ap02"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["For SSO sign-in, pass ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--account-name <YOUR_ACCOUNT>"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," stores credentials in your system credential store (macOS Keychain, Windows Credential Manager, or Linux Secret Service) rather than in a plain-text file."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"optional-create-a-dedicated-kiro-profile","__idx":7},"children":["Optional: Create a Dedicated ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro"]}," Profile"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create a dedicated profile to tie Kiro to a single Treasure AI account (such as a sandbox account) without changing your default ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," setup:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx profile create kiro\ntdx status --profile kiro\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the prompts do not ask you to sign in, run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup --profile kiro"]},". You reference this profile name in Step 4."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-register-tdx-in-kiro","__idx":8},"children":["Step 4: Register ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," in Kiro"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Create and open Kiro's user-level MCP configuration file at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"mkdir -p ~/.kiro/settings && touch ~/.kiro/settings/mcp.json && open -a Kiro ~/.kiro/settings/mcp.json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Edit the file inside Kiro (or another code editor). Do not edit it in macOS TextEdit, which replaces straight quotes with smart quotes and produces invalid JSON."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Paste the configuration below into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]},", replacing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/tdx"]}," with the path you noted from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," in Step 2. If the file already defines other servers, add the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," entry inside the existing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," object:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"/opt/homebrew/bin/tdx\",\n      \"args\": [\"mcp\"],\n      \"autoApprove\": [\"tdx_search\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Save the file (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd+S"]}," on macOS, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+S"]}," on Windows/Linux). Kiro reloads MCP servers automatically when the file changes."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To use a dedicated ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile (such as the optional ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro"]}," profile from Step 3), add an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"env\""]}," block to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," entry:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"\"env\": { \"TDX_PROFILE\": \"kiro\" }\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Do not auto-approve tdx_run"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Never add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," can execute any ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," command, including workflow runs and segment pushes that cannot be undone. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}," only looks up commands, so it is safe to auto-approve."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Credential precedence and workspace configuration"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," resolves credentials in this order: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE"]},", then ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_API_KEY"]}," plus ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_SITE"]},", then your default ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," sign-in. Prefer profiles over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_API_KEY"]}," so no API key is stored in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]},". Kiro also supports a project-level configuration file at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]}," if you want ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," enabled for a single workspace; never commit a workspace config file that contains credentials."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-5-verify-the-tdx-connection","__idx":9},"children":["Step 5: Verify the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," Connection"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," icon in the left sidebar and check the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}," section. You should see ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," connected with two tools: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]},"."]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-mcp-connected.fe71ad2ef8a880eeb1ab9c52fc3fd8d131bcfd6e8ccc7cda74bc78687921d46f.5866d770.webp","alt":"AWS Kiro chat confirming that the tdx MCP server is connected with tdx_search and tdx_run tools available","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Try these prompts in Kiro's chat. When Kiro asks for permission to run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]},", review the command arguments and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Allow"]},":"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Use tdx to list my Treasure AI databases.\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Show the tables in sample_datasets and describe one of them.\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Using tdx, run this query: SELECT COUNT(1) FROM sample_datasets.www_access\""]}]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-approval.64329db9722da4af9774ec1b9e32f2844b3ed337500c4c747a4af1778f80af7e.5866d770.webp","alt":"AWS Kiro prompting for approval before executing @tdx/tdx_run with SELECT COUNT(1) FROM sample_datasets.www_access","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Kiro returns the query results from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},", confirming the local MCP connection is working:"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-tdx-query-result.2f71c8526975ebd86ffee7a7b0efc0677df77c8caa1d9bd12b4ad7cf4b870c1e.5866d770.webp","alt":"AWS Kiro chat returning 5000 rows from sample_datasets.www_access via tdx_run","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"option-2-connect-a-treasure-ai-studio-mcp-endpoint","__idx":10},"children":["Option 2: Connect a Treasure AI Studio MCP Endpoint"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use this setup to let Kiro list your Studio shared work folder, run saved ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/skills/actions"},"children":["Actions"]},", and start or continue ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/overview"},"children":["Treasure AI Studio"]}," chats over Streamable HTTP. Calls run as the endpoint's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["executor"]}," (by default, the person who created the endpoint) using that person's permissions and Treasure AI Credits."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-create-or-choose-a-shared-work-folder","__idx":11},"children":["Step 1: Create or Choose a Shared Work Folder"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A static-token MCP endpoint publishes one shared work folder. If you already manage a non-archived shared work folder you want to use, skip to Step 2. For the full folder layout and manager workflow, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders"},"children":["Shared Work Folders"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/shared-folders/sharing-a-work-folder"},"children":["Sharing a Work Folder"]},"."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create a new shared folder"]},": Open the Work Folders catalog with ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+"]},", then select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New shared folder"]},". Creating a new folder requires fewer than 25 active work folders on your account."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Share an existing folder"]},": Open its ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["⋯"]}," menu, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Share…"]},", and choose which top-level items to publish. The folder converts in place, its chats continue working, and private contents move into your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my/"]}," area."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Publish and grant access"]},": A new shared folder starts in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setting up"]},". Publishing is one-way—a shared folder cannot become private again, though membership can change. To grant access, open the folder, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["⋯ → Shared folder settings"]},", then under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["People"]}," select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add people"]},", search by email within the same Treasure AI account, assign one or more work modes, and publish when ready."]}]},{"$$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":"Work Mode"},"children":["Work Mode "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"72%","data-label":"What It Allows"},"children":["What It Allows "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["View only"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Reads the entire folder and writes only to your private ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["my/"]}," area"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Custom folders"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Writes only to the top-level folders listed in the mode, such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reports/"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Write everywhere"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Reads and writes the entire shared folder"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Full access, including members, work modes, settings, and deletion"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The person who creates the MCP endpoint must hold ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," access on the shared folder. The endpoint wizard lists only non-archived folders where you hold ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-create-a-static-token-mcp-endpoint-in-treasure-ai-studio","__idx":12},"children":["Step 2: Create a Static-Token MCP Endpoint in Treasure AI Studio"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studio"]}," on Web or Desktop (not Mobile)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels → New MCP Endpoint"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Leave ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Static token · shared executor"]}," selected, enter a name (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["kiro-test"]},"), and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Shared work folder"]},", choose your folder from Step 1. Requests from Kiro will run as you and use your Treasure AI Credits."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Choose a token lifetime (for example, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["30 days"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create endpoint & issue first token"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Copy both the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection URL"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>"]},") and the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Token"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_..."]},") into your password manager right away."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["I have stored the values"]},", then select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-agent-channels-mcp-connect.34e9c57849f5c47a2b1933bf45488d47d3ec9105cd615dceb8e7bf7696665cfd.679d8dbd.webp","alt":"Connect your MCP client completion screen in Treasure AI Studio showing the Connection URL and the Authentication header","framed":false,"withLightbox":true,"width":"640px"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Store the token immediately"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," token is displayed only once. A lost token cannot be recovered; you must issue a new token on the endpoint's detail page and revoke the old one."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"If New MCP Endpoint is unavailable"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you do not see ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New MCP Endpoint"]},", or no shared folder appears in the wizard, ask your account administrator. Either you need ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," rights on a shared work folder, or your account's creation policy restricts endpoint creation to account administrators."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-test-the-endpoint-before-configuring-kiro-optional","__idx":13},"children":["Step 3: Test the Endpoint Before Configuring Kiro (Optional)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Verify that the endpoint responds on its own so any later issue can be isolated to Kiro's configuration. In your terminal, substitute your Connection URL and token and run:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"export MCP_SERVER_URL=\"https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>\"\nexport MCP_TOKEN=\"tasgwt_...\"\nnpx @modelcontextprotocol/inspector --cli \"$MCP_SERVER_URL\" --transport http --header \"Authorization: Bearer $MCP_TOKEN\" --method tools/list\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npx"]}," prompts to install ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["@modelcontextprotocol/inspector"]},", enter ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["y"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To keep the token out of your zsh shell history, replace the second ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["export"]}," line with a hidden prompt:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"zsh","header":{"controls":{"copy":{}}},"source":"read -rs 'MCP_TOKEN?Paste the Studio token (hidden): '\nexport MCP_TOKEN\nprintf '\\n'\necho ${MCP_TOKEN:0:7}\n","lang":"zsh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The output should list all six Studio tools: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]},"."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}]},": The Connection URL or token was copied incorrectly, or the token is expired or revoked."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]}]},": The endpoint is disabled, has no executor, or the executor lost access to the shared folder."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-add-tai-studio-to-kiros-mcpjson","__idx":14},"children":["Step 4: Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," to Kiro's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Reopen Kiro's user-level MCP configuration file:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"open -a Kiro ~/.kiro/settings/mcp.json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Add the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tai-studio\""]}," block inside ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," alongside ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]},". Replace the URL and token with your own values, keeping the word ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bearer"]}," followed by a single space before ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_..."]},". Keep your own ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," binary path from Option 1:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"/opt/homebrew/bin/tdx\",\n      \"args\": [\"mcp\"],\n      \"autoApprove\": [\"tdx_search\"]\n    },\n    \"tai-studio\": {\n      \"url\": \"https://agent-gateway.<REGION>.treasure.ai/v1/mcp/<endpoint-id>\",\n      \"headers\": { \"Authorization\": \"Bearer tasgwt_...\" },\n      \"autoApprove\": [\"list_work_folders\", \"list_actions\", \"get_chat_result\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Save with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd+S"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+S"]}," on Windows/Linux)."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The three auto-approved tools (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]},") are read-only. Leaving ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," out of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}," ensures Kiro asks for your approval before starting Studio work that spends credits."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Keep the Studio token out of Git repositories"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}," lives in your home directory, outside Git repositories. Never place a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," token in a project-level ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]}," file."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-5-verify-the-studio-connection-in-kiro","__idx":15},"children":["Step 5: Verify the Studio Connection in Kiro"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}," section in Kiro's sidebar and confirm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," shows 2 tools and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," shows 6 tools."]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/kiro-studio-mcp-connected.9d935f1f55eb64a6fe8fcadcba071a5f19912782dacccc1c61b4b76b3b17c727.5866d770.webp","alt":"AWS Kiro chat confirming that the tai-studio MCP server is connected with all six Studio tools and listing available folder Actions","framed":false,"withLightbox":true,"width":"760px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Test the Studio connection with prompts such as:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"List the actions in my Treasure AI Studio folder.\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Run the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<action_name>"]}," Action in tai-studio. If it returns a running status, poll ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," until it finishes.\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Start a Studio chat in that folder asking: summarize what's in this folder.\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Use tdx to count rows in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets.www_access"]},", then start a Studio chat that explains the result.\""]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"available-tools-and-example-prompts","__idx":16},"children":["Available Tools and Example Prompts"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"local-mcp-server--tdx-","__idx":17},"children":["Local MCP Server (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},")"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"24%","data-label":"Tool"},"children":["Tool "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"76%","data-label":"What It Does"},"children":["What It Does "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Executes a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," CLI command and returns the output"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Finds the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," command that matches a task"]}]}]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"Area"},"children":["Area "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"80%","data-label":"Example Prompt"},"children":["Example Prompt "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"List the tables in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets"]}," and describe ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["www_access"]},".\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"Count rows in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sample_datasets.www_access"]}," grouped by HTTP method.\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CDP"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"List my parent segments and the child segments under one of them.\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Journeys"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"List my journeys and show the stages of one.\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Workflows"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"List my workflow projects and show the last few sessions for one.\""]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-ai-studio-mcp-endpoint--tai-studio-","__idx":18},"children":["Treasure AI Studio MCP Endpoint (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]},")"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"24%","data-label":"Tool"},"children":["Tool "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"28%","data-label":"Inputs"},"children":["Inputs "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"48%","data-label":"What It Does"},"children":["What It Does "]}]}]},{"$$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":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lists the work folders reachable through this endpoint"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Lists the saved Actions in a work folder"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Runs a saved Action in Studio"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["work_folder_id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Starts a free-form Studio task"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sends a follow-up instruction to an existing Studio chat"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retrieves the latest result of a Studio chat, or waits for it to finish"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For full tool schemas and status codes, see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#the-tools"},"children":["Connecting an MCP Client"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"guardrails-and-operational-limits","__idx":19},"children":["Guardrails and Operational Limits"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Commands with real-world side effects (tdx mcp)"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," can run any ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," command that your profile's user has permission to execute, including operations that cannot be undone. Ask Kiro for a dry run first and review every tool call before approving it:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx wf run"]}]},": Starts a workflow attempt immediately. Activation workflows send to the full audience right away."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey resume"]}]},": Resumes a paused journey so audience members enter stages and activations fire."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Segment, journey, and parent segment pushes"]}," (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg push"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey push"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx ps push"]},"): Update live CDP configurations."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ask Kiro to run mutating commands with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--dry-run"]}," first, or use read-only validation commands (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx wf validate"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg validate"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey validate"]},"). Point Kiro's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile at a demo or sandbox account whenever possible."]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Studio shared folder scope"]},": A static-token endpoint publishes one shared work folder read-only and executes every call as the endpoint's executor, using that person's permissions and Treasure AI Credits. Each chat runs in a temporary workspace that is discarded when the chat ends."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Rate and message limits"]},": Up to 30 new chats per minute. Messages must be between 1 and 32,768 characters."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Actions and clarifying questions"]},": Saved Actions do not accept arguments—use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]}," when you need to pass inputs. If Studio would ask a clarifying question, it is declined automatically, so include all required inputs in your prompt."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Supported MCP primitives"]},": Only MCP tools are exposed; MCP resources and prompts are not supported."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Long-running Studio tasks"]},": Tool calls wait up to 200 seconds. If a task runs longer or times out in Kiro, poll ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," with the returned ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," instead of starting the task again."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"security-notes","__idx":20},"children":["Security Notes"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Prefer ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_PROFILE"]}," over ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TDX_API_KEY"]}]},": Using a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile keeps credentials in your system keychain rather than in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Follow least privilege"]},": Kiro can perform any action permitted to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," profile's user or the Studio endpoint's executor. Use an account with only the permissions required."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Keep mutating tools out of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]}]},": Never add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},", or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoApprove"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Protect ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}]},": Because this file holds the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tasgwt_"]}," token in plain text, keep it in your home directory and restrict file permissions with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chmod 600 ~/.kiro/settings/mcp.json"]},". Never commit tokens to Git, place them in a workspace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".kiro/settings/mcp.json"]},", or paste them into chat tools."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Rotate and revoke tokens"]},": Set an expiration when creating the Studio endpoint and rotate tokens regularly. If a token is exposed, revoke it in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}," and issue a new one."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Revoking access"]},":",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["For ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Local MCP Server"]},": Delete the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," block from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]},", then run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth clear"]}," (or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx profile delete kiro"]}," if you created a dedicated profile)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["For ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Studio MCP Endpoint"]},": To stop access immediately, disable the endpoint in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]},". Disabling does not revoke tokens—revoke tokens separately if needed."]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":21},"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":"30%","data-label":"Symptom"},"children":["Symptom "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"34%","data-label":"Likely Cause"},"children":["Likely Cause "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"36%","data-label":"Fix"},"children":["Fix "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kiro will not open on macOS (",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["\"unidentified developer\""]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["macOS Gatekeeper blocked the first launch"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Right-click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Kiro"]}," in Applications, select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Open"]},", then confirm ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Open"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm: command not found"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npx: command not found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js is not installed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Install Node.js 22.12 or later (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brew install node"]}," on macOS) and retry"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EACCES"]}," permission error during ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm install -g @treasuredata/tdx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js is installed in a system-owned directory"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use a user-writable Node installation such as Homebrew (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which node"]}," should show ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/opt/homebrew/bin/node"]}," on Apple Silicon). Do not run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm install -g"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sudo"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Node.js version error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Installed Node.js is older than 22.12"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Upgrade Node.js to 22.12 or later"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," appears to hang when run directly in Terminal"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Expected behavior—",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," waits for stdio messages from an MCP client"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Press ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+C"]},"; Kiro starts ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," for you"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," shows as failed in Kiro's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP Servers"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"command\""]}," path is wrong, or Kiro cannot find ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," on its PATH (common with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nvm"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["which tdx"]}," and paste that exact full path into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"command\""]}," in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.kiro/settings/mcp.json"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Auth errors or wrong Treasure AI account in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," is not signed in, or Kiro is pointing at a different profile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx user"]}," (or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status --profile kiro"]},") and re-run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," if needed"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A long query times out in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," commands time out after 15 minutes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ask Kiro to submit long queries asynchronously with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx job submit"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Other ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," errors"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Local ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," runtime or API error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Inspect the local log with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tail -50 ~/.cache/tdx/logs/tdx.log"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New MCP Endpoint"]}," is missing or disabled in Studio"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Endpoint creation is restricted to account administrators"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ask an account administrator to create the endpoint or update the creation policy"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No shared folder appears in the endpoint wizard"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["You do not hold ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," access on a non-archived shared folder"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ask a folder manager for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Manage"]}," access, or select an eligible shared folder"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}," from the Studio endpoint"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The URL or token was copied incorrectly, the token expired or was revoked, or the endpoint was deleted"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Re-copy the URL and token, or issue a new token in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Agent Channels"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]}," from the Studio endpoint"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The endpoint is disabled, has no executor, or the executor lost access to the folder"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Re-enable the endpoint or restore folder access in Studio"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["MCP Inspector test passes, but ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}," fails in Kiro"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Invalid JSON syntax, or the header is missing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bearer "]}," (with a space)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Check for valid JSON (commas between server blocks) and confirm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Authorization\": \"Bearer tasgwt_...\""]},". Edit the file in Kiro, not TextEdit"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," disappeared after adding ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tai-studio"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replacing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," removed the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," block"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Put both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tdx\""]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"tai-studio\""]}," inside the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"mcpServers\""]}," object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio tool call returns a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}," status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Studio task took longer than 200 seconds"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ask Kiro to call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get_chat_result"]}," with the returned ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Studio responds about the wrong folder or Actions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The endpoint publishes a different shared folder than expected"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Check the endpoint overview in Studio, then ask Kiro to run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_work_folders"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list_actions"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":22},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/local-mcp-server"},"children":["Local MCP Server"]}," — reference for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx mcp command reference"]}," — full tool reference and blocked commands"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Static-Token MCP Endpoints"]}," — create and manage Treasure AI Studio endpoints"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients"},"children":["Connecting an MCP Client to Treasure AI Studio"]}," — full reference for the six Studio MCP tools"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://kiro.dev/docs/mcp/configuration/"},"children":["Kiro MCP Configuration"]}," — official AWS Kiro documentation for MCP settings"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Connect a different tool: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/claude-code"},"children":["Claude Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/openai-codex"},"children":["OpenAI Codex"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/vscode-github-copilot"},"children":["VS Code and GitHub Copilot"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/cursor"},"children":["Cursor"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/snowflake-cortex-code"},"children":["Snowflake Cortex Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/databricks-genie-code"},"children":["Databricks Genie Code"]}]}]}]},"headings":[{"value":"Connecting AWS Kiro to Treasure AI","id":"connecting-aws-kiro-to-treasure-ai","depth":1},{"value":"Which MCP Connection Should You Use?","id":"which-mcp-connection-should-you-use","depth":2},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Option 1: Connect Local MCP Server ( tdx mcp )","id":"option-1-connect-local-mcp-server--tdx-mcp-","depth":2},{"value":"Step 1: Install and Open Kiro IDE","id":"step-1-install-and-open-kiro-ide","depth":3},{"value":"Step 2: Check Node.js and Install tdx","id":"step-2-check-nodejs-and-install-tdx","depth":3},{"value":"Step 3: Sign In to Treasure AI","id":"step-3-sign-in-to-treasure-ai","depth":3},{"value":"Optional: Create a Dedicated kiro Profile","id":"optional-create-a-dedicated-kiro-profile","depth":4},{"value":"Step 4: Register tdx in Kiro","id":"step-4-register-tdx-in-kiro","depth":3},{"value":"Step 5: Verify the tdx Connection","id":"step-5-verify-the-tdx-connection","depth":3},{"value":"Option 2: Connect a Treasure AI Studio MCP Endpoint","id":"option-2-connect-a-treasure-ai-studio-mcp-endpoint","depth":2},{"value":"Step 1: Create or Choose a Shared Work Folder","id":"step-1-create-or-choose-a-shared-work-folder","depth":3},{"value":"Step 2: Create a Static-Token MCP Endpoint in Treasure AI Studio","id":"step-2-create-a-static-token-mcp-endpoint-in-treasure-ai-studio","depth":3},{"value":"Step 3: Test the Endpoint Before Configuring Kiro (Optional)","id":"step-3-test-the-endpoint-before-configuring-kiro-optional","depth":3},{"value":"Step 4: Add tai-studio to Kiro's mcp.json","id":"step-4-add-tai-studio-to-kiros-mcpjson","depth":3},{"value":"Step 5: Verify the Studio Connection in Kiro","id":"step-5-verify-the-studio-connection-in-kiro","depth":3},{"value":"Available Tools and Example Prompts","id":"available-tools-and-example-prompts","depth":2},{"value":"Local MCP Server ( tdx )","id":"local-mcp-server--tdx-","depth":3},{"value":"Treasure AI Studio MCP Endpoint ( tai-studio )","id":"treasure-ai-studio-mcp-endpoint--tai-studio-","depth":3},{"value":"Guardrails and Operational Limits","id":"guardrails-and-operational-limits","depth":2},{"value":"Security Notes","id":"security-notes","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Connect AWS Kiro to Treasure AI","description":"Connect AWS Kiro IDE to Treasure AI using the Local MCP Server (tdx mcp) or a Studio MCP Endpoint to query data, manage segments, and run Studio Actions."}},"lastModified":"2026-12-04T00:41:10.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/headless/aws-kiro","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}