Yapay zeka ajan eylemlerini denetleyen, sistem geri okumasıyla doğrulayan ve kanıtları hash-zincirli bir defterde kaydeden politika odaklı bir doğrulama katmanı sağlar.
Ayrıca bilinen adı dev-prathap/ATTEST, attestlayer
- Yıldızlar
- 1
- Araçlar
- —
- İndirmeler, 30 gün
- 206
- En son sürüm
- 0.1.0
- Son commit
- 24 Eyl 2026
- Lisans
- MIT
Attest MCP nedir?
Attest bir MCP sunucusudur. Yapay zeka ajan eylemlerini denetleyen, sistem geri okumasıyla doğrulayan ve kanıtları hash-zincirli bir defterde kaydeden politika odaklı bir doğrulama katmanı sağlar.
Özet, projenin README dosyasından oluşturuldu
Attest MCP sunucusu hakkında
Attest, yapay zeka ajanları tarafından gerçekleştirilen eylemleri izlemek ve denetlemek için tasarlanmış bir doğrulama katmanı sunar. Komutları bizzat çalıştırmak yerine, bir eylemin izinli olup olmadığına karar veren, gerektiğinde insan onayı için duraklayan ve kayıtlı sistemden geri okuma yaparak hedeflenen değişikliğin gerçekten gerçekleşip gerçekleşmediğini doğrulayan bir politika motoru olarak çalışır. Bu, bir ajanın yaptığını iddia ettiği şey ile hedef uygulamanın gerçek durumunun eşleşmesini sağlar.
Geliştiriciler, bunu Python veya TypeScript SDK'ları aracılığıyla decorator veya wrapper kullanarak entegre edebilirler. LangGraph, OpenAI Agents ve Claude Agent SDK dahil olmak üzere çeşitli ortamları destekler. Model Context Protocol kullananlar için kod gerektirmeyen (zero-code) bir proxy ve bir verify server sunar. Sistem, yerel olarak SQLite'da veya bulutta Postgres kullanarak saklanan, üzerinde oynanması engellenmiş, hash-zincirli bir defter tutar. Bir görevin başarısı hakkında dürüst raporlama sağlamak için her eylemi verified, acknowledged veya unverified gibi belirli seviyelerle kategorize eder.
Neler yapabilirsiniz
- 1Hassas ajan eylemlerini denetleyinBir ajanın e-posta göndermek gibi kritik bir görevi yerine getirmeden önce insan müdahalesi gerektirin.
- 2Ajan faaliyetlerini bir defter ile denetleyinTüm ajan eylemlerinin ve doğrulama durumlarının kalıcı, üzerinde oynanması engellenmiş bir kaydını tutun.
- 3Kod gerektirmeyen bir MCP proxy'si dağıtınTemel araç kodunu yeniden yazmadan mevcut MCP server'larına bir doğrulama katmanı ekleyin.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Attest MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a ekleAttest MCP'yi Claude Code içine yükleyin
$ claude mcp add --env 'GMAIL_TOKEN=<YOUR_GMAIL_TOKEN>' --env 'GOOGLE_TOKEN=<YOUR_GOOGLE_TOKEN>' --env 'GRAPH_TOKEN=<YOUR_GRAPH_TOKEN>' --env 'HUBSPOT_TOKEN=<YOUR_HUBSPOT_TOKEN>' --env 'LINEAR_API_KEY=<YOUR_LINEAR_API_KEY>' --env 'NOTION_TOKEN=<YOUR_NOTION_TOKEN>' --env 'SLACK_BOT_TOKEN=<YOUR_SLACK_BOT_TOKEN>' attest -- uvx attestlayerAttest MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"attest": {
"command": "uvx",
"args": [
"attestlayer"
],
"env": {
"GMAIL_TOKEN": "<YOUR_GMAIL_TOKEN>",
"GOOGLE_TOKEN": "<YOUR_GOOGLE_TOKEN>",
"GRAPH_TOKEN": "<YOUR_GRAPH_TOKEN>",
"HUBSPOT_TOKEN": "<YOUR_HUBSPOT_TOKEN>",
"LINEAR_API_KEY": "<YOUR_LINEAR_API_KEY>",
"NOTION_TOKEN": "<YOUR_NOTION_TOKEN>",
"SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>"
}
}
}
}Attest MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"attest": {
"type": "stdio",
"command": "uvx",
"args": [
"attestlayer"
],
"env": {
"GMAIL_TOKEN": "<YOUR_GMAIL_TOKEN>",
"GOOGLE_TOKEN": "<YOUR_GOOGLE_TOKEN>",
"GRAPH_TOKEN": "<YOUR_GRAPH_TOKEN>",
"HUBSPOT_TOKEN": "<YOUR_HUBSPOT_TOKEN>",
"LINEAR_API_KEY": "<YOUR_LINEAR_API_KEY>",
"NOTION_TOKEN": "<YOUR_NOTION_TOKEN>",
"SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>"
}
}
}
}Attest MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"attest","type":"stdio","command":"uvx","args":["attestlayer"],"env":{"GMAIL_TOKEN":"<YOUR_GMAIL_TOKEN>","GOOGLE_TOKEN":"<YOUR_GOOGLE_TOKEN>","GRAPH_TOKEN":"<YOUR_GRAPH_TOKEN>","HUBSPOT_TOKEN":"<YOUR_HUBSPOT_TOKEN>","LINEAR_API_KEY":"<YOUR_LINEAR_API_KEY>","NOTION_TOKEN":"<YOUR_NOTION_TOKEN>","SLACK_BOT_TOKEN":"<YOUR_SLACK_BOT_TOKEN>"}}'Attest MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"attest": {
"command": "uvx",
"args": [
"attestlayer"
],
"env": {
"GMAIL_TOKEN": "<YOUR_GMAIL_TOKEN>",
"GOOGLE_TOKEN": "<YOUR_GOOGLE_TOKEN>",
"GRAPH_TOKEN": "<YOUR_GRAPH_TOKEN>",
"HUBSPOT_TOKEN": "<YOUR_HUBSPOT_TOKEN>",
"LINEAR_API_KEY": "<YOUR_LINEAR_API_KEY>",
"NOTION_TOKEN": "<YOUR_NOTION_TOKEN>",
"SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>"
}
}
}
}Attest MCP'yi Codex içine yükleyin
$ codex mcp add attest --env 'GMAIL_TOKEN=<YOUR_GMAIL_TOKEN>' --env 'GOOGLE_TOKEN=<YOUR_GOOGLE_TOKEN>' --env 'GRAPH_TOKEN=<YOUR_GRAPH_TOKEN>' --env 'HUBSPOT_TOKEN=<YOUR_HUBSPOT_TOKEN>' --env 'LINEAR_API_KEY=<YOUR_LINEAR_API_KEY>' --env 'NOTION_TOKEN=<YOUR_NOTION_TOKEN>' --env 'SLACK_BOT_TOKEN=<YOUR_SLACK_BOT_TOKEN>' -- uvx attestlayerAttest MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.attest] command = "uvx" args = ["attestlayer"] [mcp_servers.attest.env] GMAIL_TOKEN = "<YOUR_GMAIL_TOKEN>" GOOGLE_TOKEN = "<YOUR_GOOGLE_TOKEN>" GRAPH_TOKEN = "<YOUR_GRAPH_TOKEN>" HUBSPOT_TOKEN = "<YOUR_HUBSPOT_TOKEN>" LINEAR_API_KEY = "<YOUR_LINEAR_API_KEY>" NOTION_TOKEN = "<YOUR_NOTION_TOKEN>" SLACK_BOT_TOKEN = "<YOUR_SLACK_BOT_TOKEN>"
Attest MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user -e 'GMAIL_TOKEN=<YOUR_GMAIL_TOKEN>' -e 'GOOGLE_TOKEN=<YOUR_GOOGLE_TOKEN>' -e 'GRAPH_TOKEN=<YOUR_GRAPH_TOKEN>' -e 'HUBSPOT_TOKEN=<YOUR_HUBSPOT_TOKEN>' -e 'LINEAR_API_KEY=<YOUR_LINEAR_API_KEY>' -e 'NOTION_TOKEN=<YOUR_NOTION_TOKEN>' -e 'SLACK_BOT_TOKEN=<YOUR_SLACK_BOT_TOKEN>' attest uvx -- attestlayerAttest MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"attest": {
"command": "uvx",
"args": [
"attestlayer"
],
"env": {
"GMAIL_TOKEN": "<YOUR_GMAIL_TOKEN>",
"GOOGLE_TOKEN": "<YOUR_GOOGLE_TOKEN>",
"GRAPH_TOKEN": "<YOUR_GRAPH_TOKEN>",
"HUBSPOT_TOKEN": "<YOUR_HUBSPOT_TOKEN>",
"LINEAR_API_KEY": "<YOUR_LINEAR_API_KEY>",
"NOTION_TOKEN": "<YOUR_NOTION_TOKEN>",
"SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>"
}
}
}
}Yapılandırma
GMAIL_TOKENGizliGoogle OAuth access token with gmail.readonly — enables Gmail read-back
GOOGLE_TOKENGizliGoogle OAuth access token — enables Calendar / Drive / Docs / Sheets read-back
GRAPH_TOKENGizliMicrosoft Graph token — enables Outlook / Teams read-back
HUBSPOT_TOKENGizliHubSpot private-app token — enables HubSpot read-back
LINEAR_API_KEYGizliLinear API key — enables Linear read-back
NOTION_TOKENGizliNotion integration token — enables Notion read-back
SLACK_BOT_TOKENGizliSlack bot token (xoxb-…) with channels:history, channels:read — enables Slack read-back
ATTEST_AUTO_APPROVESet to 1 to approve every confirm request (development only)
ATTEST_CONFIRM_TIMEOUTSeconds attest_confirm waits for a human (default 900)
ATTEST_LEDGERLedger SQLite path (default .attest/ledger.sqlite)
ATTEST_POLICYPath to a policy YAML (defaults to ./attest.yaml or the built-in default)
| Ad | Açıklama | Sunucu |
|---|---|---|
| GMAIL_TOKEN | Google OAuth access token with gmail.readonly — enables Gmail read-back | Gizli |
| GOOGLE_TOKEN | Google OAuth access token — enables Calendar / Drive / Docs / Sheets read-back | Gizli |
| GRAPH_TOKEN | Microsoft Graph token — enables Outlook / Teams read-back | Gizli |
| HUBSPOT_TOKEN | HubSpot private-app token — enables HubSpot read-back | Gizli |
| LINEAR_API_KEY | Linear API key — enables Linear read-back | Gizli |
| NOTION_TOKEN | Notion integration token — enables Notion read-back | Gizli |
| SLACK_BOT_TOKEN | Slack bot token (xoxb-…) with channels:history, channels:read — enables Slack read-back | Gizli |
| ATTEST_AUTO_APPROVE | Set to 1 to approve every confirm request (development only) | |
| ATTEST_CONFIRM_TIMEOUT | Seconds attest_confirm waits for a human (default 900) | |
| ATTEST_LEDGER | Ledger SQLite path (default .attest/ledger.sqlite) | |
| ATTEST_POLICY | Path to a policy YAML (defaults to ./attest.yaml or the built-in default) |
Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirdev-prathap/attest is public and reachablegithub.com/dev-prathap/attest ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorattestlayer names dev-prathap/attest as sourcepypi.org/project/attestlayer/ ↗Geçti
- Derleme kökeni (Sigstore onayı)No build attestation published for this releaseKontrol edilmedi
- Açık kaynak lisansı (OSI)MITspdx.org/licenses/MIT.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-09-24github.com/dev-prathap/attest ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from attestlayerGeçti
- Pakette veya bağımlılıklarında kritik uyarı yok7 resolved dependencies checked; no critical advisoryosv.dev ↗Geçti
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
Attest — prove what your AI agent actually did
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:
$ 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:
{ "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
pip install attestlayer # Python
npm install attestlayer # TypeScript — byte-identical ledger format
import attest
@attest.action(system="gmail", verb="send", target="to")
def send_email(to, subject, body): ...
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.
| level | what it means |
|---|---|
verified |
read back from the system of record, and the fields matched |
verified-custom |
your own check ran and passed |
acknowledged |
the action was accepted, but no read-back could run here |
attested-only |
recorded with no verifier available for this action |
unverified |
a 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
| surface | how |
|---|---|
| Decorator / wrapper | @attest.action(...) · at.wrap(...) |
| LangGraph | tool node wrapper, gate as a graph interrupt |
| OpenAI Agents · Claude Agent SDK · CrewAI · DeerFlow | adapters in attest/ |
| MCP | zero-code proxy in front of any server, plus a verify server |
| HTTP gateway | point outbound traffic at it, no SDK at all |
| API only | POST 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
python examples/unknown_app.py # an app Attest has never seen, L1 → L3
ATTEST_AUTO_APPROVE=1 python examples/langgraph_agent.py
cd 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
| where | how |
|---|---|
| PyPI | pip install attestlayer → attest, attest-mcp, attest-mcp-server, attest-gateway |
| npm | npm install attestlayer |
| MCP Registry | io.github.dev-prathap/attest (verify server) · io.github.dev-prathap/attest-proxy (zero-code proxy) |
| Smithery | attestlayer/attest |
| Claude Desktop | attest-<version>.mcpb on the latest release |
| Docker | ghcr.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
| path | what |
|---|---|
| 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 |
pytest -q && (cd cloud && pytest -q) # 355 + 37 offline tests
pytest 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.
Attest MCP soruları
Attest MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add --env 'GMAIL_TOKEN=<YOUR_GMAIL_TOKEN>' --env 'GOOGLE_TOKEN=<YOUR_GOOGLE_TOKEN>' --env 'GRAPH_TOKEN=<YOUR_GRAPH_TOKEN>' --env 'HUBSPOT_TOKEN=<YOUR_HUBSPOT_TOKEN>' --env 'LINEAR_API_KEY=<YOUR_LINEAR_API_KEY>' --env 'NOTION_TOKEN=<YOUR_NOTION_TOKEN>' --env 'SLACK_BOT_TOKEN=<YOUR_SLACK_BOT_TOKEN>' attest -- uvx attestlayer komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
Attest MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
Attest, ajanımın eylemlerini gerçekleştirir mi?
Hayır, Attest eylemlerinizi asla çalıştırmaz; eylemi sizin aracınız (tool) gerçekleştirir, bu da herhangi bir uygulama ve framework ile çalışmasına olanak tanır.
Attest bir eylemin gerçekten gerçekleştiğini nasıl doğrular?
Sonuçları ajanın iddiasıyla karşılaştırmak için kayıtlı sistemden geri okuma (read-back) yöntemini kullanır.
Farklı doğrulama seviyeleri nelerdir?
Seviyeler şunlardır: verified (geri okundu ve eşleşti), verified-custom (özel kontrol geçti), acknowledged (kabul edildi ancak geri okuma mümkün değil), attested-only (doğrulayıcı olmadan kaydedildi) ve unverified (kontrol iddianın aksini gösterdi).