New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@joserobles/preflight-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joserobles/preflight-mcp

MCP server (stdio) exposing preflight-x402 paid verification endpoints as agent tools, with x402 payment.

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
20
-89.85%
Maintainers
1
Weekly downloads
 
Created
Source

@joserobles/preflight-mcp

MCP server (stdio transport) exposing the paid preflight-x402 verification endpoints as agent tools. For Claude Desktop, Cursor, Pi, or any MCP client.

Tools

ToolBackendPrice
preflight_check_depsPOST /v1/deps/check$0.05
preflight_inspect_btcPOST /v1/btc/tx-inspect$0.10
preflight_btc_tx_contextPOST /v1/btc/tx-context$0.10
preflight_check_legal_citationPOST /v1/legal/cite-check$0.10
preflight_check_cvePOST /v1/cve/check$0.05
preflight_ai_act_obligationsPOST /v1/ai-act/obligations$0.10
preflight_inspect_evmPOST /v1/evm/tx-inspect$0.10
preflight_check_deps_versionPOST /v1/deps/version-check$0.05

Argument notes:

  • preflight_check_cve takes cve_id (single) or ids (up to 20). vendor / product / version are accepted alongside an id for context but cannot be resolved on their own — the backend checks CVE identifiers.
  • preflight_ai_act_obligations takes backend-style role / topic / risk_tier, or the aliases system_type / domain / autonomy_level (e.g. system_type: "developer" → role: "provider").

Payment (dual transport)

One credential, and it is required.

# x402 pay-per-call: EVM key with USDC on Base. The 402 challenge is
# resolved automatically (EIP-712 signature via @x402/fetch + viem).
export PREFLIGHT_BUYER_PRIVATE_KEY=0x...

# Optional: point at a local/dev server (default https://preflight402.com).
export PREFLIGHT_BASE_URL=http://localhost:8787

Without it, tools return a setup message instead of calling the API.

There is no subscription / API-key mode. Earlier versions of this README advertised PREFLIGHT_API_KEY. The backend never implemented it: a request carrying Authorization: Bearer <key> gets the same 402 challenge as one with no credential at all. It was removed rather than left as a promise.

Run

npm run build
node ./bin/preflight-mcp.js          # stdio; wire into your MCP client

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "preflight": {
  "command": "node",
  "args": ["/path/to/packages/mcp-server/bin/preflight-mcp.js"],
  "env": { "PREFLIGHT_BUYER_PRIVATE_KEY": "0x..." }
} } }

Registries (Smithery.ai / Glama.ai)

This package ships both registry manifests:

  • smithery.yaml — stdio start command for Smithery.ai. Config keys: buyerPrivateKey → PREFLIGHT_BUYER_PRIVATE_KEY, baseUrl → PREFLIGHT_BASE_URL (default https://preflight402.com). Launch equivalent: npx -y @joserobles/preflight-mcp.
  • glama.json — Glama.ai server spec (transport stdio, same env vars and tool list). Any Glama-compatible MCP client can also use this snippet:
{ "mcpServers": { "preflight": {
  "command": "npx",
  "args": ["-y", "@joserobles/preflight-mcp"],
  "env": {
    "PREFLIGHT_BUYER_PRIVATE_KEY": "0x...",
    "PREFLIGHT_BASE_URL": "https://preflight402.com"
  }
} } }

Design notes

  • Thin paid client only: no dataset, no cache, no LLM, no verdicts. If you empty every credential the tools refuse to call — they never invent answers.
  • Backend paths mirror src/registry.ts (PATHS in src/client.ts).

Keywords

mcp

FAQs

Package last updated on 28 Sep 2026

Related posts