
Nexflow Smf
io.github.moejeaux由 GitHub 帳號 moejeaux 發布v1.0.0更新於 Oct 24, 2026
Smart Meta-Facilitator for x402 payments on Base: route, verify, and settle payments.
概覽
NexFlow SMF 是一個本機 MCP 伺服器,讓助理在 Base 上路由、報價、驗證並結算 x402 USDC 小額支付。
- 可以做什麼
- 探索 x402 服務商並比較 Base 上 USDC 的各條定價路由,在確定路由前取得單一報價。檢查服務狀態與延遲,並在不實際付款的情況下模擬 x402 定價標頭。驗證支付意圖,並為已完成的 x402 支付取得結算收據,用於日誌或稽核。把 USDC 預算換算成大約的 API 呼叫次數,並透過託管工作流程處理計量工作階段、預算檢查、批次結算與收入分潤記帳。
- 適用情境
- 當助理或代理需要為 Base 上受 x402 保護的 API 呼叫付費、計量或稽核時,或在投入 USDC 前想比較服務商路由與價格時使用。也適合在執行付費操作前依預算估算花費。
- 執行需求
- 以本機 npm 套件透過 stdio 執行,需要 Node.js。需要在 NEXFLOW_API_KEY 環境變數中提供 NexFlow API 金鑰,可從 NexFlow 開發者主控台取得。需要連線至 NexFlow API 的網路;NEXFLOW_BASE_URL 可覆寫預設位址。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nexflow Smf,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
NexFlow Smart Meta-Facilitator (SMF)
The x402-native metered billing and routing brain for AI agents and SaaS APIs on Base.
NexFlow SMF routes, verifies, and settles x402 micropayments on Base. It acts as an intelligent intermediary between payers and facilitators, selecting the optimal route based on cost, latency, and reliability. This repository contains the on-chain settlement contracts, TypeScript SDK, agent manifest specification, and integration examples.
🎴 Browse AgentCard Catalog →
Discover AI agent services with x402 payment routing through NexFlow SMF. Submit your service to the catalog.
📦 What's Included
🧩 Skills (Cursor & AI agents)
Canonical list of NexFlow SMF skills. Each skill has a SKILL.md (for Cursor/agents) and lives in nexflow-smf-skills/. Machine-readable manifest: skills-manifest.json · API: GET https://api.nexflowapp.app/.well-known/skills (redirects to manifest).
🎴 Browse AgentCard Catalog
Discover NexFlow services as AgentCards, ready for AI agents and x402-aware clients:
https://nexflow-agentcards.pages.dev/
Choose Your Path
Monetize an existing API at the edge (recommended)
Drop a Lambda@Edge function in front of CloudFront. Every request to a protected path must include a valid x402-payment header — otherwise the client gets a 402 Payment Required with payment instructions. No backend changes needed.
How it works:
- viewer-request — Lambda calls
/x402/verifywith the payment proof (not billed). If valid, attaches asettlementIntentIdand forwards to origin. If invalid, returns402. - origin-response — Lambda reads the
settlementIntentId. If origin status < 400, calls/x402/settleto confirm delivery (this is the billable event). Returns the response unchanged.
Get started in 15 minutes:
Use the NexFlow SMF SDK directly
For server-side integrations where you control the request lifecycle — route payments, verify intents, and trigger batch settlement from your own code.
What's in This Repo
Services Overview
Base Mainnet Contracts
🔄 Agent Workflows
NexFlow SMF allows agents to define, publish, and monetize hosted workflows — multi-step compositions of core SMF operations that other agents can invoke via the 402/MPP payment gateway.
- Workflow creation and inspection are free.
- Workflow invocation is paid — the price is computed from the sum of step costs plus a creator-defined markup.
- Workflow creators earn rev-share on every invocation.
Available Core Operations
Workflows can compose any of these paid SMF operations:
Example Workflows
Safety-Capped Session Runner
examples/workflows/safety_capped_session_runner.json
A 5-step workflow that:
- Creates a session with a requested budget
- Checks a planned charge against that budget
- Processes the charge
- Configures a 90% budget alert
- Returns current session status
Usage Health Check
examples/workflows/usage_health_check.json
A 3-step diagnostic workflow that:
- Pulls recent spend timeseries (hourly, configurable window)
- Checks budget status (zero-cost probe)
- Returns active alerts
Batch Settlement Runner
examples/workflows/revenue_share_settlement.json
A 5-step workflow demonstrating the full payment lifecycle:
- Creates a settlement session with a budget
- Checks that planned charges fit within the budget
- Processes a batch of charges
- Settles the batch
- Returns final session status
The workflow creator earns their standard rev-share (set via creatorShareBps) on every invocation. Rev-share credits accumulate per wallet and are batched for payout when they reach $5+.
Input example:
How to Register a Workflow
Response:
How to Invoke a Workflow
The first call returns HTTP 402 with a payment challenge:
After the agent pays (via Tempo MPP or x402), it retries with the proof:
TypeScript Client Example
See examples/client/invokeUsageHealthCheck.ts for a runnable demo of the full 402 → proof → retry flow.
Environment Variables
Sign up or log in at nexflowapp.app, go to Developers → API Keys, and click Create API key. Use that key with the examples in this repo.
Never commit API keys or secrets. Use environment variables or a secrets manager.
Supported Networks & Tokens
Documentation
Development
Building the SDK
Running Examples
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Security
For security concerns, see SECURITY.md.
License
MIT License — see LICENSE for details.
Links
- Website: nexflowapp.app
- API: api.nexflowapp.app
- Skills manifest (machine-readable): skills-manifest.json · api.nexflowapp.app/.well-known/skills
- Agent Manifest: api.nexflowapp.app/.well-known/agent-manifest
- SDK on npm: @nexflow-smf/smf
- Settlement Contract: BaseScan
- Issues: GitHub Issues
- Optimism RetroPGF: Project
Built for the x402 ecosystem on Base
來源:README.md,提交 43c75db
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分