NostrPulse

io.github.PHONGUIT22由 GitHub 帳號 PHONGUIT22 發布v1.3.1更新於 Nov 4, 2026

Autonomous payment & Web-of-Trust anti-Sybil layer for AI agents via Nostr & Cashu (NIP-61 NutZaps).

概覽

AI 產生的概覽

NostrPulse 讓 AI 助理查詢 Nostr 信任評分、稽核 Cashu 鑄幣廠,並透過閃電網路或 Cashu NutZap 發送比特幣小額付款。

可以做什麼
  • 信任與身分:評估 Nostr 公鑰的反女巫信任分數,讀取代理程式自身的 npub 身分
  • 付款:發送 Cashu NutZap 電子現金,並透過 Nostr Wallet Connect 結算 BOLT-11 閃電發票(另有一個別名工具)
  • 鑄幣廠稽核與路由:探測 Cashu 鑄幣廠健康度與交易對手風險,再挑選信任最高、延遲最低的鑄幣廠
  • 派送運算:向 Nostr relay 上的 NIP-90 資料販賣機送出任務,並具備本機備援
  • 監控:檢視消費護欄、剩餘預算、遙測指標與安全事件
適用情境
適合在互動或付款前篩選交易對手、需要以小額比特幣付款給其他代理程式或創作者、或在持有價值前查核 Cashu 鑄幣廠的情境;也適合在 Nostr 上進行代理程式之間的微付款實驗。
執行需求
以 stdio 在本機執行,通常透過 npx 啟動,需要 Node.js 20 以上版本。不需 API 金鑰或帳號;身分金鑰會在本機產生並儲存,也可透過 NOSTR_SECRET_KEY 或 AGENT_NSEC 提供。閃電付款需要 Nostr Wallet Connect URI,並需能連線 Nostr relay 與 Cashu 鑄幣廠。
安裝前請注意
付款工具會動用真實比特幣,NutZap 與閃電發票一旦送出即無法撤回。護欄預設單筆 50 sats、滾動 24 小時 500 sats,低信任收款方會被攔阻。私鑰可能從 NOSTR_SECRET_KEY 或 AGENT_NSEC 讀取,或產生到本機金鑰庫檔案,需妥善保護。查詢會送往公開 relay 與第三方鑄幣廠。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 NostrPulse,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

⚡ NostrPulse

The Decentralized Stripe & Radar for Autonomous AI Agents

Autonomous Payment & Sybil-Resistant Trust Layer for AI Agents via Nostr, Cashu eCash (NIP-61), and MCP.

[npm version] [Release: v1.3.1] [MCP Registry] [MCP Stdio] [Listed on awesome-remote-mcp-servers] [FreeMCP Registry] [License: MIT] [Track] [Nostr Protocol] [Cashu Protocol] [Next.js 16]

[NostrPulse Autonomous Agent Mesh Showcase]


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.

Explore Live Explorer » • AI Agent Interface • HRF Grant Roadmap & Verification • Bounty Board • Methodology • Relay Telemetry • Versus Engine


🤖 MCP Server for AI Agents (Stripe for AI)

NostrPulse 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.

1. Zero-Code Quickstart (Cursor & Claude Desktop)

Paste this configuration directly into your claude_desktop_config.json or .cursor/mcp.json:

json
{  "mcpServers": {    "nostrpulse": {      "command": "npx",      "args": ["-y", "nostrpulse-mcp"]    }  }}
  • Claude Desktop Config File Locations:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Cursor IDE: Save to .cursor/mcp.json in your project root, or add under Cursor Settings > Features > MCP.

2. Interactive Testing via MCP Inspector

Verify tools, examine schemas, and test prompts in the browser via the official Model Context Protocol Inspector:

bash
npx @modelcontextprotocol/inspector npx -y nostrpulse-mcp

3. Core MCP Tools Lookup Table

Tool NameTypeDescription
check_trust_scoreRadar / Anti-SybilAnti-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.
pay_cashu_nutzapPayment 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.
request_nip90_jobDecentralized ComputeDispatches compute and data-processing tasks to decentralized NIP-90 Data Vending Machines (DVMs) across Nostr relays with local SQLite cache fallback.
pay_lightning_nwcPayment 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.
pay_with_nwcPayment Rails (Alias)Direct NWC payment executor alias for pay_lightning_nwc.
audit_cashu_mintMint RadarAudit and evaluate counterparty risk of a Cashu eCash Mint using Web-of-Trust graph distance, NIP-05 sovereign domain validation, and admin reputation.
route_cashu_mintMint MeshDynamically discover and route to the highest-trust, lowest-latency Cashu Mint from the WoT-Gated Dynamic Mint Mesh.
get_agent_identityZero-Config IdentityRetrieve active autonomous AI agent cryptographic public identity (pubkey, npub, keystore source, ephemeral status). Automatically bootstraps local keys.
get_spending_guardrailsBudget GatekeeperQuery current AI agent spending guardrails, daily budget (500 sats rolling), 24h satoshis spent, remaining allowance, and per-tx limits (50 sats).
get_agent_telemetryTelemetry & AuditInspect autonomous agent spending metrics, rolling 24h budget allowance, blocked Sybil threats, and Stripe Radar-grade recent telemetry events.

4. Profiles for Small Language Models (SLMs: 500M – 1.5B)

For 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:

bash
# Launch with minimal profile (3 core tools: check_trust_score, pay_cashu_nutzap, get_spending_guardrails)npx -y nostrpulse-mcp --profile=minimal
# Or via environment variableNOSTRPULSE_PROFILE=minimal npx -y nostrpulse-mcp
ProfileActive ToolsToken FootprintRecommended Use Case
minimalcheck_trust_score, pay_cashu_nutzap, get_spending_guardrails~380 tokensLocal SLMs (0.5B – 1.5B), edge devices, low-cost loops
radarcheck_trust_score, audit_cashu_mint~240 tokensRead-only anti-Sybil screening & Mint risk verification
paymentpay_cashu_nutzap, pay_lightning_nwc, get_spending_guardrails~420 tokensPayment-only execution daemons & bots
fullAll 10 NostrPulse MCP tools~2,200 tokensFlagship LLMs (Claude 3.7/Opus, GPT-4o, Gemini 2.5)

5. Autonomous Agent-to-Agent (A2A) Collaborative Mesh

NostrPulse includes a reference implementation for autonomous agent-to-agent decentralized negotiation and micro-commerce (scripts/test-mesh-agent.ts):

text
[ Agent A: Requester / Buyer ]                   [ Agent B: Worker / Seller ]             │                                                │             ├──► 1. Dispatch NIP-90 Job ('zap-analytics') ──►│             │                                                │             │    2. Audit Requester WoT Anti-Sybil Score ◄───┤ (Requires Trust Score > 40)             │       (check_trust_score)                      │             │                                                │             │◄── 3. Acknowledge & Deliver Computation ───────┤             │                                                │             ├──► 4. Inspect Budget Guardrails (assert 24h)   │             │                                                │             ├──► 5. Settle Cashu NutZap (Adaptive Fallback) ─►│
  • Zero-Cloud Local Inference: Run the showcase locally using Ollama (qwen2.5-coder:1.5b) without cloud API keys:
    bash
    npm exec tsx scripts/test-mesh-agent.ts --ollama
  • 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.

🌐 The Problem & The Freedom Solution

Open agentic systems and decentralized protocols eliminate platform lock-in, but introduce two critical vulnerabilities:

  1. Agent Impersonation & Sybil Floods: Cryptographic keypairs (npub) cost $0 to generate, making spam bots, clone accounts, and wash-trading rampant.
  2. 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.

Paradigm Shift

VectorLegacy Web2 / StripeNostrPulse (Freedom Tech Stack)
Agent IdentityAPI keys, credit cards, KYC bansCryptographic Sovereign Keypairs (NIP-01 / NIP-19)
Anti-Fraud (Radar)Centralized black-box heuristic rulesWeb-of-Trust Ring-1 (22 Anchors) + Anti-Sybil Sats Stake
M2M Settlement30% platform cuts, merchant holdsChaumian eCash (NIP-61 NutZaps): Zero-fee, instant, private
Offline DeliverySynchronous connection requiredAsynchronous NutZaps via NIP-59 Gift Wrap & Relays
Compute DelegationProprietary cloud APIsNIP-90 Data Vending Machines (Open Compute Marketplace)
AI ProtocolCustom vendor REST wrappersStdio JSON-RPC via Model Context Protocol (nostrpulse-mcp)

🏛️ Multi-Tier System Pipeline

1. Identity & Discovery2. Reputation & Anti-Sybil3. Multi-Rail Value Rails4. AI MCP & NIP-90 DVM
• 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

🚀 Key Innovations & Engineering Highlights

1. 🛡️ 5-Pillar Cryptographic Trust Score & Anti-Sybil Visualizer

NostrPulse calculates an objective 0–100 point reputation index directly from open relay data and root anchor graph topology:

PillarVerification SignalMax Points
Pillar 1NIP-05 Cryptographic DNS Binding: Validates .well-known/nostr.json against the public key (Bonus for sovereign domains).25 pts
Pillar 2Web-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
Pillar 3Sats-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
Pillar 4Keypair Longevity & Multi-Relay Depth: Assesses keypair maturity and replication count across global relays.15 pts
Pillar 5Metadata Richness & Authenticity: Verifies avatar, bio, and external identity endpoints.15 pts

[!IMPORTANT] 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.


2. ⚡ Dual-Rail Value-4-Value Settlement (Lightning + Cashu eCash)

A unified micro-transaction interface switching effortlessly between real-time Lightning and offline Chaumian eCash:

text
[ 1-Click In-App Minting & NutZap Pipeline ]User/Agent selects Sats ──► Request NUT-04 Quote ──► Settle via WebLN/QR ──► Poll Mint & Claim Proofs ──► Encrypt NIP-59/44 ──► Broadcast Kind 9321
  • 100% Asynchronous NutZaps (NIP-61): Senders deliver bearer eCash tokens to creators even when the recipient's Lightning node is offline.
  • NIP-59 Gift Wrap Envelope Privacy: Wraps NutZaps with random ephemeral keypairs to conceal sender, recipient, and payload metadata from public relay scrapers.
  • Front-Running Defense (NIP-44 v2 Encryption): Bearer tokens inside Kind 9321 events are encrypted with the recipient's public key.
  • 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.
  • Dynamic Mint Router: Switch between Minibits, Macadamia, Cashu Testnut, or private self-hosted Mint endpoints.

3. ⚡ NIP-47 Nostr Wallet Connect (NWC) Direct Lightning Rail

NostrPulse 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):

text
[ NIP-47 Direct Lightning Settlement Pipeline ]Agent 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
  • Standardized Connection URIs: Seamless parsing and generation of nostr+walletconnect://<wallet_pubkey>?relay=<relay_url>&secret=<client_secret>&lud16=<lightning_address>&encryption=<nip04|nip44>.
  • 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.
  • Dual Encryption Handshake: Transparent fallback support for both legacy NIP-04 shared secrets and next-gen ChaCha20-Poly1305 NIP-44 v2 encryption.
  • Autonomous MCP Execution: Exposed as pay_lightning_nwc (with alias pay_with_nwc) for 1-step settling by autonomous agents.

4. 🛡️ WoT-Gated Dynamic Mint Mesh & Counterparty Risk Radar (NUT-06)

Cashu Mints carry counterparty risk. NostrPulse acts as an objective, real-time Radar for Mints via auditCashuMint and selectBestMint:

text
[ 5-Pillar Mint Risk Auditing & Dynamic Mesh Routing ]Target 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
  • 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).
  • 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.
  • Tri-Tier Counterparty Risk Profiling (MintRiskProfile):
    • LOW (Trust Score ≥ 75): TRUSTED (Directly verified operator, low latency, full NUT compliance).
    • MODERATE (Trust Score 45–74): USE_WITH_CAP (Community mint with acceptable uptime and WoT connectivity).
    • HIGH_RISK (Trust Score < 45 or unverified admin): AVOID (Anonymous, insecure HTTP, high latency, or isolated keypair).
  • Autonomous Mesh Selection (selectBestMint): Evaluates candidate mint lists concurrently and dynamically selects the highest-trust, lowest-latency mint for proof creation and payment routing.

5. 🤖 Autonomous Machine Money Agent (/agent)

A dedicated interface demonstrating autonomous agent commerce:

  • Interactive AI Spender: Agent equipped with Chaumian eCash wallet capable of paying creators automatically based on quality prompts.
  • Connect MCP Modal: 1-click copy configuration for Claude Desktop and Cursor IDE.
  • Stand-alone NutZap Web Component (public/widget.js): Lightweight <nutzap-me npub="..."> button ready to embed on any blog, documentation, or static site.

6. 🤖 NIP-90 Autonomous DVM Worker & Decentralized Bounty Marketplace

  • 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"]).
  • NIP-90 Client SDK (src/lib/nip90.ts): Utility library offering publishJobRequest(), fetchOpenBounties(), and subscribeJobFeedbackAndResult().
  • Anti-Sybil Bounty Marketplace (/bounties): Open decentralized task board filtered by creator Trust Score (All, Score ≥ 20, Score ≥ 50, Score ≥ 80).
  • 1-Tap Cashu NutZap Settlement (TaskResultView.tsx): Audit deliverables and settle bounties instantly with NIP-44/59 encrypted NutZaps.

7. 🛡️ Autonomous Agent Spending Guardrails & Budget Manager

To prevent autonomous agents from draining balances through infinite loops, hallucinated calls, or prompt injections, NostrPulse enforces real-time Spending Guardrails:

text
[ Agent Payment Request ] ──► Check maxSatsPerTx (50 sats) ──► Check Rolling 24h Spend (500 sats) ──► Resolve WoT Score (>= 40)                                            │                                      │                                 │                                            ▼ (Any Violation)                      ▼ (Any Violation)                 ▼ (Any Violation)                                  [ Short-Circuit Block ] ◄────────────── [ Short-Circuit Block ] ◄───────── [ Short-Circuit Block ]                                            │                                            ▼                           Return { status: "blocked_by_guardrails" } (0 Sats Spent)
  • Per-Transaction Cap (AGENT_MAX_SATS_PER_TX): Restricts single transaction calls to a safe default of 50 sats.
  • 24-Hour Rolling Budget (AGENT_DAILY_LIMIT_SATS): Queries SQLite table agent_spending_log to enforce a rolling daily limit of 500 sats.
  • 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.
  • Non-Custodial Safety: Rejections return { status: "blocked_by_guardrails", reason } instantly without spending funds.

8. 🔑 Zero-Config Sovereign Identity Bootstrapping

Eliminates the friction of requiring developers or agents to manually generate, paste, or expose nsec private keys before running:

text
[ Agent Initialization ]          │          ├──► 1. Check process.env.NOSTR_SECRET_KEY / AGENT_NSEC (Hex or Bech32 nsec1...)          │         └── Found? ──► Use environment identity          │          ├──► 2. Check Local Keystore (.nostrpulse/agent-identity.json)          │         └── Exists? ──► Restore persistent identity          │          └──► 3. Cryptographic CSPRNG Generation (nostr-tools/pure)                    └── Generates secp256k1 keypair ──► Writes to .nostrpulse/ (Mode 0600)
  • Automated Persistence: Keypair is saved to .nostrpulse/agent-identity.json with restricted permissions and automatically excluded from Git commits via .gitignore.
  • Instant Readiness: Tools like get_agent_identity allow agents to query their public identity (pubkey, npub, source, ephemeral flag) out-of-the-box.

9. 📊 Developer Telemetry & Stripe Radar Audit Trail

A comprehensive developer observability layer (src/lib/telemetry.ts) providing a Stripe-grade audit trail:

  • Event Logging: Records structured JSON logs for payment, radar_block, job_settlement, and mint_audit into SQLite table agent_telemetry.
  • Developer Summary Metrics: Computes totalSpentSats, txCount, and blockedSybilAttacks across configurable timeframes (default: 24h).
  • 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.

📜 Protocol Specifications (NIPs, NUTs & MCP)

SpecificationStandard DescriptionStatus
MCP StdioAnthropic Model Context Protocol via Stdio JSON-RPC (nostrpulse-mcp)✅ Active
NIP-01Basic protocol flow, event signing, and multi-relay WebSocket subscriptions✅ Active
NIP-05DNS-based internet identifier cryptographic mapping ([email protected])✅ Active
NIP-07Browser extension signer interface (window.nostr: Alby, nos2x)✅ Active
NIP-19Bech32 entity encoding (npub1, nsec1, note1, nprofile1)✅ Active
NIP-44Versioned end-to-end payload encryption for secure token transport✅ Active
NIP-47Nostr Wallet Connect: Direct Lightning payment execution via Kind 23194 request & Kind 23195 response✅ Active
NIP-57Lightning Zaps (Kind 9734 Zap Request & Kind 9735 Zap Receipt)✅ Active
NIP-59Gift Wrap Encryption (Ephemeral key envelope for metadata-leak-free token delivery)✅ Active
NIP-61Cashu eCash NutZaps (Kind 9321 encrypted Chaumian token delivery)✅ Active
NIP-65Relay List Metadata (Kind 10002) for dynamic outbox routing✅ Active
NIP-90Data Vending Machines (Kind 5000 Request, Kind 6000 Result, Kind 7000 Feedback)✅ Active
WoT Ring-122 Root Anchors graph topology + local SQLite fallback cache✅ Active
NUT-00Cashu Cryptography & Token Formats: V3 (JSON Base64) & V4 (CBOR Binary)✅ Active
NUT-04Minting operations via Lightning BOLT-11 quotes and payment polling✅ Active
NUT-05Melting operations: Settle BOLT-11 Lightning invoices via Chaumian eCash proofs✅ Active
NUT-06Mint Information & Health endpoint: Supported NUTs, contact pubkeys, and latency probing✅ Active

🛠️ Technology Stack & Architecture

  • Framework: Next.js 16 (App Router, Server Components & Streaming SSR)
  • Agent Protocols: @modelcontextprotocol/sdk (v1.30+), OpenAI / Google Gemini AI SDK
  • Language: TypeScript 5 (Strict type-checking on all cryptographic structures)
  • Styling: Tailwind CSS v4, Base UI, Lucide Icons
  • Protocol Libraries: nostr-tools (v2.25+), @cashu/cashu-ts (v4.9+), @noble/hashes
  • Zero-Buffer Client Engine: Fully decoupled from Node.js Buffer globals using native browser Uint8Array primitives for universal cross-environment compatibility.
  • Non-Blocking Resilience: All network queries are wrapped with AbortSignal.timeout() and Promise.race() fallbacks to eliminate UI freezes.

⚡ Quickstart & Local Setup

Prerequisites

  • Node.js >= 20.0.0
  • npm, pnpm, or yarn

1. Clone & Install

bash
git clone https://github.com/PHONGUIT22/nostrpulse-full.gitcd nostrpulse-fullnpm install

2. Run the Development Server

bash
npm run dev

Open http://localhost:3000 in your browser to explore the live dashboard.

3. Build & Run the MCP Server

bash
# Build the production standalone MCP server bundlenpm run build:mcp
# Launch MCP server locally over stdio JSON-RPCnpx tsx src/mcp-entry.ts
# Or run the published npm package directlynpx -y nostrpulse-mcp

4. Run Verification & Test Suites

bash
# Test Agent Spending Guardrails, Budget Limits & Zero-Config Identitynpx tsx scripts/test-guardrails.ts
# Test Developer Telemetry & Audit Trail data layernpx tsx scripts/test-agent-telemetry.ts
# Test full MCP Stdio JSON-RPC integration (all 10 tools discovered & tested)npx tsx scripts/test-mcp-stdio.ts
# Test NIP-47 NWC payment execution, URI parsing, and timeout guardsnpx tsx scripts/test-nwc-pay.ts
# Test WoT-Gated Cashu Mint Mesh (Testnut & Minibits /v1/info audit & trust verification)npx tsx scripts/test-mint-mesh.ts
# Test autonomous Agent-to-Agent (A2A) Collaborative Mesh (Local SLM / Ollama)npm exec tsx scripts/test-mesh-agent.ts --ollama
# Test A2A Mesh against the published npm package over Stdio JSON-RPCnpm exec tsx scripts/test-mesh-agent.ts --ollama --npm
# Test 5-Stage Autonomous Mini-Agent Showcase (Ollama Minimal Profile or Gemini)npm exec tsx scripts/test-mini-agent.ts --ollama --profile=minimal
# Test self-contained NIP-59 Gift Wrap encryption & decryptionnpx tsx scripts/test-nip59-encryption.ts
# Strict TypeScript type check (zero errors)npx tsc --noEmit

🗺️ Roadmap & Milestones

  • Phase 1: Deterministic 5-Pillar Trust Score Engine & Anti-Sybil Damping Guard.
  • Phase 2: NIP-57 Lightning Zap integration with WebLN & live receipt streaming.
  • Phase 3: NIP-61 NutZap dual-mode engine with NUT-00 V4 CBOR decoding & NIP-44 encryption.
  • Phase 4: NIP-65 dynamic relay synchronization & browser WebSocket telemetry.
  • Phase 5: NIP-90 Data Vending Machines: Autonomous Trust Score worker bot & decentralized /bounties marketplace.
  • Phase 6: 1-Tap Cashu NutZap settlement for deliverable acceptance & instant payout.
  • Phase 7: MCP Stdio Server & npm package deployment (nostrpulse-mcp on npm registry).
  • Phase 8: NIP-47 Nostr Wallet Connect (NWC) direct Lightning rail for autonomous node settlement.
  • Phase 9: WoT-Gated Dynamic Mint Mesh & NUT-06 5-Pillar Counterparty Risk Radar.
  • Phase 10: Agent Spending Guardrails (single-tx cap & 24h limits), Zero-Config Identity Bootstrapping & Developer Telemetry Data Layer.
  • Phase 11: Autonomous Agent-to-Agent (A2A) Collaborative Mesh, SLM Profiles (--profile=minimal), and Adaptive Spending Fallback.
  • Phase 12: Standalone @nostrpulse/sdk with Zero-Buffer RFC 8949 CBOR, Dual Bundle Build, and Unified Test Suite Runner.

⚖️ License & Non-Custodial Disclaimer

Distributed 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.

來源:README.md,提交 e97231c

工具

10

check_trust_score

Verify anti-Sybil Trust Score (0-100) and Web-of-Trust distance for a Nostr pubkey.

輸入參數pubkey必填

pay_cashu_nutzap

Send an eCash NutZap payment (NIP-61) to a Nostr recipient under guardrail limits.

輸入參數commentmintUrlrecipient必填amountSats必填cashuToken

request_nip90_job

Dispatch a NIP-90 DVM analytics computation task across Nostr relays with local fallback.

輸入參數prompt必填bidSatscategorytimeframetimeoutMs

pay_lightning_nwc

Pay a BOLT-11 Lightning invoice via NIP-47 Nostr Wallet Connect.

輸入參數nwcUriinvoice必填timeoutMsamountMsat

pay_with_nwc

Pay a BOLT-11 Lightning invoice via NIP-47 Nostr Wallet Connect (alias).

輸入參數nwcUriinvoice必填timeoutMsamountMsat

audit_cashu_mint

Audit Cashu mint health, NUT-06 status, and counterparty risk score.

輸入參數mintUrl必填forceRefresh

route_cashu_mint

Route to the highest-trust, lowest-latency Cashu mint for a payment.

輸入參數amountSatsminTrustScorepreferredMint

get_agent_identity

Get the autonomous agent's Nostr public identity and npub.

無需輸入參數。

get_spending_guardrails

Check current AI agent spending budget, daily limits, and remaining satoshis.

無需輸入參數。

get_agent_telemetry

Retrieve agent telemetry metrics, rolling spend volume, and security events.

輸入參數limittimeframeHours

版本歷史

1
  1. v1.3.1最新Nov 4, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分