{"_id":"smartflow-verify-mcp","_rev":"4-81640f2d0fc544ca4bedd6fb4d449285","name":"smartflow-verify-mcp","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"smartflow-verify-mcp","version":"0.1.0","keywords":["mcp","modelcontextprotocol","x402","base","usdc","payments","verification","audit","agent-commerce"],"author":{"name":"Tom Smart"},"license":"MIT","_id":"smartflow-verify-mcp@0.1.0","maintainers":[{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"}],"homepage":"https://verify.smartflowproai.com","bin":{"smartflow-verify-mcp":"src/server.js"},"dist":{"shasum":"5229e6d30d92fe98ada43cbef235f8b75540490e","tarball":"https://registry.npmjs.org/smartflow-verify-mcp/-/smartflow-verify-mcp-0.1.0.tgz","fileCount":4,"integrity":"sha512-YCYN7qmvVdq3CYIaaFJoZmCEU/h04MjV/JHrfIccoOxJIO+C8Ipr08gcYhHB41nm8AuNWszTYC5vuuaeDZa/9A==","signatures":[{"sig":"MEQCIC9HrjamxurESyRjLBcWEvTZXBom2n7TAHW2Iqe5irv/AiAjAycRqWP86xm5DoA6Kn2w6/ms2pbvZuK8CTq291rdfA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20259},"type":"module","_from":"file:smartflow-verify-mcp-0.1.0.tgz","engines":{"node":">=18"},"scripts":{"start":"node src/server.js","selftest":"node selftest.js"},"_npmUser":{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"},"_resolved":"/private/tmp/claude-501/-Users-tomasz-Documents-Obsidian-Vault/29c37b78-190d-4bec-b9dd-ea0e7cd84415/scratchpad/smartflow-verify-mcp-0.1.0.tgz","_integrity":"sha512-YCYN7qmvVdq3CYIaaFJoZmCEU/h04MjV/JHrfIccoOxJIO+C8Ipr08gcYhHB41nm8AuNWszTYC5vuuaeDZa/9A==","repository":{"url":"https://verify.smartflowproai.com","type":"git"},"_npmVersion":"11.11.0","description":"MCP server for SmartFlow Observatory, an independent x402 observatory on Base: integrity-sealed decomposition of x402 network growth and self-serve endpoint audits paid over the x402 rail itself.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/smartflow-verify-mcp_0.1.0_1783785148381_0.6903703549062341","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"smartflow-verify-mcp","version":"0.1.1","keywords":["mcp","modelcontextprotocol","x402","base","usdc","payments","verification","audit","agent-commerce"],"author":{"name":"Tom Smart"},"license":"MIT","_id":"smartflow-verify-mcp@0.1.1","maintainers":[{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"}],"homepage":"https://verify.smartflowproai.com","bin":{"smartflow-verify-mcp":"src/server.js"},"dist":{"shasum":"3cdd8751f6af410689abceb8fbf08b7ded34aba6","tarball":"https://registry.npmjs.org/smartflow-verify-mcp/-/smartflow-verify-mcp-0.1.1.tgz","fileCount":4,"integrity":"sha512-ag0fPIzQ5uMHx4pzO46DFnLuHHCUHWsGl4GebmKwCtxOguK+GDG1aW2pcqyO7Wj0JHDcB4wLw6M9EyxnL+vXtA==","signatures":[{"sig":"MEYCIQCGqfX4GSTq0WRUgMwy8QzqIwRm8kEIBCCtZYphUQIWTAIhAKXvXYi9o0GRf8HFCccBI+po9xCYbXKFklNicfWrbp53","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20312},"type":"module","engines":{"node":">=18"},"mcpName":"io.github.smartflowproai-lang/verify","scripts":{"start":"node src/server.js","selftest":"node selftest.js"},"_npmUser":{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"},"repository":{"url":"https://verify.smartflowproai.com","type":"git"},"_npmVersion":"11.11.0","description":"MCP server for SmartFlow Observatory, an independent x402 observatory on Base: integrity-sealed decomposition of x402 network growth and self-serve endpoint audits paid over the x402 rail itself.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/smartflow-verify-mcp_0.1.1_1786285200354_0.023924884422259485","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"smartflow-verify-mcp","version":"0.1.2","keywords":["mcp","modelcontextprotocol","x402","base","usdc","payments","verification","audit","agent-commerce"],"author":{"name":"Tom Smart"},"license":"MIT","_id":"smartflow-verify-mcp@0.1.2","maintainers":[{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"}],"homepage":"https://verify.smartflowproai.com","bin":{"smartflow-verify-mcp":"src/server.js"},"dist":{"shasum":"e2f1220713800f704158e55a232a733a4afe30b1","tarball":"https://registry.npmjs.org/smartflow-verify-mcp/-/smartflow-verify-mcp-0.1.2.tgz","fileCount":4,"integrity":"sha512-gu9le+sqBgMrQYEX4AVtmulMBd7R8cLKmo3yfUsyVwfYTBZjy8Rb8zM6HPGp5Zhc1LmQAC9wMCybzGzA30WYCw==","signatures":[{"sig":"MEYCIQCKtU7bhrAKbxzoyND7hb3JOWger8Vz2RnMLPvBXKlH6QIhAPgioWr3hTUhCmTTPKA/XH5qzTWJLDUBfTirYscG7BuP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFqr8au/nEan31LAWTRx56Jd9nWPCg1SPrhsvpZVIZW5AiBrq1SeXGcTUxxNV96MQXnY+CHG8dkE47gCuPRNb077lQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20368},"type":"module","engines":{"node":">=18"},"gitHead":"3c9c658a1992d2c2dbc52be13d9c77e1b520a4bf","mcpName":"io.github.smartflowproai-lang/verify","scripts":{"start":"node src/server.js","selftest":"node selftest.js"},"_npmUser":{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"},"repository":{"url":"https://verify.smartflowproai.com","type":"git"},"_npmVersion":"11.11.0","description":"MCP server for SmartFlow Observatory, an independent x402 observatory on Base: integrity-sealed decomposition of x402 network growth and self-serve endpoint audits paid over the x402 rail itself.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/smartflow-verify-mcp_0.1.2_1793812785524_0.522464749259155","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"_id":"smartflow-verify-mcp@0.1.3","bin":{"smartflow-verify-mcp":"src/server.js"},"bugs":{"url":"https://github.com/smartflowproai-lang/smartflow-verify-mcp/issues"},"dist":{"shasum":"0080cb14858f9898af86cfcaa1720e5c5dfa4d9a","tarball":"https://registry.npmjs.org/smartflow-verify-mcp/-/smartflow-verify-mcp-0.1.3.tgz","fileCount":4,"integrity":"sha512-c4ezlKVNLMSRmY40L8mns+oP/tdA8ED1Eel0hblx/n+y7FpeY0K5uUhKtDoyEtXq5zGmOB7dW57REpArOrEAdA==","signatures":[{"sig":"MEUCIQC+YyNuOE8l8UZ9UT0TatcVesgtWz2dR8BJ6M7QlIWZrQIgVTSbQBnyO9fqk2UfevXPaNI5xN/Y9dPZWFd0/DKpWXw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGInPjAnb3hj+oSOVyRvVv9hvZADC7h01pfyXIgXQJiyAiEA0UmJBc48Fnb+zqB7szqHib9WUUKmcql683B5XgRzYug="}],"unpackedSize":21946},"name":"smartflow-verify-mcp","type":"module","author":{"name":"Tom Smart"},"engines":{"node":">=18"},"gitHead":"dfe18115b8579c1cd6334dd9524a5b364bd2dbc9","license":"MIT","mcpName":"io.github.smartflowproai-lang/verify","scripts":{"start":"node src/server.js"},"version":"0.1.3","_npmUser":{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"},"homepage":"https://verify.smartflowproai.com","keywords":["mcp","modelcontextprotocol","x402","base","usdc","payments","verification","audit","agent-commerce"],"repository":{"url":"git+https://github.com/smartflowproai-lang/smartflow-verify-mcp.git","type":"git"},"_npmVersion":"11.11.0","description":"MCP server for SmartFlow Observatory, an independent x402 observatory on Base: integrity-sealed decomposition of x402 network growth and self-serve endpoint audits paid over x402 (verified and settled through the Coinbase facilitator).","directories":{},"maintainers":[{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"}],"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.4.3","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/smartflow-verify-mcp_0.1.3_1793975466360_0.30100973291940536"}}},"time":{"created":"2026-07-11T15:52:28.338Z","modified":"2026-11-06T14:31:06.604Z","0.1.0":"2026-07-11T15:52:28.521Z","0.1.1":"2026-08-09T14:20:00.484Z","0.1.2":"2026-11-04T17:19:45.599Z","0.1.3":"2026-11-06T14:31:06.446Z"},"author":{"name":"Tom Smart"},"license":"MIT","homepage":"https://verify.smartflowproai.com","keywords":["mcp","modelcontextprotocol","x402","base","usdc","payments","verification","audit","agent-commerce"],"repository":{"url":"git+https://github.com/smartflowproai-lang/smartflow-verify-mcp.git","type":"git"},"description":"MCP server for SmartFlow Observatory, an independent x402 observatory on Base: integrity-sealed decomposition of x402 network growth and self-serve endpoint audits paid over x402 (verified and settled through the Coinbase facilitator).","maintainers":[{"name":"tomsmart-ai","email":"smartflowpro.ai@gmail.com"}],"readme":"# smartflow-verify-mcp\n\nMCP server for [SmartFlow Observatory](https://verify.smartflowproai.com), an independent x402 observatory on Base that runs its own ledger of USDC micro-transfers. It gives any MCP-capable agent (Claude Code, Claude Desktop, Cursor, and others) two capabilities:\n\n1. **Read the integrity-sealed decomposition of x402 network growth**: how much of the headline volume is wash or self-dealing activity, how much is ERC-4337 bundler plumbing, and how large the organic core really is. Free.\n2. **Order a $399 signed, human-reviewed audit of any x402 endpoint or receiving wallet**, paid over x402: the order is verified and settled through the Coinbase facilitator (positive control: a 0.01 USDC test order settled on 6 Nov 2026, Base tx `0x7c115eb1f7fb56846d41f164d77eda41b58c6201abea710afa0672bcb18cdbe4`). No human needed on the buying side.\n\nThe server is a pure HTTP client of the public observatory API. It holds no keys, stores nothing locally, and **never moves funds**. Payment, if you choose to make one, happens entirely outside this server through your own wallet or x402 client.\n\nHuman-facing verification portal: <https://verify.smartflowproai.com>\n\n## Installation\n\nRequires Node.js 18 or newer.\n\n### Claude Code\n\n```bash\nclaude mcp add smartflow-verify -- npx -y smartflow-verify-mcp\n```\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json` (Settings > Developer > Edit Config):\n\n```json\n{\n  \"mcpServers\": {\n    \"smartflow-verify\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"smartflow-verify-mcp\"]\n    }\n  }\n}\n```\n\nRestart Claude Desktop and the three tools appear under the `smartflow-verify` server.\n\n### From a local checkout\n\n```bash\nnpm install\nclaude mcp add smartflow-verify -- node /path/to/mcp/src/server.js\n```\n\n## Tools\n\n### `get_network_decomposition` (free)\n\nInput: none.\n\nOutput: the full sealed decomposition document plus fields added by this client:\n\n- `data`: the dataset (30d / 7d / previous-7d windows; universe, bundler, facilitator, wash, and `clean_core` categories with tx counts, USDC volume, and unique payers; category overlaps; concentration checks; explicit limitations).\n- `seal` and `seal_verified`: the server publishes a SHA-256 seal over the canonical JSON of `data`. This client recomputes it locally and reports whether it matches, so the numbers are tamper-evident end to end. The recipe is included in the response.\n- `data_age_hours`: how stale the snapshot is. The dataset refreshes roughly daily.\n\nUse this before trusting any headline x402 volume figure. Note the `clean_core` field is a dataset category name meaning: facilitator-settled transfers with no flagged conditions after the full 48h detection window. Figures reflect the observatory's ingest time, so the most recent hour of activity may be under-represented.\n\n### `order_endpoint_audit` (creates a $399 payable order; the call itself is free)\n\nInput:\n\n- `target` (string): an x402 endpoint URL (`https://...`) or a receiving wallet address (`0x...`).\n- `email` (string): where the signed audit report is delivered.\n\nOutput: an order id (`aud_` + 16 hex chars), plain-language payment instructions, and the raw x402 payment challenge (see payment flow below).\n\nWhat you are buying: a signed, human-reviewed audit of the target covering wash-share, payer concentration, demand dispersion, and attribution, delivered by email within 48 business hours of payment.\n\n**Calling this tool moves no funds.** It only creates an order and returns payment instructions. Unpaid orders are harmless and expire on their own within 24h.\n\n### `get_audit_order_status` (free)\n\nInput:\n\n- `order_id` (string): the id returned by `order_endpoint_audit`.\n\nOutput: order state. `pending_payment` means no payment has been settled or detected yet; `paid: true` confirms the payment was settled through the facilitator or matched by exact amount; a delivered state means the signed report was emailed.\n\nA facilitator-settled x402 payment is paid when the order POST returns 200. Plain-transfer detection reads Base USDC transfer logs and can lag a few minutes behind the chain; if you just paid that way, wait 2-5 minutes and poll again before assuming a problem.\n\n## Free vs paid\n\n| Tool | Cost |\n|---|---|\n| `get_network_decomposition` | free |\n| `order_endpoint_audit` | free to call; creates a $399 payable order |\n| `get_audit_order_status` | free |\n\nNothing in this package can spend money by itself. A purchase happens only if you (or your operator) send the quoted USDC amount from your own wallet.\n\n## How the x402 payment flow works\n\n1. `order_endpoint_audit` POSTs to the observatory API. The API answers **HTTP 402 Payment Required** with an x402 v2 challenge envelope. That 402 is the success path for order creation, not an error.\n2. The challenge quotes a **per-order unique amount**: $399 plus a unique micro-USDC fraction, for example `399.002732` USDC. The fraction ties the payment to your order. **Pay the exact amount; do not round it.**\n3. Pay in either way:\n   - **x402 client** (the normal path): sign the `exact` scheme entry from the `accepts` array (network `eip155:8453`, USDC asset contract, `payTo` address are all in the challenge) and POST it back with the `PAYMENT-SIGNATURE` header. The API verifies the signed authorization with the Coinbase facilitator and settles it on Base in the same request; a `200` means the payment is settled and the order is paid. The facilitator pays the gas, so the paying wallet needs USDC only.\n   - **Plain transfer** (fallback): send the exact USDC amount on Base to the `payTo` address from any wallet. The observatory matches it to your order by amount from Base USDC transfer logs, usually within minutes.\n4. Poll `get_audit_order_status` with your order id. For a facilitator-settled payment the order is already paid when the POST returns; for a plain transfer, detection can lag a few minutes behind the chain.\n5. Once paid, the signed audit report is prepared, human-reviewed, and emailed to the address you gave, within 48 business hours of payment.\n\nPositive control, so you do not have to take the flow on faith: on 6 Nov 2026 a 0.01 USDC test order was verified and settled through the facilitator, Base tx `0x7c115eb1f7fb56846d41f164d77eda41b58c6201abea710afa0672bcb18cdbe4` (the public price stayed $399; the test amount was enabled for one allow-listed payer and switched off right after). Versions up to 0.1.2 described the audit as paid over x402 while payment was matched by exact-amount transfer only; facilitator verify-and-settle went live on 6 Nov 2026.\n\nSafety rules built into the tool descriptions, worth repeating:\n\n- If a payment submission times out, **poll status before paying again**. Never pay the same order twice.\n- Unpaid orders expire within 24h and cost nothing.\n- Agents with spend policies: creating an order is free, but paying it is a real $399 purchase. Confirm with your operator if your policy requires it.\n\n## Example session\n\nA typical agent conversation:\n\n> **User:** Before I integrate with this x402 endpoint, is the network volume real? And get me an audit of https://api.example-x402-service.com/paywall\n>\n> **Agent** calls `get_network_decomposition`, checks `seal_verified: true`, and reports that a large share of headline volume carries wash flags while the organic core is far smaller, citing exact figures and the dataset's own limitations.\n>\n> **Agent** calls `order_endpoint_audit` with the target URL and the user's email, and relays the payment instructions: \"Pay exactly 399.002732 USDC on Base to 0xd779...C893. The order id is aud_a80214548a0c4276. Unpaid orders expire in 24h.\"\n>\n> **User** pays from their wallet (or approves their agent's x402 client to pay).\n>\n> **Agent** polls `get_audit_order_status` until `paid: true`, then tells the user the signed report will arrive by email within 48 business hours.\n\n## Configuration\n\n- `SMARTFLOW_BASE_URL` (env var): overrides the API base. Default `https://verify.smartflowproai.com`.\n- HTTP timeout is 25s per request; the server reports timeouts as retryable network errors and never retries payments on its own.\n\n## Selftest (from a source checkout)\n\n```bash\nnpm run selftest\n```\n\nWrites `selftest.log` with the full JSON-RPC exchange against the live API. The selftest creates one real unpaid test order for `https://example.com`; test orders are harmless and expire in 24h. The selftest never pays anything.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/smartflowproai-lang/smartflow-verify-mcp/issues"}}