
Triplex schema contracts
io.github.triplexanalytics由 GitHub 帳號 triplexanalytics 發布v0.48.1更新於 Nov 6, 2026
Infer and validate schema contracts on local CSV, TSV and JSON Lines files. No network access.
概覽
本機 stdio MCP 伺服器,讓助理為本機 CSV、TSV 與 JSON Lines 檔案推斷並驗證 schema 契約。
- 可以做什麼
- 從本機 CSV、TSV 或 JSON Lines 檔案推斷 schema 契約,可限制取樣列數。
- 以既有的 .triplex.yaml 契約驗證本機資料檔是否符合。
- 兩個工具皆為唯讀,只接受本機檔案路徑;目前未提供匿名化工具。
- 適用情境
- 適合程式助理需要剖析本機表格或 JSON Lines 資料的結構、草擬 schema 契約,或在後續處理前確認檔案仍符合既定契約的情況。
- 執行需求
- 以本機程序透過 stdio 執行,需以 cargo install triplex-mcp 安裝(Rust/Cargo 工具鏈)。不需參數、設定檔、網路存取、帳號或憑證。需將 MCP 客戶端的 stdio 傳輸指向該執行檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Triplex schema contracts,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
triplex-mcp
[Triplex schema contracts MCP server]
MCP (Model Context Protocol) server over SchemaCast, stdio transport only.
A coding agent (Claude Code or any other MCP client)
launches this as a local process and talks to it over its own stdin/stdout,
same trust boundary as apps/triplex-cli: no network, no server, nothing
here reads bytes over the wire.
Tools
schema_infer(path, sample_rows?): infers a schema contract from a local file (triplex_schemacast::infer_schema_from_path).schema_validate(schema_path, input_path, sample_rows?): checks a local file against a.triplex.yamlcontract (triplex_schemacast::validate_path).
Both are read-only and take a local file path. anonymize isn't exposed
yet.
Run
From a checkout of this repository: cargo run -p triplex-mcp.
Speaks newline-delimited JSON-RPC 2.0 on stdin/stdout. Point an MCP client's stdio transport at this binary. No flags, no config file.
Build/test
Ordinary workspace crate: cargo build -p triplex-mcp, cargo test -p triplex-mcp, cargo clippy -p triplex-mcp --all-targets. Covered by the
root cargo test --workspace/CI already; there is no separate Makefile target.
MCP registry
The official MCP registry lists servers by name and points MCP clients to the package to install; for this server, that package is this crate on crates.io. The registry confirms that the crate belongs to the entry by reading the line below in the published README, so it has to stay:
mcp-name: io.github.triplexanalytics/triplex-mcp
來源:apps/triplex-mcp/README.md,提交 0d0881b
工具
0版本歷史
1- v0.48.1最新Oct 23, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分