Portal gateway
All gateway routes run on the Dev Portal (https://developers.scorton.dev) and require a platform key:
Authorization: Bearer scrt_…. Optional for upstream Cyberscor security scoring:
POST /api/mcp (see MCP) — it returns upstream JSON-RPC without a portal envelope.
Access check
Probes MCP health, TrustScore reachability (if configured), and Cyberscor score resolution.ready_for_prod / blockers style summary (used after token creation in the UI).
Cyberscor score
POST /api/scan (upstream → portal fallback).
TrustScore proxy
SCORTON_API_KEY on the server.
MCP proxy
See MCP.Scan shortcut
POST /api/scan is the Scan URL page endpoint — same auth model as the Cyberscor gateway, returns a normalized portal response.
Env vars
| Variable | Scope | Purpose | | --- | --- | |NEXT_PUBLIC_SCORTON_API_URL | Public | Default https://api.scorton.dev |
| NEXT_PUBLIC_SCORTON_MCP_URL | Public | Default https://mcp.scorton.dev |
| NEXT_PUBLIC_DOCS_URL | Public | Docs link in the portal header. Local default http://localhost:3000 |
| NEXT_PUBLIC_APP_URL | Public | Stripe return origin. Production https://developers.scorton.dev |
| SCORTON_API_KEY | Server | Unlocks MCP / TrustScore proxies |