Attest proxy

io.github.dev-prathap由 GitHub 帳號 dev-prathap 發布v0.1.0更新於 Oct 24, 2026

Zero-code proxy: policy, human gate, read-back and a hash-chained ledger for any MCP server.

已驗證STDIO僅桌面效率與工作流安全與監控

概覽

AI 產生的概覽

零程式碼 MCP 代理,為其他 MCP 伺服器的動作提供政策、人工核准、回讀驗證與雜湊鏈稽核帳本。

可以做什麼
作為代理置於任意 MCP 伺服器之前,依政策判斷代理動作是否允許,必要時暫停等待人工確認,並將結果記入防竄改帳本。將確認請求送到 Slack、網頁收件匣、webhook 或主控台,並記錄核准人對參數的修改。從記錄系統回讀,核實動作是否真的發生,並將每列標記為已驗證、已確認、僅存證或未驗證。將帳本匯出為 JSON、CSV、IETF 稽核軌跡 JSONL 格式或歐盟 AI 法案事件日誌包,可選簽章與外部錨定。
適用情境
適用於代理執行寄送郵件、更新 CRM 或轉帳等有後果的寫入動作時,需要核准關卡以及動作真實結果的證據,而不只是顯示全部成功的執行軌跡。也適合希望在不改動工具程式碼的情況下取得合規稽核記錄的團隊。
執行需求
透過 stdio 在本機執行,從 PyPI 安裝 attestlayer 並以 uvx 啟動。需要政策 YAML 路徑(ATTEST_POLICY)、帳本 SQLite 路徑(ATTEST_LEDGER);使用 Slack 確認卡片還需機器人權杖(SLACK_BOT_TOKEN)、頻道(ATTEST_SLACK_CHANNEL)與收件匣網址(ATTEST_INBOX_URL)。回讀驗證需要目標系統的憑證。僅限桌面端。
安裝前請注意
Slack 機器人權杖屬於機密,可向你的工作區發文。此代理只負責把關與記錄,不執行動作,實際寫入仍由底層工具完成。核准人可在核准前修改參數,且修改會被記錄。付費雲端版本提供共享帳本與收件匣;README 稱僅傳送雜湊與預覽,啟用前請自行確認。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Attest proxy,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

console
$ attest ledger#2  2026-09-19 10:16:46  someweirdcrm.create → leads   ask  approved  unverified   a09e7641db12#1  2026-09-19 10:16:46  someweirdcrm.create → leads   ask  approved  verified     77a6d99a60f6

The second one read back clean. The first did not, and the ledger says which field disagreed:

json
{ "level": "unverified", "matched": false,  "evidence": { "compared": 4, "exists": true, "failed": ["stage"],    "fields": { "stage": { "want": "qualified", "got": "new", "ok": false } } } }

A trace would have shown two green steps. That gap is the entire product.

Install

bash
pip install attestlayer          # Pythonnpm  install attestlayer         # TypeScript — byte-identical ledger format
python
import attest
@attest.action(system="gmail", verb="send", target="to")def send_email(to, subject, body): ...
ts
import { Attest } from "attestlayer";
const at = new Attest({ agent: "followup-agent@v3", readers: { gmail: process.env.GMAIL_TOKEN! } });const sendEmail = at.wrap({ system: "gmail", verb: "send", target: "to" },                          async ({ to, subject, body }) => gmail.send({ to, subject, body }));

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.

levelwhat it means
verifiedread back from the system of record, and the fields matched
verified-customyour own check ran and passed
acknowledgedthe action was accepted, but no read-back could run here
attested-onlyrecorded with no verifier available for this action
unverifieda check ran and contradicted the claim

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

surfacehow
Decorator / wrapper@attest.action(...) · at.wrap(...)
LangGraphtool node wrapper, gate as a graph interrupt
OpenAI Agents · Claude Agent SDK · CrewAI · DeerFlowadapters in attest/
MCPzero-code proxy in front of any server, plus a verify server
HTTP gatewaypoint outbound traffic at it, no SDK at all
API onlyPOST the descriptor yourself

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

bash
python examples/unknown_app.py                         # an app Attest has never seen, L1 → L3ATTEST_AUTO_APPROVE=1 python examples/langgraph_agent.pycd deploy && cp .env.example .env && docker compose up  # cloud API :8400 + dashboard :3400

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

wherehow
PyPIpip install attestlayer → attest, attest-mcp, attest-mcp-server, attest-gateway
npmnpm install attestlayer
MCP Registryio.github.dev-prathap/attest (verify server) · io.github.dev-prathap/attest-proxy (zero-code proxy)
Smitheryattestlayer/attest
Claude Desktopattest-<version>.mcpb on the latest release
Dockerghcr.io/dev-prathap/attest-api · ghcr.io/dev-prathap/attest-dashboard

Documentation

Full docs at dev-prathap.github.io/ATTEST — quickstart · verification levels · policy · read-back recipes · ledger & exports · hardening

Repository

pathwhat
attest/Python SDK — descriptor, policy, ledger, verification ladder, gates, adapters, MCP proxy, CLI
packages/attest-ts/TypeScript SDK — same canonical hashes, fixture-tested against Python
cloud/Attest Cloud — FastAPI + Postgres: orgs, keys, policy versions, ledger, confirm inbox, exports
dashboard/Next.js dashboard — ledger drill-down, confirm inbox, policy and keys
examples/unknown app, LangGraph, OpenAI Agents, MCP config, API-only, cloud
deploy/Dockerfiles and compose
benchmarks/what the layer costs per action
docs/documentation site source, plus design notes
bash
pytest -q && (cd cloud && pytest -q)     # 355 + 37 offline testspytest tests/live                        # 8 live suites; need real credentials, skipped without them

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 19, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分