Back to Browse

Twzrd Trust MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Pre-spend x402 reputation from observed behavior, plus portable signed V6 receipts.

About

Pre-spend x402 reputation from observed behavior, plus portable signed V6 receipts.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). 1 code issue detected. No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

10 files analyzed · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Signal source: 'artifacts' (your own settlement volume from TWZRD_ARTIFACTS_DIR) or 'bazaar' (live cross-facilitator x402 catalog). Defaults to a static research registry.Optional

Environment variable: TWZRD_SIGNAL_SOURCE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-twzrd-sol-twzrd-agent-intel": {
      "env": {
        "TWZRD_SIGNAL_SOURCE": "your-twzrd-signal-source-here"
      },
      "args": [
        "twzrd-agent-intel"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

TWZRD

Don't let your agent sign blind.
Spend control and counterparty trust for agents paying over x402 on Solana (and Base). Vet the seller before USDC leaves the wallet, cap and ledger every spend, and bind each settled payment to the exact offer it paid for (bind-v1 — verifiable from public chain data). Advisory preflight is free ($0). Signed execution clearance is $0.001 (twzrd.payment_decision.v1 / quickCheck). Not a wallet. Not a payment network. Not Catena's Agent Commerce Kit — the walkthrough lives in docs/COMMERCE-KIT.md.

Canonical skill (always refresh) • https://intel.twzrd.xyz/skill.md (twzrd-trust 1.13.24) · ClawHub twzrd-trust
Spend-control SDK (npm) • twzrd-x402-gate@0.9.10 + seat x402-solana@3.0.0
Live MCP • https://intel.twzrd.xyz/mcp (streamable HTTP — 22 tools)
Agent contract • https://intel.twzrd.xyz/llms.txt · https://intel.twzrd.xyz/.well-known/agent.json


60-second deterministic free demo

Run this one-line command with no wallet, no API key, and no configuration:

curl -fsS https://intel.twzrd.xyz/v1/intel/demo-gate | jq '{verdict: (.steps[] | select(.name == "block_path") | .verdict), approved: (.steps[] | select(.name == "block_path") | .approved), signerInvocations: (.steps[] | select(.name == "block_path") | .signer_invocations), mode, ok}'

Without jq, run: curl -fsS https://intel.twzrd.xyz/v1/intel/demo-gate

Expected output:

{
  "verdict": "block",
  "approved": false,
  "signerInvocations": 0,
  "mode": "no_spend",
  "ok": true
}

Blocks happen before your signer is invoked (signerInvocations: 0) — zero USDC at risk.


From this repo

This checkout is a public monorepo, not npm install twzrd-x402-gate. CI is root npm ci then npm run ci (Node 20). Do not npm ci inside twzrd-x402-gate/ — gate typecheck needs sibling twzrd-log-verifier deps from the root lockfile.

npm ci
npm run build
npm run typecheck
npm test --workspace=twzrd-x402-gate
npm run gate-eval-refuse --workspace=twzrd-x402-gate

gate-eval-refuse is the hello-world that closes (0 USDC, signer_invocation_count: 0). It needs egress to https://intel.twzrd.xyz. Artifact dirs (eliza-plugin/, plugin-trustgate/, twzrd-mcp-server/) are dist/ mirrors — do not try to build or demo them locally. Hosted MCP: https://intel.twzrd.xyz/mcp.


Quickstart

1. Install

npm install twzrd-x402-gate@0.9.10 x402-solana@3.0.0

2. Wrap paid fetches with spend controls

import { twzrd } from "twzrd-x402-gate";

const result = await twzrd.safeFetch("https://merchant.example/paid-endpoint", {
  maxSpend: "0.10",            // per-call cap AND cumulative budget in USD
  allowNetworks: ["solana"],   // allowed settlement networks
  requireOfferBinding: true,   // demand an on-chain verifiable bind-v1 receipt
  pay: async ({ url, paymentRequired, selected }) => {
    // Your existing x402 client signs here — e.g. @x402/fetch + your signer
    return await myWallet.payX402(url, paymentRequired, selected);
  },
});

// On block: result.verdict === "block", result.signerInvocations === 0

3. Or hook an existing client

import { createX402Client } from "x402-solana";
import { createTwzrdBeforePaymentHook } from "twzrd-x402-gate";

const client = createX402Client({
  wallet,
  network: "solana",
  beforePayment: createTwzrdBeforePaymentHook({ refuseWashFlagged: true }),
});

Commerce loop

One path. Install twzrd-x402-gate@0.9.10. Free preflight does not enforce; AutoGate on the pay path does.

  1. Install the gate — npm i twzrd-x402-gate@0.9.10 then installTwzrdAutoGate
  2. Cold-start (optional) — npx twzrd-cold-start writes a default-deny policy.json from a pinned foreign 402 diet (0 USDC; not a TWZRD bazaar)
  3. Directory — GET /v1/intel/resources (or listDirectoryCallables) — bazaars list; TWZRD sits beside
  4. Preflight — free ReadinessCard + merchant_card wash refuse
  5. Pay only when policy allows — blocks have signerInvocations === 0
  6. Clearance ($0.001) — quickCheck + portable twzrd.payment_decision.v1 (npx twzrd-payment-decision --verify)
  7. Evidence bundle — exportEvidenceBundle / npx twzrd-evidence-bundle
  8. Optional Path A — $0.05 V7 intel receipt. Not the primary SKU.

Refuse-first demo (0 USDC): npx tsx twzrd-x402-gate/examples/commerce-kit.ts
Cold-start diet (0 USDC): npx twzrd-cold-start
Walkthrough: docs/COMMERCE-KIT.md

Default Protection Sequence

  1. Discover — GET /v1/intel/resources (resource catalog)
  2. Merchant card — GET /v1/intel/merchant_card/{pay_to} (refuse if wash_flagged: true)
  3. Preflight — POST /v1/intel/preflight → ReadinessCard (allow / warn / block)
  4. Clearance ($0.001) — GET /v1/intel/quick/{pay_to} + twzrd.payment_decision.v1
  5. Pay — sign only when preflight & spend policy allow
# Free preflight (no signup, no wallet)
curl -s -X POST https://intel.twzrd.xyz/v1/intel/preflight \
  -H 'content-type: application/json' \
  -d '{"seller_wallet":"46vMcwuC4sK11sB3gkLhyA7J7GEwfkhn5rFyDtihBwqe","price_usdc":0.01,"agent_intent":"preflight"}'

Packages & References

PackagePinDescription
twzrd-x402-gate@0.9.8Spend-control SDK (twzrd.safeFetch) + pre-sign gate hooks
x402-solana@3.0.0Compatible Solana client seat for the pre-payment gate
twzrd-receipt-verifier@^1.4.0Standalone offline verifier for Ed25519 V5/V6/V7 receipts
twzrd-mcp-server@0.5.4 (this tree)Local spend-capped auto-pay client (6 tools); prefer hosted MCP
@wzrd_sol/plugin-trustgate@^0.3.7Eliza / facilitator adapter

Reviews

No reviews yet

Be the first to review this server!