DCL Trust Oracle — AI/LLM Output Audit (x402 MCP)

com.fronesislabs由 fronesislabs.com 發布官方發布者v2.3.1更新於 Oct 24, 2026

AI/LLM agent output audit MCP: policy eval, tamper-evident chain, AI safety, x402 USDC on Base.

已驗證Streamable HTTP可網頁執行金融安全與監控AI 與機器學習

概覽

AI 產生的概覽

遠端 MCP 伺服器,依內建原則稽核 AI/LLM 輸出,並將決策封存進防竄改雜湊鏈,按次以 USDC 付費。

可以做什麼
依內建原則評估輸出:快速、嚴格、越獄、安全、品質及批次檢查,另有加密貨幣專用的越獄、交易決策與市場訊號篩檢,回傳判定、信心分數與 tx_hash 憑證。掃描文字中的金鑰外洩、個人資料、錢包助記詞與私鑰,並在發布前淨化輸出。建立 pipeline 工作階段識別碼以歸組相關檢查。依 tx_hash 從鏈上取回並深度解析歷史稽核紀錄。將決策寫入僅可追加的稽核鏈,回傳含 tx_hash 與鏈雜湊的收據。
適用情境
適合助理輸出會帶來實際後果(例如交易或錢包相關決策)的情境,希望在執行前取得原則判定與可驗證紀錄。也適合在生成文字送達使用者或下游系統前,篩檢金鑰、個人資料或不安全交易措辭。
執行需求
遠端 streamable-HTTP 端點;未宣告本機安裝或 API 金鑰。每次呼叫需透過 x402 協定以 Base 上的 USDC 付費:已設定錢包且支援 x402 的用戶端可自動付款,否則走引導式付款連結。需要能存取該託管端點的網路。
安裝前請注意
每個付費工具都按次收費(約 0.01 至 0.50 美元,另有 49 美元 30 天監控權益),自動化迴圈可能持續花錢。付款透過已設定的錢包以 Base 上的 USDC 結算。commit 工具會寫入僅可追加的稽核鏈。原則檢查只是簡單的子字串與正規表示式啟發式判斷,並非語意分析,判定可能漏檢或誤報。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DCL Trust Oracle — AI/LLM Output Audit (x402 MCP),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.fronesislabs%2Fdcl-trust-oracle/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "dcl-trust-oracle-ai-llm-output-audit-x40": {
      "type": "http",
      "url": "https://mcp.fronesislabs.com/mcp"
    }
  }
}

README

DCL Trust Oracle

[Python 3.11+] [MCP] [License: Apache 2.0] [dcl-webhook MCP server] [Smithery]

Don't trust the agent. Trust the proof.

Autonomous AI agents now take actions with real consequences — financial, legal, reputational. Most of them are black boxes: no record of what was decided, why, or whether that decision was tampered with afterward.

DCL Trust Oracle closes that gap. Every agent output is evaluated against policy in real time and sealed into a tamper-evident hash chain — a deterministic, cryptographically verifiable record of what happened and when. Edit any past entry and the entire chain invalidates. No one — not even Fronesis Labs — has to be trusted for the record to hold up.

What It Does

DCL Trust Oracle provides deterministic policy evaluation for LLM outputs with a tamper-evident audit chain. The system stores only cryptographic hashes and decision metadata — never raw content — enabling verifiable, post-action forensic analysis across distributed AI agents.

Available two ways:

  • REST API (webhook_server.py) — direct HTTP integration.
  • MCP Server (mcp_server.py) — native Model Context Protocol integration for AI agents. Live at https://mcp.fronesislabs.com/mcp (streamable-http). Also listed on Smithery (remote URL → same production endpoint; see smithery.yaml) and the official MCP Registry.

Both servers share the same evaluation logic and tamper-evident chain (dcl_core.py), and are priced identically.

Quick Start

REST API

pip install -r requirements.txt
python webhook_server.py

Server runs on http://localhost:8080

MCP Server

Production (hosted):

https://mcp.fronesislabs.com/mcp

Streamable HTTP transport — point any MCP client here directly, no setup required.

Local development:

pip install -r requirements.txt
python mcp_server.py

Server runs on http://localhost:8081 (streamable-http transport)

Tools & Endpoints

Pre-Action Evaluation

Catch a bad output before it reaches a user, a wallet, or downstream system.

REST EndpointMCP ToolPriceDescription
POST /evaluate/fastdcl_evaluate_fast$0.01Fast policy check for low-risk outputs. Returns tamper-evident tx_hash.
POST /evaluate/strictdcl_evaluate_strict$0.05Deep analysis for high-stakes outputs with higher confidence thresholds.
POST /evaluate/jailbreakdcl_evaluate_jailbreak$0.02Instruction adherence check — detects prompt injection patterns and role-hijacking attempts.
POST /evaluate/safetydcl_evaluate_safety$0.01Baseline screening for known harmful text patterns. Optimized for high throughput.
POST /evaluate/qualitydcl_evaluate_quality$0.03Content quality & drift check — evaluates format adherence and contextual drift.
POST /evaluate/batchdcl_evaluate_batch$0.10Bulk processing — up to 200 items per MCP call (REST default max_items: 20). Cost-effective for multi-turn history.

Session Management

REST EndpointMCP ToolPriceDescription
POST /pipeline/startdcl_pipeline_start$0.05Initializes a long-running audit session for continuous drift tracking. Returns pipeline_id.

Post-Action Forensics

When something did go wrong, reconstruct exactly what happened.

REST EndpointMCP ToolPriceDescription
GET /audit/{tx_hash}dcl_audit_decode$0.10Basic post-action audit — returns verdict, confidence, agent_id, reason by tx_hash.
GET /audit/{tx_hash}/deepdcl_audit_decode_deep$0.50Deep forensic audit — includes drift context, tamper-evidence indices, environmental metadata.

Post-Action Scans

REST EndpointMCP ToolPriceDescription
POST /evaluate/secretsdcl_evaluate_secrets$0.02Secret & credential leak scan.
POST /evaluate/piidcl_evaluate_pii$0.02PII detection scan.

DCL Update Sentinel (Continuous Skill Monitoring)

Continuous security auditing and release verification for AI Agent Skills and GitHub repositories. Sentinel monitors code updates via GitHub Webhooks, blocks regressions against your security baseline, and automatically recovers skill status upon clean rescans.

REST EndpointPriceDescription
POST /sentinel/register$49.00 / 30dRegister a skill/repo for continuous monitoring. Requires passing initial baseline audit (score >= 0.80; returns HTTP 422 if failed). Issues webhook_secret.
POST /sentinel/webhook/{webhook_secret}FreeGitHub Webhook receiver. Audits new release tags, blocks regressions, and logs tamper-evident events.
POST /sentinel/scan$0.05–$0.50Pay-per-call repository audit (update_rescan, deep_scan, forensic_audit).
GET /sentinel/status/{repo_full_name}FreeQuery skill security status (active, blocked, unregistered) and last known good version.
POST /sentinel/renew$49.00 / 30dExtend 30-day monitoring entitlement for a registered skill (owner-verified).
GET /sentinel/pricesFreeReturns current price breakdown for Sentinel services.
Key Features of Sentinel:
  • Idempotent Webhook Processing: Built-in protection against duplicate GitHub delivery retries (X-GitHub-Delivery tracking).
  • Auto-Recovery: Skills blocked due to security regressions (status: blocked) are automatically restored to active once a clean, policy-compliant release is published.
  • Strict Owner Verification: Subscription renewals require cryptographic signature match with the registered owner's wallet (owner_payer_ref).
  • Baseline Policy Gate: Registration requires a passing initial audit (score >= 0.80). Compromised or failing repositories are rejected immediately (HTTP 422) to prevent invalid entitlement setup.

Crypto & Trading Compliance (MCP only)

These tools are exposed on the live MCP server only (no REST routes in webhook_server.py).

MCP ToolPriceDescription
dcl_evaluate_jailbreak_crypto$0.02Crypto-specific jailbreak & injection detection.
dcl_evaluate_wallet$0.02Wallet secret guardian.
dcl_evaluate_trade$0.02Trade decision verifier.
dcl_evaluate_mev$0.03MEV & market-abuse compliance screen.
dcl_evaluate_signal$0.03Market signal fabrication screen.
dcl_evaluate_output_sanitizer$0.02Output sanitizer — final gate.
dcl_commit$0.01Leibniz Layer crypto commit — seal a decision to the audit chain.

Utility (free, REST only)

EndpointDescription
GET /healthService status and chain length
GET /policiesList of built-in policy names
GET /chain/statusChain integrity, drift mode, drift score
GET /chain/exportFull chain export with integrity verification

Example Response

{
  "verdict": "COMMIT",
  "confidence": 0.95,
  "reason": "All policy checks passed",
  "tx_hash": "0x7a8f3b2c...",
  "chain_index": 42,
  "input_hash": "0x9d4e1f...",
  "policy_version": "1.0.0",
  "timestamp": 1721635200.123,
  "pipeline_id": "abc123",
  "drift_mode": "NORMAL",
  "drift_score": 0.15
}

Verifying the Chain Yourself

You don't have to take the server's word for it. tx_hash is recomputed from the record's own fields, not just linked to the previous row — so anyone can independently confirm a record wasn't edited after the fact, without calling back into this server. See @fronesis-labs/dcl-sdk (TS/JS) or dcl-core (Python) for the free, offline verification libraries.

Metering & Settlement

Every paid call above is metered and settled automatically via the x402 protocol (USDC on Base).

We support two payment models:

  • Per-Call Micropayments ($0.01 – $0.50) for instant, on-demand evaluations.
  • 30-Day Recurring Entitlements ($49.00) for continuous skill monitoring via DCL Update Sentinel.

This design eliminates API-key provisioning and invoicing overhead. Per-call pricing makes large-scale agent operations practical (an autonomous system can make thousands of evaluation calls a day).

The REST API is x402-gated via fastapi-x402; the MCP server uses paymcp in Mode.X402, paying automatically for x402-aware clients and falling back to a guided payment link for clients without a configured wallet. Both settle to the same wallet, and neither has a bypass path — an unpaid call simply receives no verdict.

License

Apache License 2.0 — see LICENSE.

來源:README.md,提交 6a9f711

工具

18

dcl_evaluate_fast

Fast Pre-Action Audit

FAST Pre-Action Audit ($0.01). Runs the response through the server's "default" policy: a substring check against 3 forbidden phrases ("ignore previous instructions", "jailbreak", "bypass safety") with a 0.7 minimum-confidence threshold. Each forbidden match found costs 0.4 confidence; if confidence falls below 0.7, or any match is found, the verdict is NO_COMMIT and `reason` lists which phrase…

輸入參數agent_id必填response必填

dcl_evaluate_strict

Strict Pre-Action Audit

STRICT Pre-Action Audit ($0.05). Runs the response against a broader, higher-bar "strict" policy: the union of all forbidden phrases from the default, anti-jailbreak, and safety policies (8 phrases total), with a 0.85 minimum-confidence threshold instead of the default policy's 0.7. Each matched phrase costs 0.4 confidence; if confidence falls below 0.85, or any phrase matches, the verdict is…

輸入參數agent_id必填response必填

dcl_evaluate_jailbreak

Jailbreak Detection Check

PRE-ACTION Instruction Adherence Check ($0.02). Runs the "anti_jailbreak" policy: a substring check against 6 forbidden phrases ("ignore previous instructions", "jailbreak", "bypass safety", "pretend you are", "act as if", "DAN") with a 0.8 minimum-confidence threshold — each match costs 0.4 confidence. Returns COMMIT if no phrase matches and confidence stays at or above 0.8, otherwise NO_COMMIT…

輸入參數agent_id必填response必填

dcl_evaluate_safety

Baseline Safety Check

PRE-ACTION Baseline Safety Check ($0.01). Runs the "safety" policy: flags 2 forbidden disclaimers ("I cannot be held responsible", "no guarantees") and additionally REQUIRES the substring "AI" to appear somewhere in the response — missing it costs 0.2 confidence even with no forbidden phrase present. Minimum confidence is 0.75. Returns NO_COMMIT if confidence drops below 0.75, with `reason`…

輸入參數agent_id必填response必填

dcl_evaluate_quality

Content Quality & Drift Check

PRE-ACTION Content Quality & Drift Check ($0.03). Runs the "content_quality" policy: flags 12 absolutist or unverifiable-claim phrases (e.g. "guaranteed returns", "100% accurate", "studies show", "without a doubt") with a 0.85 minimum-confidence threshold — the highest bar of any single-policy tool. Returns NO_COMMIT if any phrase matches or confidence falls below 0.85, with `reason` listing the…

輸入參數agent_id必填response必填

dcl_evaluate_secrets

Secret & Credential Leak Scan

POST-ACTION Secret & Credential Leak Scan ($0.02). Regex-based scan across 8 categories (API keys, cloud credentials, tokens/JWTs, private keys, DB URLs, connection strings, env assignments, webhook secrets, internal endpoints with auth). Any finding results in NO_COMMIT.

輸入參數agent_id必填response必填

dcl_evaluate_pii

PII Detection Scan

POST-ACTION PII Detection Scan ($0.02). Regex-based scan across 8 personal-data categories, with a Luhn checksum on card numbers to reduce false positives. Any finding results in NO_COMMIT.

輸入參數agent_id必填response必填

dcl_evaluate_batch

Batch Evaluation

PRE-ACTION Bulk Processing ($0.10). Evaluates a list of items in one call; each item is a dict shaped {"response": str, "policy"?: str}, where policy defaults to "default" if omitted and may be any built-in policy name (default, strict, anti_jailbreak, safety, content_quality). Each item gets its own independent COMMIT/NO_COMMIT verdict via the same logic as the matching single-item evaluate_*…

輸入參數items必填agent_id必填

dcl_pipeline_start

Start Pipeline Session

SESSION Management ($0.05). Generates a new `pipeline_id` and returns session metadata (scope, expiry, initial drift_mode) for organizing a series of related checks under one identifier. Note: this call does not currently link the returned pipeline_id to later evaluate_* calls — there is no server-side session state that ties subsequent audits back to it; it is an identifier/timestamp issuer, not…

輸入參數scopeagent_id必填ttl_seconds

dcl_audit_decode

Basic Audit Decode

POST-ACTION Basic Audit ($0.10). Retrieves a record from the tamper-evident chain by tx_hash.

輸入參數tx_hash必填

dcl_audit_decode_deep

Deep Forensic Audit Decode

POST-ACTION Deep Forensic Audit ($0.50). Extended output with drift_context and full chain integrity verification.

輸入參數tx_hash必填

dcl_evaluate_jailbreak_crypto

Crypto Jailbreak & Injection Detection

PRE-ACTION Crypto Jailbreak & Injection Detection ($0.02). Crypto-specialized instruction-override/jailbreak/injection screen: standard role-switch and instruction-override patterns, plus crypto-specific drain-wallet injection (e.g. "transfer all funds to...", fake "test transaction" requesting full balance) and unlimited-approval injection (e.g. type(uint256).max, "approve unlimited allowance",…

輸入參數agent_id必填response必填

dcl_evaluate_wallet

Wallet Secret Guardian

POST-ACTION Wallet Secret Guardian ($0.02). Scans for BIP-39 seed phrases (12 or 24 consecutive wordlist words), raw hex or WIF-format private keys, Ethereum/Bitcoin wallet addresses, and API keys/bearer tokens appearing near wallet/custody/signing terminology. Any finding results in NO_COMMIT — wallet secrets have no safe threshold, unlike other DCL evaluators. Returns a `sanitized_output` with…

輸入參數agent_id必填response必填

dcl_evaluate_trade

Trade Decision Verifier

PRE-ACTION Trade Decision Verifier ($0.02). Screens trade-decision language for guaranteed-return claims, zero-risk/"can't lose" framing, and unqualified "buy/sell X now" directives — any match is NO_COMMIT. If no unsafe language is found, COMMIT additionally requires the word "risk" to appear anywhere in the text as a minimum disclosure marker; its absence alone triggers NO_COMMIT with `reason`…

輸入參數agent_id必填response必填

dcl_evaluate_mev

MEV & Market-Abuse Compliance Screen

POST-ACTION MEV & Market-Abuse Compliance Screen ($0.03). Text-level screen (not a mempool/transaction analyzer) for front-running/sandwich-attack language, wash trading/layering/spoofing, KYC/AML red flags (mixers, structuring, obscuring fund origin), and pump-and-dump/rug-pull language. Any critical-severity finding, or two or more major-severity findings, returns NO_COMMIT; a single…

輸入參數agent_id必填response必填

dcl_evaluate_signal

Market Signal Fabrication Screen

POST-ACTION Market Signal Fabrication Screen ($0.03). Pattern-based heuristic on the output text alone (no source price feed) — flags guaranteed-price-prediction language ("will definitely hit $X"), absolute-certainty claims ("100% certain", "cannot go down"), a fabricated-price flag when a specific dollar figure co-occurs with a guaranteed-outcome claim, and an invented-token flag when a…

輸入參數agent_id必填response必填

dcl_evaluate_output_sanitizer

Output Sanitizer — Final Gate

FINAL-GATE Output Sanitizer ($0.02). Post-processing checkpoint that strips secrets/credentials, PII, crypto material (seed phrases, private keys, wallet addresses), internal network details (private IPs, MAC addresses, .internal/.local/.corp hostnames), and unsafe shell/SQL/path-traversal fragments from a raw model response — plus a narrow, high-precision safety net for direct…

輸入參數agent_id必填response必填

dcl_commit

Leibniz Layer Crypto Commit

FINAL-STEP Leibniz Layer Crypto Commit ($0.01). Writes a trading/agent decision to the append-only Leibniz Layer audit chain and returns a Merkle-proof-style receipt: `tx_hash` (proof of this specific commit), `chain_hash` (the previous commit's hash, linking this one into the chain), and `chain_depth` (this commit's position in the chain). Unlike the evaluate_* tools, this call has no pass/fail…

輸入參數agent_id必填decision必填prior_checks

版本歷史

1
  1. v2.3.1最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

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

  • 近 30 天內可連通必需25 分

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

  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分