Tdcv2

io.github.NickLiapin由 GitHub 帳號 NickLiapin 發布v0.1.7更新於 Nov 7, 2026

Fake, mock and test data generator: CSV, JSON, SQL from a .tdc config, made locally by TDCv2.

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

依簡短的 .tdc 設定在本機產生假資料、模擬資料與測試資料(CSV、JSON、SQL 插入語句或任意文字),並提供檢查設定、預覽或寫入檔案、管理資料包的工具。

可以做什麼
  • 閱讀內建的 TDCv2 文件與指南,再撰寫設定
  • 檢查 .tdc 設定,回傳診斷訊息、提示與修改建議
  • 產生 CSV、JSON、SQL 或文字測試資料,可在記憶體中預覽幾行,或在專案內寫出完整檔案
  • 依關鍵字搜尋已安裝的資料包,並安裝缺少的語言或國家資料包
  • 彙整專案中的 CSV、JSON 或 SQL 檔案:列數、各欄位取值分布與範圍、每張表的 INSERT 列數
  • 格式化 .tdc 設定
適用情境
適合需要資料庫種子資料、測試 fixture、示範資料或合成紀錄的情況,尤其是想要逼真的姓名、地址、IBAN 等取值,且結果能由設定檔穩定重現,而不是手寫產生器腳本。
執行需求
以本機 stdio 程序執行,透過 npx 啟動 tdcv2-mcp 套件,需要 Node.js 20 或更新版本。未宣告帳號、API 金鑰或環境變數;對於在根目錄啟動伺服器的用戶端,可用 TDCV2_PROJECT 指定專案資料夾。首次下載 npm 套件與下載資料包時需要網路存取。
安裝前請注意
產生的檔案會寫入專案資料夾,因此助理可以在磁碟上建立檔案。執行 tdc_pack_add 時會從公開註冊表下載資料包,用戶端會先請你授權。若設定使用 http 產生器,會把指定欄位的值傳送到該網址。外掛與技能只安裝一種,否則技能會重複載入並啟動兩個伺服器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tdcv2,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

TDCv2 for AI agents

A data generator for your coding agent: fake, mock, synthetic and test data with TDCv2 — realistic names, emails, addresses, phone numbers, IBANs and more. The agent writes a small .tdc config, the TDCv2 engine generates the rows on your machine, and the same config gives the same file, byte for byte, every time you run it. CSV, JSON, SQL inserts or any text format; fields that agree with each other; exact shares; related tables; data packs for 95 languages and 198 countries. Think Faker, but for whole datasets: database seeds, test fixtures, demo data.

Two parts, one version:

  • a skill — teaches the agent the TDC language, the workflow and the traps (skills/tdcv2);
  • an MCP server, tdcv2-mcp — the same, as tools: check a config, generate, find and install data packs, summarise a file, read the docs (mcp/).

Install

Claude Code and Cowork — the plugin brings both the skill and the server. The simplest way: in claude.ai or the Claude app, Customize → Plugins → Discover, find TDCv2 — Fake & Test Data Generator, Add; Claude Code picks it up at the next session and keeps it updated. Or from this repository's marketplace:

sh
claude plugin marketplace add NickLiapin/tdcv2-agentsclaude plugin install tdcv2@tdcv2

Install one way, not both — otherwise the skill loads twice and two servers start.

Codex, Copilot, Gemini CLI, Cursor and other agents that read skills — put the skill where your agent looks for it:

sh
npx -y [email protected] install-skill            # ~/.claude/skills/tdcv2npx -y [email protected] install-skill --agents   # ~/.agents/skills/tdcv2npx -y [email protected] install-skill --project  # ./.claude/skills/tdcv2npx -y [email protected] install-skill --dir <skills folder>

Any MCP client (Claude Desktop, Cursor, VS Code…):

json
{ "mcpServers": { "tdcv2": { "command": "npx", "args": ["-y", "[email protected]"] } } }

Claude Desktop starts servers in /: add "env": {"TDCV2_PROJECT": "/path/to/project"} to that entry so the files have a folder to go to. On Windows use "command": "npx.cmd" if the client cannot start npx. Everything needs Node.js 20 or newer.

Step by step for each agent and client: TDC for AI agents.

Then ask in plain words — "500 customers from 20 countries as CSV", "a pytest test for validate_user on 50 different users" — and the agent takes it from there: writes the config, checks it with the engine, generates, and hands you the file together with the config that reproduces it.

Privacy

The engine runs locally. Neither the skill nor the server sends your data or your configs anywhere. The server reads .tdc files and writes generated files only inside the project folder it is started in.

Network access, all of it:

  • the plugin starts the server with npx -y [email protected], its own version (scripts/mcp-launch.mjs), so the first start downloads that exact version and its dependencies, the TDCv2 engine among them, from the npm registry;
  • npx -y [email protected] … in the commands above does the same, and so does npx -y [email protected] …, the exact engine version the agent runs;
  • with an engine of another version, the agent may read that version's doc page from raw.githubusercontent.com;
  • data packs are downloaded only when you or the agent run tdcv2 pack add (through the server: tdc_pack_add, which your client asks you to allow);
  • a config with <gen type="http" src="…"> sends the named values to that URL — only if someone writes such a config.

Nothing else is fetched, and nothing is sent. The full policy: PRIVACY.md.

Versions

This release, 0.1.7, is checked against TDCv2 0.3.7. The skill's reference is built from the engine's documentation for that version; with another engine version the agent reads that version's pages, and the engine's own check has the last word.

License

MIT

來源:README.md,提交 69ce546

工具

7

tdc_check

Check a TDCv2 config

Validate a .tdc config without generating anything. Returns every diagnostic with its code, line, column, hint and "did you mean" suggestion, plus warnings and whether a seed is set. Run it until the config is clean.

輸入參數pathconfig

tdc_generate

Generate data from a TDCv2 config

Make test data — CSV, JSON, SQL, any text — from a .tdc config, instead of writing a generator script. Without `output`: renders in memory and returns the first `preview` lines (max 50) — nothing is written. With `output`: writes the whole file inside the project folder and returns its size, a per-column summary and the first lines. A failed <assert> comes back as row, message, condition and values, so the config can be fixed. Same config and seed give the same bytes every time.

輸入參數pathseedcountconfigoutputpreview

tdc_find_packs

Find TDCv2 data packs

Search the data packs installed on this machine by words ("last name", "iban", "city") — the paths to write in <gen type="template" value="…"/>. Never guess a path; ask this. Returns path, the locales that have it, and what it holds (never the values).

輸入參數limitquery必填locale

tdc_pack_add

Install TDCv2 data packs

Install data packs for other languages and countries — "fr", "de", "ja", "france", "brazil" — when tdc_find_packs says a locale is missing. Runs `tdcv2 pack add` of the engine this project uses, which downloads the packs from the public TDCv2 pack registry. In a project without a pack store it first runs `tdcv2 init --yes`, which writes tdcv2.config.json and a tdcv2-packs/ folder there (engines before --no-examples also add a few tdcv2-examples/ files).

輸入參數ids必填

tdc_peek

Summarise a generated file

A short summary of a CSV, JSON or SQL file in the project: row count; per column the distinct values, the split, the range; INSERT rows per table. The proof that a file holds what was asked, without reading it all.

輸入參數path必填rowscolumn

tdc_read_docs

Read the TDCv2 guide and reference

Start here when asked for test data, fixtures or seed data: the TDCv2 guide ("guide" — read it before the first config), traps check does not catch ("traps"), using the data from test code in five languages ("from-code"), several linked tables in one file ("linked-tables"), the list of reference pages ("index"), or one reference page such as "generators/date". `query` searches the page list.

輸入參數pagequeryoffset

tdc_format

Format a TDCv2 config

Pretty-print a .tdc config the way `tdcv2 format` does. Returns the text unchanged if it does not parse.

輸入參數config必填

版本歷史

6
  1. v0.1.7最新Nov 4, 2026
  2. v0.1.6Oct 25, 2026
  3. v0.1.5Oct 17, 2026
  4. v0.1.4Oct 16, 2026
  5. v0.1.2Oct 1, 2026
  6. v0.1.1Sep 29, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分