{"slug": "show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents", "title": "Show HN: NostrPulse – Bitcoin HTTP 402 (L402 and Cashu) MCP Server for AI Agents", "summary": "NostrPulse released an open-source Model Context Protocol (MCP) server, distributed as the npm package nostrpulse-mcp, that gives AI agents Bitcoin payment rails and anti-Sybil trust scoring over Nostr, Cashu eCash (NIP-61 NutZaps) and Lightning. The server exposes tools including check_trust_score, pay_cashu_nutzap, request_nip90_job, pay_lightning_nwc and audit_cashu_mint, and its TypeScript SDK lets developers set spending caps such as maxDailySats: 5000 and minTrustScore: 65 and call a Bitcoin-native HTTP 402 paywall engine via fetch402. The project targets clients including Claude Desktop, Cursor, Windsurf, LangChain and the Vercel AI SDK, and is pitched as a decentralized alternative to Stripe settlement and Stripe Radar fraud protection for machine-to-machine payments.", "body_md": "**The Decentralized Stripe & Radar for Autonomous AI Agents via Nostr, Cashu eCash (NIP-61), and Model Context Protocol (MCP).**\n\n**NostrPulse** is an open-source payment and sovereign trust layer for autonomous AI agents, built on top of the **Freedom Tech Stack** (Nostr + Bitcoin Lightning + Cashu Chaumian eCash + Model Context Protocol). It provides **Stripe-like settlement** (M2M micro-payments via NIP-61 NutZaps) and **Stripe Radar-grade anti-Sybil protection** (Web-of-Trust graph distance + verifiable Economic Stake) for Cursor, Claude Desktop, and autonomous LLMs.\n\n[**Explore Live Explorer »**](https://nostrpulse.vercel.app/) •\n  [**AI Agent Interface**](https://nostrpulse.vercel.app/agent) •\n  [**HRF Grant Roadmap & Verification**](https://github.com/PHONGUIT22/nostrpulse-full/blob/main/docs/HRF_GRANT_ROADMAP.md) •\n  [**Bounty Board**](https://nostrpulse.vercel.app/bounties) •\n  [**Methodology**](https://nostrpulse.vercel.app/about) •\n  [**Relay Telemetry**](https://nostrpulse.vercel.app/relays) •\n  **Versus Engine**\n\nNostrPulse natively exports an industry-standard **Model Context Protocol (MCP)** server over Stdio JSON-RPC. Any AI client (Claude Desktop, Cursor, Windsurf, LangChain, Vercel AI SDK) can instantly tap into decentralized reputation, machine-to-machine micropayments, and distributed compute without API keys or custodial accounts.\n\nPaste this configuration directly into your `claude_desktop_config.json` or `.cursor/mcp.json`:\n\n```\n{\n  \"mcpServers\": {\n    \"nostrpulse\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"nostrpulse-mcp\"]\n    }\n  }\n}\n```\n\n- **Claude Desktop Config File Locations:**  - **macOS:**`~/Library/Application Support/Claude/claude_desktop_config.json`\n  - **Windows:**`%APPDATA%\\Claude\\claude_desktop_config.json`\n- **Cursor IDE:** Save to`.cursor/mcp.json` in your project root, or add under*Cursor Settings > Features > MCP* .\n\nFor TypeScript/Node.js AI developers who want autonomous eCash/Lightning rails with built-in anti-Sybil radar and spending limits without managing Nostr NIPs or Cashu NUTs directly:\n\n``` js\nimport { NostrPulseAgent } from \"nostrpulse-mcp/sdk\";\n\nconst wallet = new NostrPulseAgent({ maxDailySats: 5000, minTrustScore: 65 });\nawait wallet.deposit(\"cashuAeyJ0b2tlbiI6...\");\nconst receipt = await wallet.pay({ to: \"npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6\", amountSats: 21, memo: \"AI task settlement\" });\n\n// Bitcoin-native HTTP 402 Paywall Engine (L402 Lightning + Cashu NUT-24 X-Cashu)\nconst paidApi = await wallet.fetch402(\"https://api.example.com/paid-endpoint\");\n```\n\nVerify tools, examine schemas, and test prompts in the browser via the official Model Context Protocol Inspector:\n\n```\nnpx @modelcontextprotocol/inspector npx -y nostrpulse-mcp\n```\n\n| Tool Name | Type | Description | \n|---|---|---|\n| `check_trust_score` | **Radar / Anti-Sybil** | Anti-fraud radar for AI agents. Evaluates Web-of-Trust Ring-1 (22 Root Anchors), transitive hops, and Sybil-filtered Economic Stake (sats) before interacting or paying. | \n| `pay_cashu_nutzap` | **Payment Rails (eCash)** | Instant machine-to-machine (M2M) settlement with Chaumian eCash (NIP-61 NutZap) wrapped in metadata-private NIP-59 Gift Wrap and NIP-44 encryption. Wrapped with pre-flight spending guardrails. | \n| `request_nip90_job` | **Decentralized Compute** | Dispatches compute and data-processing tasks to decentralized NIP-90 Data Vending Machines (DVMs) across Nostr relays with local SQLite cache fallback. | \n| `pay_lightning_nwc` | **Payment Rails (Lightning)** | Settle BOLT-11 Lightning invoices directly through an autonomous node via NIP-47 Nostr Wallet Connect (Alby Hub, Phoenixd, Umbrel) with spending guardrails. | \n| `pay_with_nwc` | **Payment Rails (Alias)** | Direct NWC payment executor alias for `pay_lightning_nwc` . | \n| `audit_cashu_mint` | **Mint Radar** | Audit and evaluate counterparty risk of a Cashu eCash Mint using Web-of-Trust graph distance, NIP-05 sovereign domain validation, and admin reputation. | \n| `route_cashu_mint` | **Mint Mesh** | Dynamically discover and route to the highest-trust, lowest-latency Cashu Mint from the WoT-Gated Dynamic Mint Mesh. | \n| `get_agent_identity` | **Zero-Config Identity** | Retrieve active autonomous AI agent cryptographic public identity ( `pubkey` ,`npub` , keystore source, ephemeral status). Automatically bootstraps local keys. | \n| `get_spending_guardrails` | **Budget Gatekeeper** | Query current AI agent spending guardrails, daily budget (500 sats rolling), 24h satoshis spent, remaining allowance, and per-tx limits (50 sats). | \n| `get_agent_telemetry` | **Telemetry & Audit** | Inspect autonomous agent spending metrics, rolling 24h budget allowance, blocked Sybil threats, and Stripe Radar-grade recent telemetry events. | \n| `fetch_with_402_payment` | **HTTP 402 Paywall** | Fetch external REST APIs and transparently settle HTTP `402 Payment Required` paywalls via Cashu NUT-24 (`X-Cashu` ) or Lightning`L402` with SSRF and budget guardrails. | \n\nFor edge devices, local SLMs (e.g., Qwen 2.5 0.5B/1.5B via Ollama), or cost-sensitive agent loops, NostrPulse supports **context-optimized profiles** that reduce prompt overhead from **~2,200 tokens down to ~380 tokens**:\n\n```\n# Launch with minimal profile (3 core tools: check_trust_score, pay_cashu_nutzap, get_spending_guardrails)\nnpx -y nostrpulse-mcp --profile=minimal\n\n# Or via environment variable\nNOSTRPULSE_PROFILE=minimal npx -y nostrpulse-mcp\n```\n\n| Profile | Active Tools | Token Footprint | Recommended Use Case | \n|---|---|---|---|\n| `minimal` | `check_trust_score` ,`pay_cashu_nutzap` ,`get_spending_guardrails` | **~380 tokens** | Local SLMs (0.5B – 1.5B), edge devices, low-cost loops | \n| `radar` | `check_trust_score` ,`audit_cashu_mint` | **~240 tokens** | Read-only anti-Sybil screening & Mint risk verification | \n| `payment` | `pay_cashu_nutzap` ,`pay_lightning_nwc` ,`get_spending_guardrails` | **~420 tokens** | Payment-only execution daemons & bots | \n| `full` | All 10 NostrPulse MCP tools | **~2,200 tokens** | Flagship LLMs (Claude 3.7/Opus, GPT-4o, Gemini 2.5) | \n\nNostrPulse includes a reference implementation for autonomous agent-to-agent decentralized negotiation and micro-commerce (`scripts/test-mesh-agent.ts`):\n\n```\n[ Agent A: Requester / Buyer ]                   [ Agent B: Worker / Seller ]\n             │                                                │\n             ├──► 1. Dispatch NIP-90 Job ('zap-analytics') ──►│\n             │                                                │\n             │    2. Audit Requester WoT Anti-Sybil Score ◄───┤ (Requires Trust Score > 40)\n             │       (check_trust_score)                      │\n             │                                                │\n             │◄── 3. Acknowledge & Deliver Computation ───────┤\n             │                                                │\n             ├──► 4. Inspect Budget Guardrails (assert 24h)   │\n             │                                                │\n             ├──► 5. Settle Cashu NutZap (Adaptive Fallback) ─►│\n```\n\n- **Zero-Cloud Local Inference:** Run the showcase locally using Ollama (`qwen2.5-coder:1.5b` ) without cloud API keys:\n\n```\nnpm exec tsx scripts/test-mesh-agent.ts --ollama\n```\n\n- **Adaptive Spending Fallback:** If a requested micro-payment exceeds the rolling 24-hour spending limit, the agent automatically adapts down to the remaining safe allowance to settle minimum fees without crashing or overspending.\n\nOpen agentic systems and decentralized protocols eliminate platform lock-in, but introduce two critical vulnerabilities:\n\n1. **Agent Impersonation & Sybil Floods:** Cryptographic keypairs (`npub` ) cost $0 to generate, making spam bots, clone accounts, and wash-trading rampant.\n2. **Payment Fragility & KYC Lockouts:** Legacy banking rails (Stripe/PayPal) freeze autonomous agents. Synchronous Lightning Zaps (NIP-57) fail when receiver nodes are offline or lack inbound liquidity channels.\n\n| Vector | Legacy Web2 / Stripe | NostrPulse (Freedom Tech Stack) | \n|---|---|---|\n| **Agent Identity** | API keys, credit cards, KYC bans | **Cryptographic Sovereign Keypairs (`NIP-01 / NIP-19`)** | \n| **Anti-Fraud (Radar)** | Centralized black-box heuristic rules | **Web-of-Trust Ring-1 (22 Anchors) + Anti-Sybil Sats Stake** | \n| **M2M Settlement** | 30% platform cuts, merchant holds | **Chaumian eCash (NIP-61 NutZaps): Zero-fee, instant, private** | \n| **Offline Delivery** | Synchronous connection required | **Asynchronous NutZaps via NIP-59 Gift Wrap & Relays** | \n| **Compute Delegation** | Proprietary cloud APIs | **NIP-90 Data Vending Machines (Open Compute Marketplace)** | \n| **AI Protocol** | Custom vendor REST wrappers | **Stdio JSON-RPC via Model Context Protocol (`nostrpulse-mcp`)** | \n\n| **1. Identity & Discovery** | **2. Reputation & Anti-Sybil** | **3. Multi-Rail Value Rails** | **4. AI MCP & NIP-90 DVM** | \n| • **NIP-01:** P2P WebSocket relays• **NIP-05:** Cryptographic DNS• **NIP-07:** Signer (Alby, nos2x)• **NIP-65:** Relay gossip mesh | • **5-Pillar Score** (0–100 pts)• **22 Root Anchors** WoT graph• **Anti-Sybil Damping Guard**• **Mint Reputation Radar**• **Dual-bar Economic Stake** | • **NIP-47:** NWC Lightning Rail• **NIP-61:** Cashu NutZaps• **NIP-57:** Lightning Zaps• **NIP-59:** Gift Wrap Privacy• **NUT-06:** Dynamic Mint Mesh | • **MCP Stdio:** JSON-RPC server• **npm:**`nostrpulse-mcp`• **NIP-90:** DVM Worker Daemon• **Bounties:** WoT-gated tasks | \n\nNostrPulse calculates an objective 0–100 point reputation index directly from open relay data and root anchor graph topology:\n\n| Pillar | Verification Signal | Max Points | \n|---|---|---|\n| **Pillar 1** | **NIP-05 Cryptographic DNS Binding:** Validates`.well-known/nostr.json` against the public key (Bonus for sovereign domains). | **25 pts** | \n| **Pillar 2** | **Web-of-Trust (WoT) Ring-1 Proximity:** Evaluates graph distance to 22 verified protocol seed keys (`jack` ,`fiatjaf` ,`jb55` ,`calle` ,`odell` , etc.) with local SQLite fallback. | **25 pts** | \n| **Pillar 3** | **Sats-Weighted In-Degree (Economic Stake):** Analyzes verified Zap receipts and filters out self-zaps and bot clones. Visualized with a dual progress bar. | **20 pts** | \n| **Pillar 4** | **Keypair Longevity & Multi-Relay Depth:** Assesses keypair maturity and replication count across global relays. | **15 pts** | \n| **Pillar 5** | **Metadata Richness & Authenticity:** Verifies avatar, bio, and external identity endpoints. | **15 pts** | \n\nImportant\n\n**Anti-Sybil Damping Guard:** Accounts lacking verified NIP-05 DNS signatures **AND** isolated from the Web-of-Trust graph are **strictly capped at 44 points (Unverified / Potential Bot)**. This permanently neutralizes automated bot swarms.\n\nA unified micro-transaction interface switching effortlessly between real-time Lightning and offline Chaumian eCash:\n\n```\n[ 1-Click In-App Minting & NutZap Pipeline ]\nUser/Agent selects Sats ──► Request NUT-04 Quote ──► Settle via WebLN/QR ──► Poll Mint & Claim Proofs ──► Encrypt NIP-59/44 ──► Broadcast Kind 9321\n```\n\n- **100% Asynchronous NutZaps (NIP-61):** Senders deliver bearer eCash tokens to creators even when the recipient's Lightning node is offline.\n- **NIP-59 Gift Wrap Envelope Privacy:** Wraps NutZaps with random ephemeral keypairs to conceal sender, recipient, and payload metadata from public relay scrapers.\n- **Front-Running Defense (NIP-44 v2 Encryption):** Bearer tokens inside`Kind 9321` events are encrypted with the recipient's public key.\n- **Native NUT-00 V4 CBOR Decoding:** Zero-dependency binary parser compliant with RFC 8949, reading both legacy`cashuA` (JSON Base64) and next-gen`cashuB` (CBOR) tokens.\n- **Dynamic Mint Router:** Switch between**Minibits** ,**Macadamia** ,**Cashu Testnut** , or private self-hosted Mint endpoints.\n\nNostrPulse integrates a high-performance, zero-memory-leak client for **NIP-47 Nostr Wallet Connect**, allowing AI agents to pay BOLT-11 Lightning invoices directly through self-hosted autonomous nodes (Alby Hub, Phoenixd, Umbrel, LNBits):\n\n```\n[ NIP-47 Direct Lightning Settlement Pipeline ]\nAgent receives Invoice ──► Parse NWC URI ──► Encrypt Payload (NIP-04/44) ──► Publish Kind 23194 ──► Listen Kind 23195 (Tagged by #e) ──► Extract Preimage & Fees ──► Destroy Pool & Subscriptions\n```\n\n- **Standardized Connection URIs:** Seamless parsing and generation of`nostr+walletconnect://<wallet_pubkey>?relay=<relay_url>&secret=<client_secret>&lud16=<lightning_address>&encryption=<nip04|nip44>` .\n- **Zero-Leak Subscription Lifecycle:** Immediate resource cleanup upon resolution or timeout, destroying relay pools and event subscriptions to prevent memory retention in long-running agent daemons.\n- **Dual Encryption Handshake:** Transparent fallback support for both legacy NIP-04 shared secrets and next-gen ChaCha20-Poly1305 NIP-44 v2 encryption.\n- **Autonomous MCP Execution:** Exposed as`pay_lightning_nwc` (with alias`pay_with_nwc` ) for 1-step settling by autonomous agents.\n\nCashu Mints carry counterparty risk. NostrPulse acts as an objective, real-time **Radar for Mints** via `auditCashuMint` and `selectBestMint`:\n\n```\n[ 5-Pillar Mint Risk Auditing & Dynamic Mesh Routing ]\nTarget Mint URL ──► Probe NUT-06 /v1/info ──► Extract Admin Contact ──► Resolve WoT & NIP-05 ──► Compute 5-Pillar Mint Score ──► Classify Risk (LOW / MODERATE / HIGH_RISK) ──► Route to Optimal Mint\n```\n\n- **NUT-06 Probe & Capability Auditing:** Evaluates mint uptime, operational response latency, and supported protocol capabilities (`NUT-04` Mint,`NUT-05` Melt,`NUT-07` StateCheck,`NUT-08` FeeReturn,`NUT-10` DLEQ Proofs,`NUT-11` P2PK).\n- **Cryptographic Admin Identity Discovery:** Extracts Nostr operator pubkeys, NIP-05 sovereign domain signatures, or Nostr URIs from contact metadata, resolving transitive WoT graph distance to the 22 Root Anchors.\n- **Tri-Tier Counterparty Risk Profiling (`MintRiskProfile`):**  - `LOW` (Trust Score ≥ 75):**`TRUSTED`** (Directly verified operator, low latency, full NUT compliance).\n  - `MODERATE` (Trust Score 45–74):**`USE_WITH_CAP`** (Community mint with acceptable uptime and WoT connectivity).\n  - `HIGH_RISK` (Trust Score < 45 or unverified admin):**`AVOID`** (Anonymous, insecure HTTP, high latency, or isolated keypair).\n- **Autonomous Mesh Selection (`selectBestMint`):** Evaluates candidate mint lists concurrently and dynamically selects the highest-trust, lowest-latency mint for proof creation and payment routing.\n\nA dedicated interface demonstrating autonomous agent commerce:\n\n- **Interactive AI Spender:** Agent equipped with Chaumian eCash wallet capable of paying creators automatically based on quality prompts.\n- **Connect MCP Modal:** 1-click copy configuration for Claude Desktop and Cursor IDE.\n- **Stand-alone NutZap Web Component (`public/widget.js`):** Lightweight`<nutzap-me npub=\"...\">` button ready to embed on any blog, documentation, or static site.\n\n- **Autonomous Trust Score DVM Bot (`scripts/dvm-worker.ts`):** Background worker that listens for` Kind 5000` job requests tagged with`[\"t\", \"trust-score\"]` , computes scores, and broadcasts`Kind 6000` with 5-Sat demand (`[\"amount\", \"5000\"]` ).\n- **NIP-90 Client SDK (`src/lib/nip90.ts`):** Utility library offering` publishJobRequest()` ,`fetchOpenBounties()` , and`subscribeJobFeedbackAndResult()` .\n- **Anti-Sybil Bounty Marketplace (`/bounties`):** Open decentralized task board filtered by creator Trust Score (*All* ,*Score ≥ 20* ,*Score ≥ 50* ,*Score ≥ 80* ).\n- **1-Tap Cashu NutZap Settlement (`TaskResultView.tsx`):** Audit deliverables and settle bounties instantly with NIP-44/59 encrypted NutZaps.\n\nTo prevent autonomous agents from draining balances through infinite loops, hallucinated calls, or prompt injections, NostrPulse enforces real-time **Spending Guardrails**:\n\n```\n[ Agent Payment Request ] ──► Check maxSatsPerTx (50 sats) ──► Check Rolling 24h Spend (500 sats) ──► Resolve WoT Score (>= 40)\n                                            │                                      │                                 │\n                                            ▼ (Any Violation)                      ▼ (Any Violation)                 ▼ (Any Violation)\n                                  [ Short-Circuit Block ] ◄────────────── [ Short-Circuit Block ] ◄───────── [ Short-Circuit Block ]\n                                            │\n                                            ▼\n                           Return { status: \"blocked_by_guardrails\" } (0 Sats Spent)\n```\n\n- **Per-Transaction Cap (`AGENT_MAX_SATS_PER_TX`):** Restricts single transaction calls to a safe default of**50 sats** .\n- **24-Hour Rolling Budget (`AGENT_DAILY_LIMIT_SATS`):** Queries SQLite table` agent_spending_log` to enforce a rolling daily limit of**500 sats** .\n- **Anti-Sybil Counterparty Gate (`AGENT_MIN_RECIPIENT_SCORE`):** Evaluates counterparty trust score via Web-of-Trust graph distance; payments to unverified or bot identities (< 40 score) are automatically intercepted and blocked.\n- **Non-Custodial Safety:** Rejections return`{ status: \"blocked_by_guardrails\", reason }` instantly without spending funds.\n\nEliminates the friction of requiring developers or agents to manually generate, paste, or expose `nsec` private keys before running:\n\n```\n[ Agent Initialization ]\n          │\n          ├──► 1. Check process.env.NOSTR_SECRET_KEY / AGENT_NSEC (Hex or Bech32 nsec1...)\n          │         └── Found? ──► Use environment identity\n          │\n          ├──► 2. Check Local Keystore (.nostrpulse/agent-identity.json)\n          │         └── Exists? ──► Restore persistent identity\n          │\n          └──► 3. Cryptographic CSPRNG Generation (nostr-tools/pure)\n                    └── Generates secp256k1 keypair ──► Writes to .nostrpulse/ (Mode 0600)\n```\n\n- **Automated Persistence:** Keypair is saved to`.nostrpulse/agent-identity.json` with restricted permissions and automatically excluded from Git commits via`.gitignore` .\n- **Instant Readiness:** Tools like`get_agent_identity` allow agents to query their public identity (`pubkey` ,`npub` , source, ephemeral flag) out-of-the-box.\n\nA comprehensive developer observability layer (`src/lib/telemetry.ts`) providing a Stripe-grade audit trail:\n\n- **Event Logging:** Records structured JSON logs for`payment` ,`radar_block` ,`job_settlement` , and`mint_audit` into SQLite table`agent_telemetry` .\n- **Developer Summary Metrics:** Computes`totalSpentSats` ,`txCount` , and`blockedSybilAttacks` across configurable timeframes (default: 24h).\n- **Dual Access:** Consumable directly by AI agents via MCP tool`get_agent_telemetry` and by web dashboards via Next.js REST API`GET /api/telemetry` .\n\n| Specification | Standard Description | Status | \n|---|---|---|\n| **MCP Stdio** | Anthropic Model Context Protocol via Stdio JSON-RPC ( `nostrpulse-mcp` ) | ✅ Active | \n| **NIP-01** | Basic protocol flow, event signing, and multi-relay WebSocket subscriptions | ✅ Active | \n| **NIP-05** | DNS-based internet identifier cryptographic mapping ( `_@domain.com` ) | ✅ Active | \n| **NIP-07** | Browser extension signer interface ( `window.nostr` : Alby, nos2x) | ✅ Active | \n| **NIP-19** | Bech32 entity encoding ( `npub1` ,`nsec1` ,`note1` ,`nprofile1` ) | ✅ Active | \n| **NIP-44** | Versioned end-to-end payload encryption for secure token transport | ✅ Active | \n| **NIP-47** | Nostr Wallet Connect: Direct Lightning payment execution via `Kind 23194` request &`Kind 23195` response | ✅ Active | \n| **NIP-57** | Lightning Zaps ( `Kind 9734` Zap Request &`Kind 9735` Zap Receipt) | ✅ Active | \n| **NIP-59** | Gift Wrap Encryption (Ephemeral key envelope for metadata-leak-free token delivery) | ✅ Active | \n| **NIP-61** | Cashu eCash NutZaps ( `Kind 9321` encrypted Chaumian token delivery) | ✅ Active | \n| **NIP-65** | Relay List Metadata ( `Kind 10002` ) for dynamic outbox routing | ✅ Active | \n| **NIP-90** | Data Vending Machines ( `Kind 5000` Request,`Kind 6000` Result,`Kind 7000` Feedback) | ✅ Active | \n| **WoT Ring-1** | 22 Root Anchors graph topology + local SQLite fallback cache | ✅ Active | \n| **NUT-00** | Cashu Cryptography & Token Formats: V3 (JSON Base64) & V4 (CBOR Binary) | ✅ Active | \n| **NUT-04** | Minting operations via Lightning BOLT-11 quotes and payment polling | ✅ Active | \n| **NUT-05** | Melting operations: Settle BOLT-11 Lightning invoices via Chaumian eCash proofs | ✅ Active | \n| **NUT-06** | Mint Information & Health endpoint: Supported NUTs, contact pubkeys, and latency probing | ✅ Active | \n\n- **Framework:** Next.js 16 (App Router, Server Components & Streaming SSR)\n- **Agent Protocols:**`@modelcontextprotocol/sdk` (v1.30+), OpenAI / Google Gemini AI SDK\n- **Language:** TypeScript 5 (Strict type-checking on all cryptographic structures)\n- **Styling:** Tailwind CSS v4, Base UI, Lucide Icons\n- **Protocol Libraries:**`nostr-tools` (v2.25+),`@cashu/cashu-ts` (v4.9+),`@noble/hashes`\n- **Zero-Buffer Client Engine:** Fully decoupled from Node.js`Buffer` globals using native browser`Uint8Array` primitives for universal cross-environment compatibility.\n- **Non-Blocking Resilience:** All network queries are wrapped with`AbortSignal.timeout()` and`Promise.race()` fallbacks to eliminate UI freezes.\n\n- Node.js `>= 20.0.0`\n- `npm` ,`pnpm` , or`yarn`\n\n```\ngit clone https://github.com/PHONGUIT22/nostrpulse-full.git\ncd nostrpulse-full\nnpm install\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to explore the live dashboard.\n\n```\n# Build the production standalone MCP server bundle\nnpm run build:mcp\n\n# Launch MCP server locally over stdio JSON-RPC\nnpx tsx src/mcp-entry.ts\n\n# Or run the published npm package directly\nnpx -y nostrpulse-mcp\n# Test Agent Spending Guardrails, Budget Limits & Zero-Config Identity\nnpx tsx scripts/test-guardrails.ts\n\n# Test Developer Telemetry & Audit Trail data layer\nnpx tsx scripts/test-agent-telemetry.ts\n\n# Test full MCP Stdio JSON-RPC integration (all 10 tools discovered & tested)\nnpx tsx scripts/test-mcp-stdio.ts\n\n# Test NIP-47 NWC payment execution, URI parsing, and timeout guards\nnpx tsx scripts/test-nwc-pay.ts\n\n# Test WoT-Gated Cashu Mint Mesh (Testnut & Minibits /v1/info audit & trust verification)\nnpx tsx scripts/test-mint-mesh.ts\n\n# Test autonomous Agent-to-Agent (A2A) Collaborative Mesh (Local SLM / Ollama)\nnpm exec tsx scripts/test-mesh-agent.ts --ollama\n\n# Test A2A Mesh against the published npm package over Stdio JSON-RPC\nnpm exec tsx scripts/test-mesh-agent.ts --ollama --npm\n\n# Test 5-Stage Autonomous Mini-Agent Showcase (Ollama Minimal Profile or Gemini)\nnpm exec tsx scripts/test-mini-agent.ts --ollama --profile=minimal\n\n# Test self-contained NIP-59 Gift Wrap encryption & decryption\nnpx tsx scripts/test-nip59-encryption.ts\n\n# Strict TypeScript type check (zero errors)\nnpx tsc --noEmit\n```\n\n-  **Phase 1:** Deterministic 5-Pillar Trust Score Engine & Anti-Sybil Damping Guard.\n-  **Phase 2:** NIP-57 Lightning Zap integration with WebLN & live receipt streaming.\n-  **Phase 3:** NIP-61 NutZap dual-mode engine with NUT-00 V4 CBOR decoding & NIP-44 encryption.\n-  **Phase 4:** NIP-65 dynamic relay synchronization & browser WebSocket telemetry.\n-  **Phase 5:** NIP-90 Data Vending Machines: Autonomous Trust Score worker bot & decentralized`/bounties` marketplace.\n-  **Phase 6:** 1-Tap Cashu NutZap settlement for deliverable acceptance & instant payout.\n-  **Phase 7:** MCP Stdio Server & npm package deployment (`nostrpulse-mcp` on npm registry).\n-  **Phase 8:** NIP-47 Nostr Wallet Connect (NWC) direct Lightning rail for autonomous node settlement.\n-  **Phase 9:** WoT-Gated Dynamic Mint Mesh & NUT-06 5-Pillar Counterparty Risk Radar.\n-  **Phase 10:** Agent Spending Guardrails (single-tx cap & 24h limits), Zero-Config Identity Bootstrapping & Developer Telemetry Data Layer.\n-  **Phase 11:** Autonomous Agent-to-Agent (A2A) Collaborative Mesh, SLM Profiles (`--profile=minimal` ), and Adaptive Spending Fallback.\n-  **Phase 12:** Standalone`@nostrpulse/sdk` with Zero-Buffer RFC 8949 CBOR, Dual Bundle Build, and Unified Test Suite Runner.\n\nDistributed under the MIT License. NostrPulse is strictly non-custodial software: it never generates, stores, or requests user private keys (`nsec`), nor does it take custody of user funds.", "url": "https://wpnews.pro/news/show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents", "canonical_source": "https://github.com/PHONGUIT22/nostrpulse-full", "published_at": "2026-11-20 10:01:27+00:00", "updated_at": "2026-11-20 10:15:37.365559+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["NostrPulse", "Model Context Protocol", "Nostr", "Cashu", "Bitcoin Lightning", "Claude Desktop", "Cursor", "Human Rights Foundation"], "also_reported_by": [], "takeaway": "NostrPulse ships an MCP server (npx nostrpulse-mcp) whose SDK enforces spending guardrails like maxDailySats and minTrustScore and adds a fetch402 helper for L402 Lightning and Cashu NUT-24 X-Cashu paywalls.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents", "markdown": "https://wpnews.pro/news/show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents.md", "text": "https://wpnews.pro/news/show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents.txt", "jsonld": "https://wpnews.pro/news/show-hn-nostrpulse-bitcoin-http-402-l402-and-cashu-mcp-server-for-ai-agents.jsonld"}}