Fallback

io.github.baronsigmav0.1.0-beta.1更新於 Oct 6, 2026

Tiny paid recovery and decision utilities for autonomous agents.

已驗證Streamable HTTP可網頁執行AI & MLDeveloper ToolsWeb Search & Scraping

概覽

AI 產生的概覽

一個按次計費的託管 MCP 服務,為代理提供尋找資料來源、診斷失敗請求、修復請求,以及判斷是否繼續搜尋的小工具。

功能
Fallback 提供四個確定性工具:source_route 依目標與起始網址或網域尋找可能的權威或機器可讀資料來源;error_route 對失敗的 HTTP、API、MCP 或工具請求進行分類並給出有界的下一步建議;request_repair 依呼叫方提供的證據提出最小變更;stop_search 判斷繼續有界搜尋是否值得剩餘成本。每次呼叫透過 x402 按次付費,結果會說明檢查範圍與限制,而不只是找到的內容。此服務不進行大型語言模型推論。
適用情境
適用於代理卡住的時刻:它知道需要什麼資料、也知道發布方,但不知道如何以機器可讀形式取得,或請求失敗且不確定安全的下一步。它不適合一般網路研究、事實性問答或事實查核。
執行需求
使用託管服務的遠端 Streamable HTTP 端點;不需要帳號或 API 金鑰。付費方式為 x402 V2 按次付費,使用 Base 主網的 USDC,每次支付挑戰會宣告網路、資產、金額與收款方。自架需要 Node.js 22 以上版本與 npm,並可用 PAYMENT_MODE=disabled 在本機測試。
安裝前請注意
每次託管呼叫都需付費:source_route 0.02 美元、error_route 0.002 美元、request_repair 0.005 美元、stop_search 0.003 美元,以 Base 主網 USDC 支付。只批准即時支付挑戰中顯示的網路、代幣、收款方與金額。服務透過 X402_PAY_TO 收款,不需要收款錢包私鑰。結果僅限於已檢查範圍,未找到路由並不代表不存在。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Fallback,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "fallback-agent-tools": {
      "type": "http",
      "url": "https://fallback.factrail.online/mcp"
    }
  }
}

README

Fallback

text
  ______      _ _ |  ____|    | | | | |__  __ _ | | |__   __ _  ___| | __ |  __|/ _` || | '_ \ / _` |/ __| |/ / | |  | (_| || | |_) | (_| | (__|   < |_|   \__,_||_|_.__/ \__,_|\___|_|\_\
       find the route forward

Fallback

Tiny paid recovery and decision utilities for autonomous agents.

When an agent gets stuck, Fallback helps it find the next safe move without wasting a large reasoning loop.

source_route Where should I look? ($0.02)
error_route Why did this fail? ($0.002)
request_repair Can I safely fix the request? ($0.005)
stop_search Is another search worth it? ($0.003)

Use Fallback

Pay-per-call tools that help AI agents find sources, diagnose failures, repair requests, and decide when to stop searching. Fallback gives autonomous agents small, deterministic utilities for the moments where automation gets stuck: finding the right source, diagnosing a failed request, repairing a request from available evidence, and deciding whether another search or paid retrieval is worth the cost.

Hosted service

MCP endpoint: https://fallback.factrail.online/mcp\ HTTP API base: https://fallback.factrail.online\ Payment: x402 V2 pay-per-call. Check each live challenge for network, asset, amount, and recipient.
Agent skill: skill.md
OpenAPI: openapi.json
Network: Base mainnet, canonical USDC
Release: v0.1.0-beta.1

Tools

  • source_route ($0.02): Where should I look? Find likely authoritative or machine-readable sources.
  • error_route ($0.002): Why did my call fail? Classify a failed request and recommend a bounded next action.
  • request_repair ($0.005): Can I safely fix the request? Propose the smallest change supported by caller-supplied evidence.
  • stop_search ($0.003): Is further searching worth it? Decide whether more bounded search effort is justified by the evidence and remaining cost.

These tools do not replace agent reasoning, and stop_search never proves universal absence.

When an agent should use this

Use source_route when an agent knows what it needs and which publisher (a domain or start URL), but not how to get it in machine-readable form: an API, OpenAPI spec, bulk download, dataset or feed.

  • Good fit: "Get the latest population dataset from Eurostat", "Find a JSON/CSV route for this agency's statistics", before the agent starts browsing page by page.
  • Not a fit: general web research, answering a factual question, or verifying a fact (for source-backed facts, see FACTRAIL MCP).

How to read the result:

  • status: routes_found: try routes in order. score is a deterministic ranking, not a probability or confidence.
  • status: no_suitable_route_found: nothing suitable within the checked scope (see checked.direct_probes). This is not evidence that no route exists. The agent should look elsewhere (another host, the publisher's open-data portal), not conclude "there is no API".
  • Always read limitations. It says, for example, whether external search was unavailable or candidate inspection was capped.

Limits per call: at most 8 direct HTTP requests, 12 s total, 1 MiB per response, and at most 1 external search request. No LLM inference. The hosted beta currently runs deterministic discovery only (no search provider configured).

Access: hosted MCP https://fallback.factrail.online/mcp (Streamable HTTP) or the HTTP tool routes, x402 pay-per-call (each challenge declares its payment network and amount; no account or API key). To try it without payment, self-host with PAYMENT_MODE=disabled (see Local development). Machine-readable summary: llms.txt. More detail: Using Fallback with agents.

Fallback is publicly launched. See the current launch and distribution status, product rename impact audit, discovery/distribution readiness audit, and telemetry and 30-day KPI definitions.

When to use error_route

Use it after an HTTP, API, MCP, or tool request fails when the safe next action is unclear. It classifies supplied evidence and returns bounded retry guidance. Do not use it when recovery is already obvious or the task needs deeper domain reasoning; it does not execute requests or invent undocumented fixes.

Requirements

  • Current Node.js LTS (Node 24 at scaffold creation; supported engine is Node 22+)
  • npm

Local development

sh
npm installcp .env.example .envnpm run generatenpm run dev

The server exposes /, /healthz, /readyz, /catalog.json, /openapi.json, /llms.txt, /llms-full.txt, /skill.md, /.well-known/x402.json, /.well-known/mcp/server-card.json, and the Streamable HTTP MCP endpoint at /mcp. Both HTTP and MCP dispatch through the shared runtime handler registry. PAYMENT_MODE=disabled supports local development; paid deployments must explicitly select test or production and provide complete x402 configuration.

Verification

sh
npm testnpm run typechecknpm run lintnpm run benchmark:source-routenpm run benchmark:error-routenpm run verify:catalognpm run release:check

30-second start

Connect an x402-compatible agent to https://fallback.factrail.online/mcp, call the matching tool after a concrete failure or search decision, and approve only the network, token, recipient, and amount shown by its payment challenge. HTTP clients can use POST /v1/tools/{tool_id} on the hosted origin. See skill.md for examples and schemas.

Architecture

src/core/registry.ts is the one canonical tool registry. Every discovery surface and distribution artifact is derived from it. Each tool gets a directory under src/tools/ with a contract and handler; future tool tests and fixtures belong alongside the matching contract test/fixture directories. HTTP and MCP adapters must call the same tool handler. Payment middleware and marketplace integrations stay outside tool logic.

The service supports x402 V2 per-call payment without accounts or API keys. The server only receives payment at X402_PAY_TO; no receiving wallet private key is required. Paid startup fails closed if the required network, receiving address, facilitator URL, or production URL is missing or invalid. See deployment and payment setup.

Example

json
{  "goal": "Download the latest population dataset",  "start_url": "https://ec.europa.eu/eurostat/",  "preferred_formats": ["csv", "json"]}

Call POST /v1/tools/source_route with a goal and either start_url or domain. The result is limited to the checked scope; a missing result does not mean that no route exists. Direct site discovery runs without external search credentials. If Tavily or Brave is configured and direct discovery is insufficient, the tool can make at most one search request.

See PRODUCT, ARCHITECTURE, TOOL_ADMISSION, DISTRIBUTION, and RELEASE.

Related: FACTRAIL MCP

Fallback comes from the same author and design rule as FACTRAIL MCP: agent tools should report what they checked, not only what they found. FACTRAIL answers "what is established about this fact, and from which source?" by returning evidence envelopes with support levels, unresolved fields and receipts ("unknown is better than invented"). Fallback answers "where can I get this data?" ("absence is not proof of nonexistence"). The two are independent services with no code dependency, and you can use either one alone.

來源:README.md,提交 8597612

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0-beta.1最新Oct 6, 2026