🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

path402

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path402

The $402 Protocol — MCP server, network daemon, and token minting for tokenized attention markets

Source
npmnpm
Version
1.3.1
Version published
Weekly downloads
23
-43.9%
Maintainers
1
Weekly downloads
 
Created
Source

path402

The $402 Protocol — Tokenized Attention Economy

MCP server, network daemon, and token minting for tokenized attention markets.

npm version License: MIT

What's Included

ComponentCommandDescription
MCP Serverpath402AI agent tools for Claude, GPT, etc.
Network Daemonpath402dIndex tokens, serve content, earn rewards
Client CLIpath402-clientInteract with the $402 network

Quick Start

Installation

npm install -g path402

Run the Daemon

path402d start

This starts a $402 network node that:

  • INDEX — Reads BSV blockchain, tracks all $402 tokens
  • VALIDATE — Confirms token ownership before serving
  • SERVE — Delivers content to verified token holders
  • EARN — Receives rewards via Proof of Serve

CLI Commands

path402d start           # Start the daemon
path402d status          # Check if running
path402d stop            # Stop the daemon
path402d config          # Show configuration
path402d --help          # Full help

MCP Server (for AI Agents)

npx path402

Claude Desktop Integration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "path402": {
      "command": "npx",
      "args": ["path402"],
      "env": {
        "PATH402_API_URL": "https://path402.com",
        "PATH402_DEFAULT_BUDGET": "10000"
      }
    }
  }
}

The $402 Protocol

Two Models of Tokenization

1. Content Tokenization — Turn URL paths into shareholder businesses

$example.com              → Site-level token
$example.com/$api         → API access token
$example.com/$blog        → Blog content token

2. Personal Tokenization — Mint your own attention token

$RICHARD                  → Richard's attention token
$ALICE                    → Alice's attention token
$SPIELBERG                → Spielberg's attention token

Personal Tokens: The Attention Economy

Every person can mint their own token:

PropertyValue
Supply1,000,000,000 (fixed)
Access Rate1 token = 1 second
BurningDisabled (tokens circulate)
FloatCreator-controlled

How it works:

You hold 3600 $RICHARD tokens
    ↓
You can open a 1-hour connection with Richard
    ↓
After the call, you STILL hold 3600 tokens
    ↓
Tokens are reusable passes, not consumables

Social Scaling

The network grows through genuine relationships:

I value my friend
       ↓
I buy MORE tokens than I need
       ↓
I stake tokens (earn from their success)
       ↓
They succeed → I profit + maintain access

Staking & Dividends

Amount-based dividend model:

your_dividend = (your_staked / total_staked) × period_revenue

Revenue Split (Default):
├── 70% → Creator wallet
├── 20% → Staker dividend pool
└── 10% → Protocol treasury

KYC required for dividends — Basic token holding is permissionless. Dividend claims require identity verification.

Proof of Serve (Not Proof of Work)

Nodes earn through actual contribution:

ActionDescription
SERVEDeliver content to requesters
RELAYForward gossip messages
INDEXMaintain accurate token indexes
VALIDATEVerify transactions
node_reward = (node_serves / total_network_serves) × daily_pool

Why Proof of Serve?

  • Rewards useful work, not hash computation
  • No energy waste
  • No ASIC centralization
  • Everyone who serves earns

sqrt_decay Pricing

Price is determined by remaining treasury:

price = base_price / √(treasury_remaining + 1)
TreasuryPrice% Sold
500M10 sats0%
100M22 sats80%
10M71 sats98%
1M224 sats99.8%

Key insight: Early buyers always get better prices.

MCP Tool Reference

Discovery Tools

ToolDescription
path402_discoverProbe a $address for pricing and terms
path402_batch_discoverDiscover multiple $addresses
path402_evaluateAssess ROI before purchasing
path402_economicsDeep financial analysis
path402_price_scheduleView price curve

Acquisition Tools

ToolDescription
path402_acquirePurchase tokens
path402_set_budgetConfigure spending limits
path402_walletView holdings
path402_transferTransfer tokens

Serving Tools

ToolDescription
path402_serveServe content, earn revenue
path402_servableList servable content

Database Tools

ToolDescription
path402_token_statsLive token statistics
path402_holdersList token holders
path402_verifyVerify token ownership

Token Minting (BSV21)

Mint personal tokens using the BSV21 standard:

import { prepareMint, validateSymbol } from 'path402';

// Validate symbol
const validation = validateSymbol('$RICHARD');
if (!validation.valid) throw new Error(validation.error);

// Prepare mint
const result = prepareMint({
  symbol: '$RICHARD',
  issuerAddress: '1ABC...',
  description: 'Access token for Richard',
  accessRate: 1  // 1 token per second
});

console.log(result.inscription);  // BSV21 inscription JSON
console.log(result.tokenId);      // Deterministic token ID

Inscription Format

{
  "p": "bsv-21",
  "op": "deploy",
  "tick": "$RICHARD",
  "max": "1000000000",
  "dec": "0",
  "path402": {
    "accessRate": 1,
    "protocol": "path402",
    "version": "1.0.0"
  }
}

Configuration

Environment Variables

VariableDefaultDescription
PATH402_API_URLhttps://path402.comAPI endpoint
PATH402_DEFAULT_BUDGET10000Budget in sats
PATH402_WALLET_KEY-Wallet signing key
PATH402_AUTO_ACQUIREfalseAuto-acquire
PATH402_LOG_LEVELinfoLog verbosity

Use Cases

1. Self-Funding Agent

1. path402_acquire() tokens at low prices
2. path402_serve() to other agents
3. path402_wallet() to track profits
4. Reinvest profits into more tokens

2. Attention Market

1. Mint $YOURNAME token
2. Set access rate (tokens/second)
3. Sell tokens to those who want your time
4. Stake holders earn from your success

3. Content Monetization

1. Register $yourdomain.com/$content
2. Set pricing curve
3. Buyers acquire tokens for access
4. Serve content, earn revenue

Supported Networks

NetworkStatusAssets
BSVPrimaryBSV, BSV-21 tokens
BaseSupportedUSDC, ETH
SolanaSupportedUSDC, SOL
EthereumSupportedUSDC, ETH

BSV is the settlement layer. Cross-chain payments are verified and inscribed on BSV.

Development

git clone https://github.com/b0ase/path402-mcp-server
cd path402-mcp-server
pnpm install
pnpm run build
pnpm run dev

Version History

v1.3.0 (Current)

  • ✅ Personal token minting (BSV21)
  • ✅ Proof of Serve rewards
  • ✅ Attention economy model
  • ✅ Rebranded CLI (path402d)
  • ✅ Package renamed to path402

v1.2.0

  • ✅ Database tools (live stats, holders, verify)
  • ✅ Electron desktop app
  • ✅ GUI dashboard

v1.0.0

  • ✅ 10 core MCP tools
  • ✅ sqrt_decay pricing
  • ✅ Budget management

License

MIT

Built by b0ase.com | Powered by BSV

Keywords

mcp

FAQs

Package last updated on 04 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts