Your VS Code already knows Treasure AI

Query customer data, build segments, and run workflows with GitHub Copilot agent mode — right in the editor you already live in, with production-grade governance. Two minutes to connect.

90%

Less time on routine CDP work.

2 minutes

from setup to your first AI-built segment.

$0

works with the GitHub Copilot plan your team already has.

Quick start

Two minutes in your existing VS Code

Install the tdx CLI, add its MCP server, and switch Copilot Chat to agent mode. Your VS Code — your Copilot plan, your settings — now operates your CDP.

Set up your editor

Connect Treasure AI to VS Code

The tdx MCP server gives Copilot agent mode two clean tools — tdx_run and tdx_search — covering the entire platform.

# 1 · install & authenticate the CLI npm install -g @treasuredata/tdx tdx auth setup # 2 · add the MCP server to VS Code code --add-mcp '{"name":"tdx","command":"tdx","args":["mcp"]}' # 3 · open Chat, switch to Agent mode, and ask > “Which of our databases has last week’s web events?”
  • Works with the Copilot plan you already have — agent mode does the rest
  • Also configurable via the MCP: Add Server command palette flow
  • Respects your TD roles and policies on every call
Roll it out to the team

One file, whole team connected

Commit .vscode/mcp.json to your repo and everyone who opens the project gets Treasure AI in agent mode — no per-machine setup.

// .vscode/mcp.json — commit to your repo { "servers": { "tdx": { "command": "tdx", "args": ["mcp"] } } }
  • Each developer authenticates as themselves with tdx auth setup
  • Copilot Business / Enterprise: admins govern MCP access via GitHub policy
  • No global install needed — swap "command" for npx @treasuredata/tdx mcp
Level up

Add TD Skills to Copilot

TD Skills are the CDP playbooks written by the people who built the platform — segment YAML patterns, Trino optimization, workflow debugging. They follow the open Agent Skills format VS Code supports natively: drop them in, and Copilot picks the right one for the task.

# clone the library, copy the skills you want git clone https://github.com/treasure-data/td-skills mkdir -p ~/.copilot/skills cp -r td-skills/tdx-skills/* td-skills/sql-skills/* ~/.copilot/skills/ # team rollout: commit them to .github/skills/ in your repo instead
  • Copilot auto-loads the matching skill — or invoke one directly from the / menu
  • Open Agent Skills format — every skill is a readable Markdown playbook, not a black box
  • The same skills power Claude Code and Treasure Code — one library, every editor
TD Skills

Playbooks, not prompts

TD Skills are CDP playbooks in the open Agent Skills format, written by the people who built the platform. Copy what you need into ~/.copilot/skills/ and Copilot picks the right one for the task — the same library that powers Claude Code and Treasure Code.

tdx-skillsSegments, parent segments, journeys, activations, Engage campaigns, Foundry agents
sql-skillsTD-flavored Trino & Hive, query optimization, time filtering
workflow-skillsDigdag pipelines, dbt, LLM-powered workflows
realtime-skillsReal-time personalization, triggers, ID stitching
sdk-skillsJavaScript & Python SDK integration patterns
creative-skillsAd ideation, brand compliance, email & social creatives
studio-skillsTreasure AI Studio workspace and scheduling
field-agent-skillsDeployment, documentation, visualization

Browse all skills on GitHub →  ·  MCP server docs →

What you can do

Real CDP work, in plain language

Not a chatbot bolted onto a dashboard — Copilot agent mode drives the same tdx commands your team uses, so everything it makes is reviewable and reproducible.

Explore customer data

Browse databases, inspect schemas, and run Trino/Hive queries without leaving your editor.

Which tables hold purchase events, and how fresh are they?

Build & ship segments

Draft segment rules as YAML, validate match rates, and push to production with an audit trail.

Build a segment of lapsed high-LTV buyers in Japan

Debug workflows

Diagnose failed Digdag runs, patch the .dig file, and retry — with the error context pulled in automatically.

Why did last night’s enrichment workflow fail?

Design journeys

Compose multi-stage journeys with decision points and A/B tests, validated before anything goes live.

Add a 3-day wait and a coupon branch to the winback journey

Create campaigns

Generate Treasure Engage email templates that pass brand and compliance checks on the first try.

Draft the July renewal email for the cart-abandoner segment

Find the right command

Copilot uses tdx_search to discover the exact tdx command for the task — no manual paging through references.

What’s the command to preview a parent segment?
How it works

No side doors — just tdx, over MCP

Copilot never touches raw credentials or a private API. Every action flows through the tdx MCP server as a real tdx command — one you could type yourself, authenticated as you, governed and logged like any other.

VS Code agent mode Copilot plans the task and calls only the tools you’ve granted it.
tdx MCP server Translates requests into plain tdx commands — validated before anything is pushed.
Treasure AI platform CDP, segments, journeys, workflows — with your org’s policies enforced.

Prefer Claude Code? TD Skills give it the same powers and more — see Works with Claude Code.

Policy-scopedAgents inherit the caller’s TD roles — nothing more.
Fully auditedEvery command lands in the audit log, same as the console.
Version-controlledSegments and workflows are YAML — diffable, reviewable, revertible.
Private by defaultYour customer data is never used to train models.

FAQs

Yes — MCP tools run in Copilot Chat’s agent mode, which requires a paid Copilot plan (Individual, Business, or Enterprise). The tdx CLI and its MCP server are free to install, and platform usage is covered by your Treasure AI contract.

Actions run through tdx with your TD role and policies — the agent can’t do anything you couldn’t do yourself. Auth and profile commands are blocked over MCP by design, everything is audit-logged, and segment or workflow changes are plain YAML you can review before pushing.

Databases and SQL (Trino/Hive), parent segments and segments, journeys, activations, Digdag workflows, Treasure Engage campaigns, and Foundry agents — everything the tdx CLI covers, exposed to Copilot through the tdx_run tool.

Yes — that’s the point. Marketers describe the segment or journey they want in plain language; the YAML, validation, and push happen underneath. For a fully no-code experience outside the editor, see Treasure AI Studio.

Yes — TD Skills follow the open Agent Skills format that VS Code reads natively from folders like ~/.copilot/skills/ and .github/skills/. Clone treasure-data/td-skills, copy the skills you want into one of those folders, and Copilot auto-loads them when they match the task. Every skill is a readable Markdown playbook you can audit before installing.

The tdx CLI and its MCP server are free. Platform usage is covered by your existing Treasure AI contract, and Copilot is billed by GitHub under the plan your team already has — nothing new to procure.