# SCRIPTMASTERLABS — x402 Gateway [Verified owner] [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://mcp-x402.onrender.com/mcp  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/scriptmasterlabs-x402-gateway

## Description
Remote MCP gateway for SCRIPTMASTERLABS x402-paid tools and agent-native API access on Base, with free capability discovery and pay-per-use execution.

## Tools
Capabilities this server exposes over MCP:

- **sml_discover** — Discover the SCRIPTMASTERLABS x402 Gateway contract (FREE, read-only). Returns the gateway's job, transport, and canonical payment contract — x402 v2, exact scheme, USDC on Base mainnet (eip155:8453), the canonical payTo, and the PAYMENT-REQUIRED / PAYMENT-SIGNATURE / PAYMENT-RESPONSE headers — plus where to inspect fresh per-route payment requirements before calling a paid route (tools/list on this endpoint, or GET /x402/discover). The gateway never spends for the caller: read the fresh target 402 challenge for the exact price and terms; a challenge or a signature is not settlement proof.
- **sml_status** — Inspect live x402 Gateway status (FREE, read-only). Returns readiness, the active tool profile, the registered gateway tool names, a check timestamp, and the same canonical contract as sml_discover: x402 v2 exact scheme, USDC on Base mainnet (eip155:8453), the canonical payTo, and the payment headers. Use it to confirm the gateway is up and which rail is authoritative before probing paid routes.
- **x402_contract** — Inspect the canonical x402 payment contract. Returns network, USDC asset, payTo, headers, and the rule for resolving fresh target requirements. FREE.
- **interfere** — Coherent Gate (PAID, x402/USDC). Scores whether your trading-signal paths agree: confidence-weighted long/short/flat consensus, coherence 0-1, and a pass/block gate (pass needs a non-flat consensus and coherence at or above the threshold, default 0.6). Tiers by path count: scout ≤4 $0.01, standard ≤8 $0.05, beast ≤32 $0.25 (defaults). The $0.25 max tier is charged upfront; on the x402 rail the unused difference is recorded as owed (not yet auto-refunded); on the Arc escrow rail (arc_auth_id) only the used tier is captured. Optional ticker pulls extra paths from registered sources before charging. Max 32 paths. Not financial advice.
- **leviathan_interfere** — Coherent Gate + Leviathan (PAID, x402/USDC). Fetches the SML Leviathan signal (squeeze, momentum, or all) for a ticker, adds it as one path with your optional paths and registered sources, then runs the same coherence check as interfere: consensus, coherence 0-1, pass/block gate. Same tiers and billing as interfere ($0.25 max tier charged upfront; x402 difference recorded as owed, Arc rail captures only the used tier). If Leviathan is unavailable it continues on the other paths; with no paths it errors before charging. Max 32 paths. Not financial advice.
- **spend_gate_check** — Spend Gate (PAID $0.001 USDC on Base via x402). Advisory payment assessment — no wallet signing or spending by the buyer: a real Provider Trust approval and price cap are mandatory; explicit package/history rejections block. Four distinct decision inputs vote pay-side/reject-side — provider_trust (Provider Trust verify_provider) and payload_safety (ScriptDocs vulnerability check, only when manifest_url names an npm/PyPI/crates package) — both vote with real verdicts via the fleet operator lane at $0 upstream toll, price_sanity (quote vs caller policy_cap_usdc or the v1 default cap table; cap-only in v1, no historical median), delivery_history (this host's OmniGate settlement/delivery ledger). Coherence = |Σ w·d| / Σ w with d=+1 pay-side, −1 reject-side, w=confidence; gate_pass requires a positive Provider Trust decision, a real within-cap quote, no explicit safety or delivery-history rejection, coherence ≥ 0.6, and a pay-side consensus. The verdict is advisory, not payment authorization. Paths with no data abstain (no_signal) and contribute nothing. Only on a gate pass does Jev review run (noul act probability + pay/reject/quarantine choice, model + token usage returned). Use for: vetting a payee/invoice immediately before an agent wallet pays it. Don't use when: you need an actual payment executed (this is a check, it moves no funds), a trading signal (use interfere), or a free lookup (there is none — unpaid calls return the payment challenge). Settlement to the canonical SML payTo on Base.
- **precross_analyze** — SML PRECROSS (PAID $0.001 USDC on Base via x402). 11/64 EMA cross intelligence for US stocks and ETFs on 1H or 4H (regular session) or 1D bars — derived analysis, not raw bars. Returns the exact price at which the 11 and 64 EMA cross on the next bar (closed-form, plus a zero-lag variant), the move needed to reach it in % and ATR, whether the EMAs are converging and an estimated bars-to-cross, and a walk-forward self-backtest of anticipating that cross (in-sample config selection, out-of-sample verdict, costs both sides, confirmed-cross baseline for comparison) with a six-check proof gate per side; on 1H/4H the grid also tests a "daily agrees" filter (daily 11/64 trend, no lookahead). Also returns a 75-ticker basket proof (pooled out-of-sample trades across US stocks and funds incl. gold, silver, Bitcoin and Ethereum funds, with breadth check and standout ranking) and a plain-English summary. A long/short setup is returned ONLY for a side whose out-of-sample results pass the gate (this ticker's own gate, or the basket gate when the ticker is in the basket); otherwise the direction is withheld and the reason is given. Use for: knowing where an 11/64 EMA cross will trigger before it prints, and whether anticipating it has actually worked on this ticker and timeframe. Don't use when: you need raw OHLC bars, timeframes below 1H, spot crypto, or order execution (this tool places no orders). Research output, not financial advice.
- **regime_scan_board** — SML REGIME SCAN board (PAID $0.01 USDC on Base via x402). Dynamic scan of the most liquid US stocks and ETFs (no hard-coded watchlist: every US listing from the last completed session, filtered by price ≥ $5, volume ≥ 500k and dollar volume ≥ $25M, top ~400 by dollar volume). Reads the regime first (ADX + Choppiness → TREND / RANGE / TRANSITION), then one indicator per family — EMA21/50, SuperTrend+DMI, RSI+MACD, ATR/BB-width/squeeze, OBV+CMF+RVOL, Donchian/52w, CHOP/ER/Z/RS-vs-SPY, universe breadth — and returns the 15–25 tickers where the families agree. Each ticker: setup (TREND_CONTINUATION, TREND_PULLBACK, BREAKOUT, SQUEEZE_COIL, RANGE_STRETCH), bias, score 0–100, tier, trigger, invalidation, next level, reward-to-risk, RVOL, ATR%, a one-line why, the setup type's measured history on the scanned tickers (5/10-day forward move, +1R-before-invalidation rate, sample count), and a live price vs levels during market hours. Starts with a one-sentence `answer`. Completed daily bars only; nothing repaints. Use for: a ranked, ready-to-reason shortlist of US equities with aligned technicals today. Don't use when: you need raw bars or quotes, intraday timeframes, crypto spot, or order execution. Describes conditions; not buy/sell instructions or financial advice.
- **regime_scan_ticker** — SML REGIME SCAN single ticker (PAID $0.005 USDC on Base via x402). Same engine as regime_scan_board for any one US stock or ETF, on the board or not: regime, all 8 family readings with their vote, setup (or why there is none), score, the checks that passed and the ones missing, trigger / invalidation / next level, the setup type's measured history and the live price vs levels. Starts with a one-sentence `answer`. Use for: checking one ticker against the regime-first, one-per-family stack. Don't use when: you need raw OHLC, intraday bars, crypto spot, or execution. Not financial advice.
- **sml_xray_bars** — OWNER-ONLY private feed for the Script Master Labs First Candle X-RAY app. Requires the owner access key; returns nothing without it. Not a public data product and not for agents: public agents should use regime_scan_ticker or precross_analyze for derived analysis.
- **omnilist_run** — OmniList (PAID $0.20 USDC on Base via x402). File-once listing run for an x402 server or MCP server: give ONE server record and OmniList presence-checks it, files it where it is missing, and reads back a receipt at x402-list, 402index, x402dash, nohumans.directory and the MCP Registry (PREPARED artifact there — publishing needs the namespace owner's own key). Every venue is free to file; the $1.00 pays for the run, the venue know-how, and the verified per-venue report (states: FILED with receipt id, PENDING_REVIEW, ALREADY_PRESENT by read-back, PREPARED, BLOCKED with the exact reason). Runs execute live against third-party venues, so this tool starts the run and returns a run_id; fetch the finished report with omnilist_report or GET /x402/omnilist/runs/<run_id>. Use for: getting a new x402/MCP server into the directories agents actually browse. Don't use when: you expect a guaranteed listing (venue review decisions belong to the venues) or a free run (there is none — unpaid calls return the payment challenge). Settlement to the canonical SML payTo on Base.
- **omnilist_report** — OmniList run report (free read-back). Fetch the per-venue report of an omnilist_run by its run_id: states (FILED / PENDING_REVIEW / ALREADY_PRESENT / PREPARED / BLOCKED), receipt ids, live URLs and any PREPARED artifacts with publish instructions.
- **omnigate_runtime_search** — OMNIGATE Runtime catalog search (FREE). Finds SML paid routes a runtime script can call with sml.call(id, {query|path|body}), with live per-call USDC prices, plus published capsules (ready-made scripts). Use this before omnigate_runtime_execute to pick route ids. Prices are the live upstream registry amounts; nothing here spends.
- **omnigate_runtime_execute** — OMNIGATE Runtime (PAID, USDC). Run ONE JavaScript script that calls many SML tools, in one round trip, instead of one model turn per tool call. The script is the body of an async function: `const r = await sml.call("<route-id>", { query: {...} }); return r.data;`. Available inside: sml.call, sml.tools.search, sml.tools.get, sml.budget, sml.sleep, sml.log, sml.input. Every call is metered at its live registry price against budget_usdc, charged only on upstream 2xx, and tagged with source + response sha256; a failed upstream throws TruthError (nothing charged, nothing substituted). Unused budget is returned as credit. Returns result, per-call provenance, billing and an Ed25519-signed receipt id. Without payment it returns the x402 challenge (amount = budget). Pay with payment_header (Base USDC, x402 v2), credit_token (smlrt_…), or arc_auth_id (Arc escrow, when enabled). Sandbox: no network except sml.call, no fs, 32MB, 20s CPU, 120s wall (sync).
- **omnigate_runtime_receipt** — OMNIGATE Runtime receipt (FREE). Returns a run receipt — script sha256, payer, rail, payment tx, every upstream call with request/response hashes and charges, outcome — signed with Ed25519 and hash-chained to the previous receipt, plus a verification of signature, body hash and chain link. Use it to prove what an agent ran and paid for.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "scriptmasterlabs-x402-gateway": {
    "url": "https://mcp-x402.onrender.com/mcp"
  }
}
```

## Documentation

## What SCRIPTMASTERLABS — x402 Gateway does

The gateway makes SCRIPTMASTERLABS tools available through MCP at `https://mcp-x402.onrender.com/mcp`. Its free routes expose the gateway contract, health state, registered tools, payment headers, and rules for resolving current route requirements. Paid routes use x402 v2 with USDC on Base mainnet (`eip155:8453`) and settle to the canonical SML `payTo` address returned by the gateway.

The available tool groups cover several use cases:

- Coherence checks for trading-signal paths, with optional Leviathan signal enrichment.
- Spend-risk assessment before an agent pays a provider or invoice.
- EMA cross research and regime-first scans for US stocks and ETFs.
- OmniList submission runs and read-back reports for x402 or MCP servers.
- Runtime catalog search, metered JavaScript execution, and signed receipts.

Market-analysis tools provide derived research rather than raw market data or order execution. They explicitly frame their output as non-advisory financial research.

## How it works

Start with `sml_discover`, `sml_status`, or `x402_contract` to inspect the active contract and gateway state. Before invoking a paid route, callers should obtain the fresh 402 requirements for that target. A challenge identifies payment terms, but neither a challenge nor a payment signature proves that settlement completed.

Paid calls use the payment headers associated with x402: `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE`, and `PAYMENT-RESPONSE`. The gateway uses Base USDC for its x402 rail. `spend_gate_check` is an assessment only: it evaluates provider trust, payload safety where applicable, quote limits, delivery history, and weighted decision coherence, but it does not authorize or execute a payment.

`omnigate_runtime_execute` runs one JavaScript function that can call multiple SML routes through `sml.call`. Each upstream call is metered against a budget, and the result includes provenance, billing data, and an Ed25519-signed receipt. The runtime provides no general network or filesystem access and enforces execution limits. `omnigate_runtime_receipt` retrieves and verifies the resulting call and payment record.

## Setup and configuration

Connect an MCP client to:

`https://mcp-x402.onrender.com/mcp`

Use the free discovery tools to determine the canonical payment contract and inspect live route requirements. Paid calls require the applicable x402 payment material. Runtime execution can use a Base USDC payment header, an `smlrt_...` credit token, or an `arc_auth_id` when Arc escrow is enabled. No environment variables are required for the hosted endpoint.

## Tools and capabilities

- `sml_discover`, `sml_status`, and `x402_contract`: inspect gateway metadata, health, payment terms, and headers.
- `interfere` and `leviathan_interfere`: score agreement across signal paths and return a pass or block gate.
- `spend_gate_check`: assess whether a provider payment meets trust, safety, price, history, and coherence conditions.
- `precross_analyze`: estimate the next 11/64 EMA cross and evaluate its historical anticipation results.
- `regime_scan_board` and `regime_scan_ticker`: find or inspect regime-aligned setups in US stocks and ETFs.
- `omnilist_run` and `omnilist_report`: submit one server record to supported directories and retrieve venue outcomes.
- `omnigate_runtime_search`, `omnigate_runtime_execute`, and `omnigate_runtime_receipt`: discover routes, run metered scripts, and verify signed execution records.
- `sml_xray_bars`: access the private First Candle X-RAY feed with the owner access key.

## Limitations and notes

The trading tools do not place orders, provide raw OHLC bars, or act as financial advice. `precross_analyze` targets US stocks and ETFs on 1H, 4H, or 1D data; the regime tools use completed daily bars and exclude crypto spot analysis. The X-RAY feed is owner-only and is not a public agent data product.

Paid routes require payment, and unpaid calls receive a payment challenge rather than a result. On the x402 rail, some tiered calls charge the maximum selected tier upfront and record unused value as owed rather than automatically refunding it. OmniList runs submit to external directories whose review decisions remain with those venues. Runtime failures from an upstream call are surfaced as errors rather than replaced with fabricated data.

_Full upstream README: https://allmcps.com/mcp/scriptmasterlabs-x402-gateway/readme_

