
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 分