Preflight

io.github.dainidudePublished by GitHub account dainidudev0.1.0Updated Nov 14, 2026

Pay-per-call smart-contract security: scans, tx simulation, and token risk via x402 (USDC on Base).

The publisher's own server: Preflight

VerifiedStreamable HTTPWeb executableFinanceSecurity & Monitoring

Overview

AI-generated overview

Remote MCP server that gives an assistant pay-per-call smart-contract security checks: Solidity scans, transaction simulation and token risk verdicts.

What you can do
  • Scan Solidity source and get a severity-scored security verdict
  • Simulate a transaction against a contract for revert reason, gas used, balance deltas and findings, in quick or deep mode
  • Check a token contract for honeypot behavior, transfer tax and owner privileges before trading
  • Look up the service info and price list
When to use it
Useful when an assistant reviews Solidity contracts, pre-checks a transaction before sending it, or vets a token before trading, and you are willing to pay per call in USDC on Base.
Requirements
Remote streamable HTTP endpoint; no package or local runtime. No authentication or headers declared. Paid tools require an x402 payment in USDC on Base mainnet, so a funded wallet capable of signing x402 payments is needed; the pricing tool is free.
Before you install
Most tools spend real money per call ($0.01 to $0.25 USDC on Base mainnet) through x402, so a wallet or signing capability is involved; the README notes a funded burner wallet for real payments. Contract source and transaction data are sent to a third-party service. Verdicts are advisory and should not replace your own review.

Installation

In SourceWeft

  1. Open Preflight in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.dainidude%2Fpreflight/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "preflight": {
      "type": "http",
      "url": "https://preflight--preflight-api-mcp.modal.run/mcp"
    }
  }
}

README

Preflight — x402-paid smart-contract pre-flight security API

Pay-per-call security scans and transaction simulations for AI agents. POST Solidity source or a transaction, receive a severity-scored, EIP-712-attested verdict: looks_ok | review | block. Payments over the x402 protocol (HTTP 402 + real USDC on Base mainnet).

Built from the product plan in dud3-vault/LLM/2026-11-08 - x402 Product Plans.md by hermes + omp + crush + opencode in a 4-pane Herdr session.

Try it

bash
# no wallet needed (server DEV_MODE=1):uv run uvicorn preflight.api.app:app --port 8000 &uv run python client/pay_client.py --dev
# real x402 payment (funded burner, $0.01):uv run python client/pay_client.py
# the handshake, by hand:curl -i -X POST http://127.0.0.1:8000/v1/scan -H 'Content-Type: application/json' \  -d '{"source":"contract A {}"}'# → 402, PAYMENT-REQUIRED header (base64 JSON requirements)# → retry with PAYMENT-SIGNATURE header → verdict + PAYMENT-RESPONSE

Endpoints & prices

RoutePrice
POST /v1/scan — single-file security scan (solc+Slither + 5 custom DeFi detectors)$0.01
POST /v1/sim — transaction pre-flight simulation (RPC eth_call, revert decode)$0.05
POST /v1/scan/project — multi-file project scan$0.10
POST /v1/address-risk — address risk heuristics$0.005
GET / GET /health GET /metrics GET /llms.txt GET /.well-known/x402.jsonfree

First 10 scans/day per client are free (funnel). 10 req/min per payer.

Architecture

client/pay_client.py        paying demo agent (402 → x402.client pay → retry)src/preflight/  core/    pipeline (solc+Slither), custom detectors, scoring,           simulation (RPC eth_call + revert decoding)  api/     FastAPI app, real x402 middleware (x402 pkg, x402.org facilitator),           cache (source-hash LRU), ratelimit, metrics  mcp/     MCP server: preflight_check, preflight_sim, preflight_pricingpublic/    llms.txt + .well-known/x402.json (discovery)
  • Payments: x402 package v2 — exact scheme, USDC, Base mainnet (CDP facilitator with KYT/OFAC); facilitator verifies + settles; server never holds custody.
  • Attestations: EIP-712 over (source_sha256, verdict, findings_root) — buyers can prove what we said.
  • Determinism: static analysis + eth_call simulation; verdicts are reproducible.

Listing

Docs

  • AGENTS.md — ownership map & interface contract
  • docs/LAUNCH.md — launch checklist, tunnel, mainnet flip, operating notes
  • docs/STATUS_*.md — per-area build reports

Test

bash
uv run pytest tests/ -m "not network"   # offline suiteuv run pytest tests/ -m network          # live-RPC + real paid flows (spends test USDC)

Source: README.md at commit 65594af

Tools

4

preflight_check

Scan Solidity source and return a security verdict. This is a paid call ($0.01 USDC on Base mainnet) that flows through x402; in dev mode (DEV_MODE=1) no payment is required.

Parameterssourcerequiredcontract_name

preflight_sim

Simulate a transaction against a contract and return revert reason, gas used, balance deltas, and severity-scored findings. mode='quick' costs $0.05 (eth_call); mode='deep' costs $0.25 (anvil local fork with gas, balance_delta_wei, and internal_calls). Paid in USDC on Base mainnet via x402; DEV_MODE=1 skips payment.

Parameterstorequireddatamodevalue_wei

preflight_token_risk

Check a token contract before trading it. Returns a honeypot transfer verdict, transfer tax percentage, and owner privileges as a severity-scored ScanReport. Paid call ($0.05 USDC on Base mainnet) via x402; DEV_MODE=1 skips payment.

Parametersaddressrequired

preflight_pricing

Return the Preflight service info and price list (free).

Takes no parameters.

Version history

1
  1. v0.1.0LatestNov 14, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Preflight integrations