
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 分