
Tkach Security
io.github.ECD5A由 GitHub 账号 ECD5A 发布v0.1.2更新于 Oct 27, 2026
Fail-closed MCP adapter for untrusted model output over a local Tkach runtime.
概览
一个失败即拒绝的安全适配器,在不可信的模型提议与受保护操作之间接入本地 Tkach 运行时,决定放行或拒绝。
- 可以做什么
- 作为 MCP 客户端与单独运行的本地 Tkach HTTP 运行时之间的 stdio 桥接。
- 在操作被允许或输出被释放前,提交模型提议进行权限与信息流检查。
- 依赖 Core 签发的精确范围许可、来源与释放检查,并对无效、被拒、重放或取消等状态采取失败即拒绝。
- 让由代理保管的密钥留在普通模型上下文之外,并记录不含载荷的凭据回执。
- 适用场景
- 当把模型输出视为不可信数据、且受保护操作或数据导出必须经过显式且失败即拒绝的授权边界时适用。适合愿意自行运行并配置 Tkach 运行时、而非指望安装软件包即获得保护的团队。
- 运行要求
- 需要单独启动的本地 Tkach 运行时(tkach serve)并监听回环地址,以及该运行时的 bearer 令牌 TKACH_BEARER_TOKEN;TKACH_HTTP_ADDR 可指定回环地址。适配器为 Rust crate(cargo tkach-mcp),通过 stdio 运行,仅限桌面。仅安装软件包不会启用后台保护。
安装
在 SourceWeft 中
- 打开 控制台中的 Tkach Security,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[Tkach Security — Krosna, Zaslon, Propusk and Sled]
A fail-closed security boundary for AI agents and compromised model output.
[CI] [GitHub release] [npm package] [PyPI package] [tkach-cli on crates.io] [MSRV 1.85] [Apache 2.0 license]
The model proposes. Tkach authorizes.
Put Tkach between model proposals and protected actions. Its Rust Core checks authority and information flow before allowing an action or releasing output. Model output remains untrusted data, even when the model is compromised.
Why Tkach
- Explicit authority: protected actions need an exact-scope, Core-issued
Propusk; model text cannot create one. - Controlled data flow: permission to read is not permission to export. Provenance and release checks remain inside the boundary.
- Fail-closed decisions: invalid, denied, replayed, cancelled, or uncertain states do not silently become permission.
- Isolated secrets and bounded evidence: broker-held secrets stay outside
ordinary model context;
Sledreceipts do not include payloads.
These guarantees apply to paths routed through Tkach. It does not make the model trustworthy, detect every prompt injection, or protect a compromised host.
Start in minutes
Install from crates.io with Rust 1.85 or newer:
init creates a starter request without overwriting files; check validates
its schema, not permission to execute; run --demo exercises the offline
boundary without a model connection. Use tkach ui for the interactive panel.
Prefer no Rust toolchain? Download a binary below and start with tkach init.
Packages and downloads · v0.1.2
Binary archives include SHA-256 manifests, keyless Sigstore bundles, and GitHub build attestations. Pin the OCI digest for deployment; verification details live in the distribution guide.
Integrate without moving policy out of Rust
Use the HTTP contract from
your application, the Rust client,
a Python/JS/TS/Go client,
or the stdio adapter from an MCP client.
Clients and MCP require a separately started local tkach serve runtime and
its bearer token; installing a package does not enable background protection.
tkach-core stays provider-, protocol-, and language-independent. Adapters
transport requests; policy and authority stay in Rust. Follow the
integration guide or copy a working examples/
scenario. The Go client is a source module, not a separate registry package.
The supported runtime is loopback-only by default. Public internet serving, TLS termination, Streamable HTTP, a cloud control plane, and a generic executor are not included; see the deployment contract.
Show the cross-platform CLI window
See the boundary in action
From a repository checkout, run the offline Golden Case. It needs no model service or credentials. It performs one create-only write inside a temporary sandbox, then proves that a sibling path and a compromised provider proposal are denied:
Expected result:
The positive path uses trusted host configuration for the exact policy, destination, and executor binding; the provider supplies only an untrusted proposal. Read the architecture for the enforcement path and the release notes for the release checks and remaining limitations.
Documentation
- Use: integration guide, examples, distribution.
- Review: product contract, architecture, security model, threat model.
- Follow: changelog, roadmap. Report vulnerabilities through SECURITY.md.
Contributing
Keep changes small and explicit about the security boundary. Core changes need a demonstrated security or product defect; adapters must remain thin and must not duplicate Core logic. See CONTRIBUTING.md for required checks, public-claim rules, and files that must remain local.
Support
If Tkach Security is useful to your work, support its continued maintenance:
- TON:
pointoncurve.ton - Bitcoin (BTC):
1ECDSA1b4d5TcZHtqNpcxmY8pBH1GgHntN - USDT (TRC20):
TUF4vPdB6QkjCvZq18rBL4Qj4dK5ihCN75
Contact
For inquiries about Tkach Security, integrations, security research, or collaboration:
来源:README.md,提交 009559d
工具
0版本历史
2- v0.1.2最新Sep 19, 2026
- v0.1.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分