{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab"]},"type":"markdown"},"seo":{"title":"AIエージェント向けスタートガイド","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"aiエージェント向けスタートガイド","__idx":0},"children":["AIエージェント向けスタートガイド"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのドキュメントとプラットフォームは、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Claude Code"]},"やその他のMCP対応AIツールからModel Context Protocol（MCP）を通じてアクセスできます。これにより、AIアシスタントがドキュメントにアクセスし、Treasure Data環境と直接やり取りすることが可能になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"メリット","__idx":1},"children":["メリット"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["リアルタイムドキュメントアクセス"]},": AIアシスタントがTreasure Dataの製品や機能に関する正確でコンテキストに沿ったヘルプを提供します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["プラットフォーム操作"]},": AIアシスタントがデータベースのクエリ、セグメントの管理、ワークフローの実行などを行えます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["動的なAPIガイダンス"]},": AIアシスタントがユーザーのニーズに基づいてAPIリファレンスの内容を抽出し、説明できます。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ask-aiドキュメントアシスタント","__idx":2},"children":["Ask AI（ドキュメントアシスタント）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataドキュメントサイトには、製品、機能、APIに関する質問にドキュメントから直接回答できるAIアシスタントが組み込まれています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"使い方","__idx":3},"children":["使い方"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ドキュメントページの右下にある ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ask AI"]}," ボタンをクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["自然言語で質問を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AIアシスタントがドキュメントを検索し、ソースリンク付きで関連する回答を提供します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["上部ナビゲーションバーの ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Search"]}," モーダルからもAsk AIにアクセスできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"質問できる内容","__idx":4},"children":["質問できる内容"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AIアシスタントはすべてのドキュメントコンテンツをインデックス化して検索します："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["製品ガイド"]},": すべてのTreasure Data製品の完全なドキュメント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIリファレンス"]},": OpenAPI仕様とエンドポイントの詳細"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrationガイド"]},": データソースとデスティネーションのセットアップ手順"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ベストプラクティス"]},": 実装パターンと推奨事項"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"質問例","__idx":5},"children":["質問例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Parent Segmentはどのように設定しますか？\nIntegration Hubで利用可能なIntegrationは何ですか？\nReal-Time ID Stitchingはどのように機能しますか？\nTrinoとHiveの違いは何ですか？\nカスタマージャーニーはどのように作成しますか？\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AIアシスタントは最新のドキュメントコンテンツに基づいて回答を提供し、詳細については関連ページへのリンクを表示します。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"mcpサーバー","__idx":6},"children":["MCPサーバー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["開発者やAIツール向けに、Treasure Dataは用途に応じて2つのMCPサーバーを提供しています："]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"MCPサーバー"},"children":["MCPサーバー"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"用途"},"children":["用途"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"できること"},"children":["できること"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure Docs MCP"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメント検索"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure Dataの製品や機能について質問する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["tdx MCP"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プラットフォーム操作"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データベースのクエリ、セグメントの管理、ワークフローの実行など"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-docs-mcpサーバー","__idx":7},"children":["Treasure Docs MCPサーバー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Docs MCPサーバーを使用して、ドキュメントを探索し、APIを検出できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サーバーは次のURLで登録されています: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://docs.treasuredata.com/mcp"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"利用可能なツール","__idx":8},"children":["利用可能なツール"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"ドキュメントツール","__idx":9},"children":["ドキュメントツール"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ツール"},"children":["ツール"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["list-apis"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name?: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["利用可能なAPIとそのコンテキストおよび目的をリストします。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get-endpoints"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["特定のAPIのすべてのエンドポイントとその説明を返します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get-endpoint-info"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name: string"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["path: string"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["method: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パラメータ、セキュリティ、例を含む特定のエンドポイントの包括的な情報を返します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get-security-schemes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["特定のAPIのセキュリティスキームを取得します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["get-full-api-description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["name: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["完全なOpenAPI記述を返します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"検索ツール","__idx":10},"children":["検索ツール"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ツール"},"children":["ツール"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントを検索し、クエリに関連するコンテンツを返します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"mcpサーバーの使用方法","__idx":11},"children":["MCPサーバーの使用方法"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MCPをサポートする任意のAIツール（Cursor、Claude Code、VS Codeなど）をTreasure Docs MCPサーバーに接続できます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MCPサーバーURLをコピーします: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://docs.treasuredata.com/mcp"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下の手順に従ってツールに追加します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接続後、ツールはTreasure DataのドキュメントとAPIリファレンスにアクセスできるようになります。"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Cursor","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"cursorをmcpサーバーに接続する","__idx":12},"children":["CursorをMCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Cursorでコマンドパレットを開きます。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["macOS: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Command + Shift + P"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Windows/Linux: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Shift + P"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コマンドパレットに「Open MCP settings」と入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「Add custom MCP」を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cursorが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," ファイルを開きます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"mcpサーバーの設定","__idx":13},"children":["MCPサーバーの設定"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," にサーバー設定を追加します:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"td-docs\": {\n      \"url\": \"https://docs.treasuredata.com/mcp\"\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," ファイルを保存します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MCP設定に戻り、接続を確認します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接続後、Cursorは利用可能なツールのリストを表示します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"cursor接続のテスト","__idx":14},"children":["Cursor接続のテスト"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cursorチャット（Agentモード）で、MCPツールをトリガーする質問をします:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Real-Time ID Stitchingはどのように設定しますか？\n"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Claude Code","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"claude-codeをmcpサーバーに接続する","__idx":15},"children":["Claude CodeをMCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["次のコマンドを実行します:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"claude mcp add td-docs https://docs.treasuredata.com/mcp --transport http\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Claude Code CLIで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/mcp"]}," と入力して接続を確認します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Claude Codeが利用可能なツールの説明とパラメータを表示します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"claude-code接続のテスト","__idx":16},"children":["Claude Code接続のテスト"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Claude Code CLIで、MCPツールを使用する質問をします:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Parent Segmentを作成するためのベストプラクティスは何ですか？\n"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"VS Code","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"vs-codeをmcpサーバーに接続する","__idx":17},"children":["VS CodeをMCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["VS Codeでコマンドパレットを開きます。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["macOS: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Command + Shift + P"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Windows/Linux: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Shift + P"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["コマンドパレットに「MCP: Add Server」と入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["リモートMCPサーバーに接続するために「HTTP」を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MCPサーバーURLを入力します: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://docs.treasuredata.com/mcp"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["接続の名前を入力します（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-docs"]},"）。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"vs-code接続のテスト","__idx":18},"children":["VS Code接続のテスト"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AgentモードでChat with AIを開き、ツールアイコンを選択します。"," ","MCP接続が利用可能なツールのリストとともに表示されていることを確認します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AIにMCPツールを使用するクエリを実行するよう依頼します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Personalization APIのAPI仕様を表示してください\n"},"children":[]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tdx-mcpサーバー","__idx":19},"children":["tdx MCPサーバー"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/"},"children":["tdx CLI"]},"は、AIツールがTreasure Data環境と直接やり取りできるMCPサーバーを提供します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"セットアップ","__idx":20},"children":["セットアップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["まず、tdxをインストールして認証します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# tdxをインストール\nnpm install -g @treasuredata/tdx\n\n# 認証\ntdx auth setup\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"利用可能なツール-1","__idx":21},"children":["利用可能なツール"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ツール"},"children":["ツール"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パラメータ"},"children":["パラメータ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["args: string[]"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["任意のtdx CLIコマンドを実行します。JSON出力を返します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query: string"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["category?: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["実行したい内容に基づいて関連するtdxコマンドを検索します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["tdx_searchのカテゴリ:"]}," Data, CDP, AI, Context, Utilities"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"mcpサーバーの使用方法-1","__idx":22},"children":["MCPサーバーの使用方法"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Cursor","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"cursorをtdx-mcpサーバーに接続する","__idx":23},"children":["Cursorをtdx MCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Cursorでコマンドパレットを開きます（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Command + Shift + P"]}," または ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Shift + P"]},"）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「Open MCP settings」と入力し、「Add custom MCP」を選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"mcpサーバーの設定-1","__idx":24},"children":["MCPサーバーの設定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," にtdxサーバー設定を追加します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["グローバルインストールなし（npxを使用）:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"npx\",\n      \"args\": [\"@treasuredata/tdx\", \"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["特定のプロファイルを使用する場合:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"],\n      \"env\": {\n        \"TDX_PROFILE\": \"my-profile\"\n      }\n    }\n  }\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Claude Desktop","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"claude-desktopをtdx-mcpサーバーに接続する","__idx":25},"children":["Claude Desktopをtdx MCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Claude Desktop設定ファイルを開きます:"," ","tdxサーバー設定を追加します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["グローバルインストールなし（npxを使用）:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"npx\",\n      \"args\": [\"@treasuredata/tdx\", \"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Windsurf","disable":false},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"windsurfをtdx-mcpサーバーに接続する","__idx":26},"children":["Windsurfをtdx MCPサーバーに接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.windsurf/mcp.json"]}," にあるWindsurf MCP設定ファイルを開きます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["tdxサーバー設定を追加します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["グローバルインストールなし（npxを使用）:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"npx\",\n      \"args\": [\"@treasuredata/tdx\", \"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"会話例","__idx":27},"children":["会話例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定後、次のような会話ができます:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"> Treasure Dataで利用可能なデータベースは何ですか？\n\nAIはtdx_runを使用します（args: [\"databases\"]）\n\n> mydbのusersテーブルのスキーマを表示してください\n\nAIはtdx_runを使用します（args: [\"describe\", \"mydb.users\"]）\n\n> 注文数でトップ10のユーザーを見つけるクエリを実行してください\n\nAIはtdx_runを使用します（args: [\"query\", \"SELECT user_id, COUNT(*) as orders\n  FROM mydb.orders GROUP BY user_id ORDER BY orders DESC LIMIT 10\"]）\n\n> 過去30日間に購入したユーザーのセグメントを作成してください\n\nAIはtdx_searchでセグメントコマンドを検索し、その後tdx_runでセグメントを作成します\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tdx-claude-オールインワンセットアップ","__idx":28},"children":["tdx claude: オールインワンセットアップ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのお客様にとって、最も簡単な始め方は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx claude"]}," を使用することです。以下の機能を提供します:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["TD LLM Proxy統合"]},": 既存の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.treasuredata.com/terms/ai-suite-credits-definition/"},"children":["AI Suite クレジット"]},"を使用"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["事前設定済みTD Skills"]},": SQL、ワークフロー、CDP操作の強化された機能"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ドキュメント検索"]},": TDドキュメントへの組み込みアクセス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クイックスタート","__idx":29},"children":["クイックスタート"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# tdxとClaude Codeをインストール\nnpm install -g @treasuredata/tdx\ncurl -fsSL https://claude.ai/install.sh | bash\n\n# Treasure Dataで認証\ntdx auth setup\n\n# TD統合でClaude Codeを起動\ntdx claude\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"会話例-1","__idx":30},"children":["会話例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx claude"]}," 経由でClaude Code内で:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"> SnowflakeからTDへのデータ取り込みはどのように設定しますか？\n\n> mydb.user_eventsデータを分析してください\n\n> S3から定期的にデータをインポートするワークフローを作成してください\n\n> 売上トップの顧客を見つけるSQLクエリを作成してください\n\n> 過去30日間に購入した顧客のユーザーセグメントを構築してください\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-skills-ai支援の強化","__idx":31},"children":["TD Skills: AI支援の強化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/td-skills"},"children":["TD Skills"]},"は、Treasure ワークフロー向けのAI支援を強化する、事前構築されたClaude Codeプラグインです:"]},{"$$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":{"data-label":"スキルカテゴリ"},"children":["スキルカテゴリ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"支援内容"},"children":["支援内容"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SQL Skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Trino/Hive構文、TD固有の関数、クエリ最適化"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Workflow Skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Digdagワークフロー、スケジューリング、dbt統合"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["tdx Skills"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["セグメント、ジャーニー、アクティベーション、AIエージェント"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべてのTD Skillsは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx claude"]}," を使用する際に自動的に利用可能です。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連情報","__idx":32},"children":["関連情報"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://modelcontextprotocol.io/"},"children":["Model Context Protocol (MCP)"]}," - MCPについて詳しく学ぶ"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/"},"children":["tdx CLIドキュメント"]}," - 完全なtdxリファレンス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx MCPコマンド"]}," - 詳細なMCPサーバードキュメント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/claude"},"children":["tdx claudeコマンド"]}," - Claude Code統合ガイド"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/td-skills"},"children":["TD Skills"]}," - Treasure Data向けの事前構築AIスキル"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products"},"children":["製品ドキュメント"]}," - すべてのTreasure Data製品を閲覧"]}]}]},"headings":[{"value":"AIエージェント向けスタートガイド","id":"aiエージェント向けスタートガイド","depth":1},{"value":"メリット","id":"メリット","depth":2},{"value":"Ask AI（ドキュメントアシスタント）","id":"ask-aiドキュメントアシスタント","depth":2},{"value":"使い方","id":"使い方","depth":3},{"value":"質問できる内容","id":"質問できる内容","depth":3},{"value":"質問例","id":"質問例","depth":3},{"value":"MCPサーバー","id":"mcpサーバー","depth":2},{"value":"Treasure Docs MCPサーバー","id":"treasure-docs-mcpサーバー","depth":2},{"value":"利用可能なツール","id":"利用可能なツール","depth":3},{"value":"ドキュメントツール","id":"ドキュメントツール","depth":4},{"value":"検索ツール","id":"検索ツール","depth":4},{"value":"MCPサーバーの使用方法","id":"mcpサーバーの使用方法","depth":3},{"value":"CursorをMCPサーバーに接続する","id":"cursorをmcpサーバーに接続する","depth":4},{"value":"MCPサーバーの設定","id":"mcpサーバーの設定","depth":4},{"value":"Cursor接続のテスト","id":"cursor接続のテスト","depth":4},{"value":"Claude CodeをMCPサーバーに接続する","id":"claude-codeをmcpサーバーに接続する","depth":4},{"value":"Claude Code接続のテスト","id":"claude-code接続のテスト","depth":4},{"value":"VS CodeをMCPサーバーに接続する","id":"vs-codeをmcpサーバーに接続する","depth":4},{"value":"VS Code接続のテスト","id":"vs-code接続のテスト","depth":4},{"value":"tdx MCPサーバー","id":"tdx-mcpサーバー","depth":2},{"value":"セットアップ","id":"セットアップ","depth":3},{"value":"利用可能なツール","id":"利用可能なツール-1","depth":3},{"value":"MCPサーバーの使用方法","id":"mcpサーバーの使用方法-1","depth":3},{"value":"Cursorをtdx MCPサーバーに接続する","id":"cursorをtdx-mcpサーバーに接続する","depth":4},{"value":"MCPサーバーの設定","id":"mcpサーバーの設定-1","depth":4},{"value":"Claude Desktopをtdx MCPサーバーに接続する","id":"claude-desktopをtdx-mcpサーバーに接続する","depth":4},{"value":"Windsurfをtdx MCPサーバーに接続する","id":"windsurfをtdx-mcpサーバーに接続する","depth":4},{"value":"会話例","id":"会話例","depth":3},{"value":"tdx claude: オールインワンセットアップ","id":"tdx-claude-オールインワンセットアップ","depth":2},{"value":"クイックスタート","id":"クイックスタート","depth":3},{"value":"会話例","id":"会話例-1","depth":3},{"value":"TD Skills: AI支援の強化","id":"td-skills-ai支援の強化","depth":2},{"value":"関連情報","id":"関連情報","depth":2}],"frontmatter":{"seo":{"title":"AIエージェント向けスタートガイド"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/getting-started/ai","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}