HTTP 402 AI Tollbooth

io.github.RobotFleet-HQ由 GitHub 账号 RobotFleet-HQ 发布v1.0.0更新于 Oct 24, 2026

Free MCP troubleshooting-preview tools; purchases stay human-directed.

已验证Streamable HTTP可网页运行金融开发者工具数据与分析

概览

AI 生成的概览

一个远程 MCP 服务器,让助手浏览开发者排错数据集目录、免费预览三条记录,并获取闪电网络付款指引。

可以做什么
列出产品目录,包括分类、档位、价格、条目数和端点路径,并列出已启用的支付通道及其公开合约。在购买前为某个产品免费预览恰好三条示例记录。返回某产品的购买指引和 HTTP 402 闪电网络付款挑战,但不代为付款或完成交易。
适用场景
当助手需要结构化的开发者排错数据(例如错误码和修复方法),并希望先免费试用、再决定是否按数据集用比特币闪电网络付费时适用。
运行要求
需要远程 Streamable HTTP 端点;无需账户、API 密钥、信用卡或订阅。购买完整数据集需要比特币闪电网络钱包,并在重试时提供付款哈希与付款原像请求头。
安装前请注意
完整数据集需支付 sats(各档位 2,000 至 10,000),付款由人决定;购买工具只返回指引,绝不代为付款。付款原像属于机密,兑换前不应分享。请求付费端点会生成发票,但本身不会花费资金。

安装

在 SourceWeft 中

  1. 打开 控制台中的 HTTP 402 AI Tollbooth,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.RobotFleet-HQ%2Fhttp-402-ai-tollbooth/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "http-402-ai-tollbooth": {
      "type": "http",
      "url": "https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/mcp"
    }
  }
}

README

HTTP 402 AI Tollbooth

Agent-ready developer troubleshooting data, sold per request over Bitcoin Lightning.

Live: https://http-402-ai-tollbooth.rsaun-lightning.workers.dev

HTTP 402 AI Tollbooth gives developers and AI agents three useful records free, then unlocks complete structured datasets with a BOLT11 Lightning payment. There are no accounts, subscriptions, credit cards, or API keys.

This is a public, documentation and example repository. The production Worker implementation remains private and is not included here.

Try it now

List the complete catalog:

bash
curl -sS https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/catalog

Preview exactly three records without payment:

bash
curl -sS https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/preview/api-error-fixes

Request the full product and receive an HTTP 402 Lightning challenge:

bash
curl -i https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/api/data/api-error-fixes

The last command creates an invoice. Do not run it unless you intentionally want a payment challenge; simply requesting it does not spend sats.

Why agents use it

  • 203 products across DevOps, APIs, ML/AI, Web/Frontend, and Databases
  • Entry, Standard, and Premium datasets with 50, 100, or 200 records
  • Exactly three free records per product for try-before-you-buy discovery
  • Stable error_code, description, and programmatic_fix fields
  • HTTP 402 and Bitcoin Lightning payments without user accounts
  • OpenAPI 3.1, MCP discovery metadata, and llms.txt
  • Deterministic fallback generation for resilient dataset delivery
  • Durable one-time redemption and replay protection
  • Future x402 settlement is documented but remains disabled pending verification

Architecture

text
AI agent / developer        |        | HTTPS: catalog, preview, paid dataset        vCloudflare Worker   |         |                    |   |         |                    +--> Alby --> Bitcoin Lightning invoice   |         |   |         +--> Durable Objects --> atomic redemption + counters   |   +--> Workers KV --> invoice challenges + generated dataset cache

Pricing

TierPriceRecords
Entry2,000 sats50
Standard5,000 sats100
Premium10,000 sats200

See the pricing rationale, including the live-verified 2,000-sat receiving floor.

How to pay

  1. Request a paid product endpoint.
  2. Receive 402 Payment Required with a BOLT11 invoice and payment hash.
  3. Pay the invoice in a Lightning wallet.
  4. Retry the same endpoint with X-Payment-Hash and X-Payment-Preimage.
  5. Receive the full dataset once; replayed proofs are rejected.

Never publish or share a payment preimage before using it for its intended redemption. Future Solana USDC/x402 support is disabled until its manual verification process is completed.

Discovery documents

Integrations

  • MCP metadata: tool descriptions for catalog, preview, and purchase discovery
  • MCP transport: a live Streamable HTTP JSON-RPC endpoint at /mcp with four read-only tools
  • OpenAPI: complete HTTP endpoint descriptions for agent frameworks
  • LLMs.txt: concise machine-readable project and payment guidance

Connect an MCP client to https://http-402-ai-tollbooth.rsaun-lightning.workers.dev/mcp. The server supports list_products, preview_product, list_payment_methods, and buy_product. The last tool only returns payment directions and an HTTP 402 challenge; it never pays an invoice or creates a purchase on the caller's behalf.

For a complete no-payment example, see the Node agent recovery sample.

Runnable free sample

The sample shows how an agent can inspect malformed JSON, retry a transient 429 once after Retry-After, and safely stop when a response is not recoverable. It uses Node 22+ built-ins only:

bash
cd examples/node-agent-recoverynpm testnpm start

The demo calls only the public three-record preview endpoint. It does not call a paid route, create an invoice, or automatically replay a payment proof.

License

The documentation in this billboard repository is available under the MIT License. The private production source code is not covered by this repository or license.

来源:README.md,提交 32e2fa8

工具

4

list_products

List all products, categories, tiers, prices, item counts, and endpoint paths.

无需输入参数。

preview_product

Get exactly three free sample records before purchase.

输入参数product必填

list_payment_methods

List the currently enabled payment rails and their public machine-readable contracts.

无需输入参数。

buy_product

Return purchase directions for a product without initiating or paying a transaction.

输入参数product必填

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分