
Ztds
io.github.moxno由 GitHub 帳號 moxno 發布v1.0.0更新於 Nov 10, 2026
Open standard MCP server for Zero-Trust Data Sanitization (ZTDS RFC v1.0). In-memory PII masking.
概覽
本機 stdio MCP 伺服器,在文字送進大型語言模型前以可還原的權杖遮蔽 PII、PHI 與憑證,並可稽核文字中外洩的密鑰。
- 可以做什麼
- 將敏感文字遮蔽為替代權杖並產生 SHA-256 回執
- 在工作階段內從權杖還原原始內容
- 稽核文字或檔案內容中的憑證與 PII,並給出風險等級
- 讀取協定狀態、工作階段指標與 RFC 中介資料資源
- 重設工作階段以清除記憶體中的權杖對應表
- 適用情境
- 適合需要讓助理處理含電子郵件、卡號、IBAN 或 API 密鑰的客戶資料、日誌或文件,又不希望把原始值送給模型的場合,也可用來在本機檢查文字中是否外洩密鑰。
- 執行需求
- 以本機程序透過 stdio 執行,通常用 npx 啟動 npm 套件 ztds-mcp,或以 Node.js 從儲存庫原始碼執行。未宣告需要帳號、API 密鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Ztds,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ztds-mcp & ztds-audit — Zero-Trust Data Sanitization (ZTDS™ RFC v1.0) MCP Server & Invariant Auditor
[Specification] [MCP Protocol] [License: Apache-2.0] [NPM Downloads: ztds-mcp] [NPM Downloads: ztds-audit] [GitHub Stars] [Zenodo DOI] [OSF DOI] [Patent Pending] [WAN Egress] [Smithery Badge] [MCPRush Grade A] [XERJ Corpus Hub contributor]
This repository contains the official Model Context Protocol (MCP) Server implementation (ztds-mcp) and Codebase Invariant Auditor (ztds-audit) for the Zero-Trust Data Sanitization (ZTDS™ RFC v1.0) standard. Maintained by the ZTDS AI Consortium.
- MCP Server Source Code (in this repository):
packages/ztds-mcp/index.js - MCP Manifest & Server Card:
packages/ztds-mcp/manifest.json|server-card.json|smithery.yaml - MCP Server Test Suite:
packages/ztds-mcp/test.js - CLI Invariant Auditor:
bin/ztds-audit.js
ZTDS™ governs in-memory data sanitization for AI agents, IDE assistants (Claude Desktop, Claude Code, Cursor, Windsurf, Zed), retrieval-augmented generation (RAG), and Large Language Model (LLM) pipelines. It executes 100% locally in volatile device memory (RAM) with zero external network calls, zero disk writes, and zero subprocessors.
1. MCP Server Implementation (ztds-mcp)
The reference MCP server (packages/ztds-mcp/index.js) implements the Model Context Protocol (2024-11-05) over stdio JSON-RPC 2.0 transport with zero external runtime dependencies. It intercepts sensitive cleartext (PII, PHI, API secrets, IBANs, credit cards) in client RAM prior to LLM dispatch, substitutes deterministic surrogate tokens ([EMAIL_TOKEN_1], [API_SECRET_TOKEN_1]), and restores authentic values locally in LLM responses.
1.1 Installation & MCP Client Configuration
Option A: 1-Click Automated Setup
Option B: Claude Desktop (claude_desktop_config.json) & Cursor IDE (.cursor/mcp.json)
Option C: Run Directly from Repository Source
Option D: Claude Code CLI
1.2 MCP Tools (tools/list & tools/call)
Implemented in packages/ztds-mcp/index.js:
Example JSON-RPC tools/call (ztds_sanitize -> ztds_restore)
Request (ztds_sanitize):
Response:
1.3 MCP Resources (resources/list & resources/read)
The MCP server exposes structured read-only protocol and telemetry resources via resources/list and resources/read:
1.4 MCP Prompts (prompts/list & prompts/get)
1.5 Programmatic / Node.js SDK Usage (packages/ztds-mcp/index.js)
The MCP server module exports its JSON-RPC dispatcher and in-memory sanitization primitives for direct programmatic integration and testing:
Run the MCP server verification suite locally:
2. The 4 Fundamental Invariants (RFC v1.0)
Every AI pipeline protected by ztds-mcp and audited by ztds-audit is verified against the 4 core mathematical and architectural invariants:
- Invariant 1: Zero External Egress Prior to Sanitization: Raw sensitive cleartext (PII, PHI, API secrets, private financial numbers) must never cross the local execution boundary prior to reversible surrogate tokenization.
- Invariant 2: Deterministic Reversible Tokenization: Semantic, syntactic, and structural context must be preserved for LLM reasoning while de-identification lookup tables remain strictly in local host volatile memory.
- Invariant 3: Cryptographic & In-Memory Isolation: Operations run in volatile heap or hardware-attested enclaves (WASM, Nitro Enclaves, C-ABI) with zero unencrypted disk spill and immediate memory zeroization.
- Invariant 4: Continuous Subprocessor Exclusion: Local client-side execution eliminates third-party transmission, legally exempting deployments from GDPR Article 28 data processing agreements (Zero-DPA).
3. Codebase Invariant Auditor CLI (ztds-audit)
Run a zero-install security and invariant audit across your codebase or AI agent repository:
Command-Line Flags
Example Output
4. GitHub Actions CI/CD Integration
Enforce zero-trust data sanitization on every pull request by creating .github/workflows/ztds-audit.yml:
5. Empirical AI Safety Benchmark (Frontier LLMs)
Verify cleartext leakage prevention, bijective fidelity, and microsecond latency across OpenAI GPT-4o, Anthropic Claude 3.5 Sonnet, Google Gemini 2.0 Pro, and DeepSeek-V3:
Full report: ZTDS AI Safety Benchmark Report (2026)
6. Remediation & Certified Implementation Engines
7. Ecosystem Demarcation & Neutrality
- ZTDS.ai (
ztds.ai): Independent, vendor-neutral open standard, certification authority, and technical consortium. Governs RFC v1.0 specifications under Apache 2.0 / CC BY 4.0. - PrivacyScrubber (
privacyscrubber.com): Commercial reference implementation and pioneer engine provider.
8. Intellectual Property & Statutory Governance
- Patent Application: U.S. & International Patents Pending (System and Method for Client-Side Zero-Trust Data Sanitization and Cryptographic Multi-Party Pipeline Handoff). Paris Convention & 35 U.S.C. § 119 Priority ().
- Registered Trademark: ZTDS™ (ILPO Order #182655957, Classes 9 & 42).
- Academic DOIs:
- Zenodo: 10.5281/zenodo.22058770
- Open Science Framework (OSF): 10.17605/OSF.IO/5BYJF
- SSRN: 7335581
- Author & Founder: Ilya Sibiryakov (BrandMeWeb)
9. License
Licensed under the Apache License, Version 2.0. Copyright 2024–2026 Ilya Sibiryakov (ZTDS AI Consortium / BrandMeWeb).
來源:README.md,提交 7fc4c39
工具
0版本歷史
1- v1.0.0最新Sep 27, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分