Back to Discover

dcl-webhook

connector

Fronesis-Labs

Deterministic AI audit layer for LLM/agent outputs: policy checks, tamper-evident log, x402.

View on GitHub
0 starsSynced Aug 5, 2026

Install to Claude Code

/plugin marketplace add Fronesis-Labs/dcl-webhook

README

DCL Trust Oracle — x402 MCP Server

Python 3.11+ MCP x402 License: MIT dcl-webhook MCP server Smithery Score

Deterministic AI audit layer with cryptographic micropayments via x402 protocol.

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, both metered per call via x402:

  • REST API (webhook_server.py) — direct HTTP integration, x402-gated with fastapi-x402.
  • MCP Server (mcp_server.py) — native Model Context Protocol integration for AI agents, hosted on Smithery, x402-gated with paymcp.

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

pip install -r requirements.txt
python mcp_server.py

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

Tools & Endpoints

Pre-Action Evaluation

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 20 items per transaction. 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

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.

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
}

x402 Integration

All paid endpoints and tools require payment via the x402 protocol before returning a result — no free tier, no bypass. Both the REST API and MCP server settle to the same wallet.

  • Networks: Base, Avalanche, IoTeX
  • Asset: USDC
  • Facilitator (REST): https://x402.org/facilitator (via fastapi-x402)
  • Facilitator (MCP): paymcp in Mode.AUTO — automatic on-chain payment for x402-aware MCP clients, guided payment link (ELICITATION/RESUBMIT) for clients without a wallet. No path skips payment.

Metadata-Only Architecture

DCL Trust Oracle is designed around a hash-based audit trail:

  • Raw content never stored — only SHA-256 hashes and decision metadata
  • Tamper-evident cryptographic chain (SQLite-backed, WAL mode)
  • Chain survives server restarts — audit records persist indefinitely
  • Verifiable integrity via GET /chain/status
  • Full export via GET /chain/export
  • Shared chain across REST and MCP — a tx_hash returned by one interface can be audited through the other

Each audit record contains: tx_hash, prev_hash, verdict, input_hash, policy_hash, agent_id, reason, confidence, task_type, timestamp, and drift_context.

Built-in Policies

PolicyMin ConfidencePurpose
default0.70General-purpose evaluation
anti_jailbreak0.80Detects prompt injection, role-hijacking, DAN-style attacks
safety0.75Baseline harmful-pattern screening
content_quality0.85Quality assurance, format adherence, drift detection

Custom policies can be passed inline as YAML via the policy field.

Links

Contact

partnership@fronesislabs.com

Rendered live from Fronesis-Labs/dcl-webhook's GitHub README — not stored, always reflects the source repo.

1 Install Method

NameDescriptionCategorySource
streamable-http remoteHosted streamable-http endpointmcp-serverhttps://mcp.fronesislabs.com/mcp

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.