{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"Connect Visual Studio Code (GitHub Copilot) to Treasure AI","description":"Connect VS Code and GitHub Copilot to Treasure AI via MCP to query databases, build segments, and debug workflows from Copilot Chat's Agent mode.","siteUrl":"https://docs.treasure.ai","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/"}}]},"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":"connecting-visual-studio-code-github-copilot-to-treasure-ai","__idx":0},"children":["Connecting Visual Studio Code (GitHub Copilot) to Treasure AI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Connect VS Code and GitHub Copilot to Treasure AI to query databases, build segments, and debug workflows from Copilot Chat's Agent mode, using your existing GitHub Copilot plan. This page covers connecting MCP Server (Platform) for platform operations, MCP Server (Docs) for documentation search, and installing TD Skills."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["VS Code with a GitHub Copilot plan"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Node.js and npm"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Treasure AI account with API access"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-mcp-server-platform","__idx":2},"children":["Connect MCP Server (Platform)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @treasuredata/tdx\ntdx auth setup\ncode --add-mcp '{\"name\":\"tdx\",\"command\":\"tdx\",\"args\":[\"mcp\"]}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To roll this out to your team, commit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".vscode/mcp.json"]}," to your repository instead of running ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--add-mcp"]}," on each machine:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"servers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each teammate still runs ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," individually to authenticate. If you'd rather not install ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," globally, replace the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"command\""]}," value with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"npx\""]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"args\""]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[\"@treasuredata/tdx\", \"mcp\"]"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-mcp-server-docs","__idx":3},"children":["Connect MCP Server (Docs)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To let Copilot search Treasure AI documentation directly, add a second MCP server."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the command palette (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Command + Shift + P"]}," on macOS, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Shift + P"]}," on Windows/Linux)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Type \"MCP: Add Server\" and select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the server URL: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://docs.treasure.ai/mcp"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter a name for the connection (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-docs"]},")."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"install-td-skills","__idx":4},"children":["Install TD Skills"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"copilot plugin marketplace add treasure-data/td-skills\ncopilot plugin install tdx-skills@td-skills\ncopilot plugin install sql-skills@td-skills\ncopilot plugin install workflow-skills@td-skills\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/td-skills"},"children":["TD Skills"]}," for the full skill catalog and additional plugins."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"try-it","__idx":5},"children":["Try It"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Open Chat in Agent mode, select the Tools icon, and confirm ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," (and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td-docs"]},", if connected) appear. Then ask a question that requires querying your data:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"> Which of our databases has last week's web events?\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":6},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/mcp-server-docs"},"children":["MCP Server (Docs)"]}," — reference for documentation search tools"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/mcp-server-platform"},"children":["MCP Server (Platform)"]}," — 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/guide/td-skills"},"children":["TD Skills"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Connect a different tool: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/claude-code"},"children":["Claude Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/openai-codex"},"children":["OpenAI Codex"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/cursor"},"children":["Cursor"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.treasure.ai/works-with/vscode-github-copilot"},"children":["Why teams pair VS Code and GitHub Copilot with Treasure AI"]}]}]}]},"headings":[{"value":"Connecting Visual Studio Code (GitHub Copilot) to Treasure AI","id":"connecting-visual-studio-code-github-copilot-to-treasure-ai","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Connect MCP Server (Platform)","id":"connect-mcp-server-platform","depth":2},{"value":"Connect MCP Server (Docs)","id":"connect-mcp-server-docs","depth":2},{"value":"Install TD Skills","id":"install-td-skills","depth":2},{"value":"Try It","id":"try-it","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Connect Visual Studio Code (GitHub Copilot) to Treasure AI","description":"Connect VS Code and GitHub Copilot to Treasure AI via MCP to query databases, build segments, and debug workflows from Copilot Chat's Agent mode."}},"lastModified":"2026-07-17T06:11:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/getting-started/ai/vscode-github-copilot","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}