
Nexflow Smf
io.github.moejeauxPublished by GitHub account moejeauxv1.0.0Updated Oct 24, 2026
Smart Meta-Facilitator for x402 payments on Base: route, verify, and settle payments.
Overview
NexFlow SMF is a local MCP server that lets an assistant route, quote, verify and settle x402 micropayments in USDC on Base.
- What you can do
- Discover facilitators and compare priced routes across them for USDC on Base, and get a single quote before committing to a payment route. Check service health and latency, and simulate x402 pricing headers without making a real payment. Verify payment intents and fetch settlement receipts for completed x402 payments for logs or audits. Plan a USDC budget into an approximate number of API calls, and work with metered sessions, budget checks, batch settlement and revenue-share accounting through hosted workflows.
- When to use it
- Use it when an assistant or agent needs to pay for, meter or audit x402-protected API calls on Base, or when you want to compare facilitator routes and prices before committing USDC. It is also useful for estimating spend from a budget before running paid operations.
- Requirements
- Runs as a local npm package over stdio, so Node.js is needed. Requires a NexFlow API key in the NEXFLOW_API_KEY environment variable, obtained from the NexFlow developer console. Network access to the NexFlow API is required; NEXFLOW_BASE_URL optionally overrides the default endpoint. Desktop only.
Installation
In SourceWeft
- Open Nexflow Smf in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 43c75db
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts