
Attest
io.github.dev-prathap由 GitHub 账号 dev-prathap 发布v0.1.0更新于 Nov 3, 2026
Decide by policy, gate behind a human, verify by read-back, record a hash-chained ledger.
概览
Attest 是一个本地 MCP 校验服务器,让助手按策略决定代理操作是否放行、在关键操作前请求人工确认、从记录系统回读核验,并写入哈希链审计账本。
- 可以做什么
- 策略与人工把关:按策略判定代理操作,必要时暂停等待人工确认,审批人可在批准前修改参数。
- 回读核验:从 Gmail、Google Workspace、Microsoft Graph、HubSpot、Notion、Linear 或 Slack 回读,并比对字段是否与声称结果一致。
- 记录证据:把每次操作写入哈希链 SQLite 账本,标注核验等级,并支持签名检查点与导出。
- 查看记录:查询账本条目及其核验证据,包括哪些字段不一致。
- 接入方式:可作为零代码 MCP 代理置于其他服务器之前,也支持 SDK 装饰器、HTTP 网关和框架适配器。
- 适用场景
- 适用于代理执行发邮件、更新 CRM、转账等有后果的外部操作,而你需要的是实际发生了什么的确凿证据,而不是工具返回的成功提示。也适合需要可审计、防篡改记录以满足合规或事后复盘的团队。
- 运行要求
- 以 stdio 本地运行,从 PyPI 安装 attestlayer 并用 uvx 启动。回读需要相应系统的 OAuth 或 API 令牌:GMAIL_TOKEN、GOOGLE_TOKEN、GRAPH_TOKEN、HUBSPOT_TOKEN、NOTION_TOKEN、LINEAR_API_KEY、SLACK_BOT_TOKEN。可选配置包括 ATTEST_POLICY、ATTEST_LEDGER、ATTEST_CONFIRM_TIMEOUT 和 ATTEST_AUTO_APPROVE。被拦截的操作还需要人工审批渠道(Slack、网页收件箱、webhook 或控制台)。
安装
在 SourceWeft 中
- 打开 控制台中的 Attest,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Attest — prove what your AI agent actually did
[ci] [pypi] [npm] [docs] [license]
Decide → Gate → Verify → Attest. Your agent sends the email, updates the CRM, moves the money. Attest decides whether it may, gates it behind a human when it matters, reads back from the system of record to check it actually happened, and records tamper-evident evidence either way.
Attest never executes your action. Your tool does. That is why it works with any app and any framework on day one.
Your agent says it worked. Did it?
Two identical CRM writes, both reported success by the tool, both approved by a human:
The second one read back clean. The first did not, and the ledger says which field disagreed:
A trace would have shown two green steps. That gap is the entire product.
Install
That is the whole change. The first external send now pauses for a human, and the ledger row says
acknowledged, or verified once Attest can read back with the agent's own credentials
(Attest(readers={"gmail": service})). Nothing else in your code moves.
Verification is layered, and it never overstates
Every row states exactly how much was checked. A check that could not run is never dressed up as a pass.
Only a contradiction earns unverified. Missing credentials, a read-only scope or an unsupported verb
degrade to acknowledged, because "we could not check" and "it did not happen" are different facts.
Where it plugs in
Human confirmation lands where the team already works: Slack, the web inbox, a webhook, a LangGraph interrupt, or the console. Approvers can edit the parameters before approving, and the edit is recorded.
The record itself
Hash-chained ledger, SQLite locally and Postgres per organisation in the cloud. Signed checkpoints let
you prune old rows and still verify the chain. Optional Ed25519 signing, and external anchoring to a
file, a git repo or an HTTP endpoint. Exports: JSON, CSV, the IETF draft-sharif-agent-audit-trail
JSONL format, and an EU AI Act event-log pack.
Overhead is roughly a sixth of a millisecond per action, measured in benchmarks/ (published numbers).
Try it locally
Attest Cloud
The SDK is MIT and works standalone with a local ledger. Attest Cloud adds the shared ledger, the
confirm inbox, versioned org policy, agent keys and compliance exports. Your vendor tokens never reach
it: read-back happens in your process with your own credentials, and only hashes and previews are sent.
Self-host it from deploy/, or read DEPLOY.md.
Install channels
Documentation
Full docs at dev-prathap.github.io/ATTEST — quickstart · verification levels · policy · read-back recipes · ledger & exports · hardening
Repository
Contributing
Read-back recipes are the easiest place to start: each one teaches Attest how to confirm a write in one more app, and needs nothing but that app's read API. See CONTRIBUTING.md, and SECURITY.md for reporting a vulnerability.
Principles
- We never execute your action. Your tool executes; we decide, gate, verify and record.
- Coverage is universal. Verification depth is layered and stated honestly on every row.
- Open-source SDK under MIT. Paid cloud for the shared ledger, inbox, policy and exports.
Design notes
The thinking behind the product, kept in the open: vision · product · universal adapter · architecture · market · build plan · decisions · phase plan
Lineage
Attest's core mechanisms are extracted from two working codebases: DO (policy engine, read-back
verification pairs, evidence ledger) and DeerFlow (tool receipts, verification patterns, MCP and
chat-channel adapters), which run against real Gmail, Slack, HubSpot, Notion, Linear and Google
Workspace. Attest ships its own live suites for those systems in tests/live/; they
need real credentials and are skipped without them.
来源:README.md,提交 a694329
工具
0版本历史
1- v0.1.0最新Sep 19, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分