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

dollar402-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dollar402-mcp-server

MCP server for the $PATH protocol — AI agent tools for discovering, evaluating, and acquiring tokenised content via $402

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

dollar402-mcp-server

Agent tools for the $PATH protocol.

An MCP server that enables AI agents to discover, evaluate, acquire, and serve tokenised content behind $ addresses. Implements the $402 spec — the HTTP layer of the $PATH protocol.

What is $PATH?

$PATH is a protocol that turns any URL path into a priced, tokenised market. Put a $ in front of a path segment and it becomes an economic object with a price curve, a supply count, holders who serve the content, and revenue that flows to participants.

$PATH protocol (the idea)
├── $402 spec (the HTTP response format)
├── $pathd (the daemon — any machine can run it)
├── dollar402-mcp-server (the agent tool)  ← YOU ARE HERE
└── b0ase.com/exchange (the hosted marketplace)
ComponentWhat it isWho uses it
$PATHThe protocol (idea, brand, system)Everyone
$402The HTTP spec (402 response format)Implementers
$pathdThe daemon (runs on any machine)Node operators
dollar402-mcp-serverAI agent tools (this package)AI agents
b0ase.com/exchangeHosted marketplace (easy mode)End users

Learn more: b0ase.com/exchange

Why AI Agents?

$PATH was designed with AI agents as first-class consumers. Agents don't have micropayment friction — they make cost-driven decisions. When an agent needs information behind a $address, it:

  • Discovers the price and terms
  • Evaluates whether the ROI makes sense
  • Acquires the token (paying automatically)
  • Serves the content to future buyers (earning revenue)

Over time, a well-configured agent becomes self-funding: the revenue from serving exceeds the cost of acquiring. This is not marketing — it's a mathematical property of sqrt_decay pricing.

Tools

ToolDescription
dollar402_discoverProbe a $address — get pricing, supply, revenue model, nested paths
dollar402_evaluateBudget check — should the agent buy? Returns ROI estimate
dollar402_acquirePay and receive token + content. Agent becomes a serving node
dollar402_serveServe content to a requester and earn revenue
dollar402_walletView balance, tokens held, total spent/earned, net position
dollar402_servableList all content the agent can serve (tokens with serving rights)
dollar402_economicsDeep dive into breakeven, ROI projections, and the math
dollar402_batch_discoverDiscover multiple $addresses at once (efficient exploration)
dollar402_price_scheduleSee how price decays with supply for a given endpoint
dollar402_set_budgetConfigure the agent's spending budget

Quick Start

pnpm install
pnpm run build
pnpm start          # stdio transport (default)

# or HTTP transport:
TRANSPORT=http PORT=3402 pnpm start

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "dollar402": {
      "command": "node",
      "args": ["/path/to/dollar402-mcp-server/dist/index.js"]
    }
  }
}

Then ask Claude:

"Discover what's available at $b0ase.com/$blog" "Is it worth buying this content?" "Show me the economics of $b0ase.com/$blog/$metaweb-economics" "Acquire the token for $b0ase.com/$blog/$metaweb-economics" "Show me my wallet" "What content can I serve?"

Agent Workflow

1. DISCOVER  →  Agent probes a $address, reads pricing terms
2. EVALUATE  →  Agent checks budget, estimates ROI
3. ACQUIRE   →  Agent pays, receives token + content
4. SERVE     →  Agent holds token, earns from future buyers
5. REPEAT    →  Agent reinvests earnings, grows portfolio

The agent's wallet tracks all tokens, spending, and earnings. Over time, a well-configured agent acquires content that earns more from serving than it cost to buy — making the agent self-funding.

The Economics Tool

The dollar402_economics tool provides detailed financial analysis:

> "Show me the economics of $b0ase.com/$premium/$guide"

## $402 Economics: $b0ase.com/$premium/$guide

### Current State
- Supply: 23 tokens issued
- Your Position: #24 (next buyer)
- Price to Acquire: 208 SAT
- Pricing Model: sqrt_decay
- Issuer Share: 50%

### Breakeven Analysis
- Buyers needed to break even: 12
- Supply at breakeven: 36
- Breakeven probability: High

### ROI Projections
| Supply Level | ROI |
|--------------|-----|
| 46 (2x current) | 67% |
| 230 (10x current) | 412% |
| 1000 (projected) | 1847% |

### Revenue Projection (at 1000 supply)
- Gross Revenue: 31,623 SAT
- Issuer Revenue: 15,812 SAT
- Network Revenue: 15,812 SAT
- Your Est. Share: ~31 SAT

$402 Protocol Overview

$addresses

Content behind $ path segments is $402-gated:

$b0ase.com                    → site-level token (cheap)
$b0ase.com/$blog              → section token
$b0ase.com/$blog/$my-post     → content token (the actual content)

Each $ segment is an independent market with its own price and token.

Pricing Models

  • Fixed — same price for everyone
  • Square root decay — price decreases as P/√n (default, recommended)
  • Logarithmic decay — gentler price decrease
  • Linear with floor — linear decrease to a minimum

Revenue Models

  • Fixed issuer share — creator gets X%, serving nodes split the rest
  • Equal split — all token holders share equally
  • Decaying issuer — creator share starts high, network share grows

The Key Insight

Under square root decay pricing with proportional serving, every buyer except the last achieves positive ROI. This is a mathematical property of the curve, not a marketing claim. It's what makes $402 different from a simple paywall.

Self-Funding Agents

The vision: an AI agent that starts with a small balance and grows it by:

  • Acquiring undervalued tokens early
  • Serving content to later buyers
  • Reinvesting earnings into new tokens
  • Eventually operating at profit

This is possible because sqrt_decay pricing mathematically guarantees positive returns for early buyers. The agent's job is to identify good opportunities early.

Agent Strategy Tips

  • Buy early: Position matters. #5 earns more than #500.
  • Check breakeven: If breakeven requires 1000+ future buyers, skip.
  • Diversify: Hold multiple tokens to average out risk.
  • Serve actively: Revenue only flows when you serve.
  • Monitor ROI: Use dollar402_servable to track performance.

Current Status

v0.2.0 — Enhanced Agent Tools

  • ✅ Full tool suite (discover, evaluate, acquire, serve, wallet, economics)
  • ✅ Batch discovery for efficient exploration
  • ✅ Servable content listing with ROI tracking
  • ✅ Detailed economics analysis with breakeven and projections
  • ✅ Pricing engine (all four models)
  • ✅ ROI estimation
  • ✅ Mock server for testing without a live $402 endpoint
  • ✅ stdio and HTTP transport
  • 🔲 Real HTTP client (connecting to live $pathd servers)
  • 🔲 HandCash wallet integration (real payments)
  • 🔲 Multi-agent serving network
  • 🔲 Token persistence across sessions

Architecture

dollar402-mcp-server/
├── src/
│   ├── index.ts           # MCP server + tool registration
│   ├── types.ts           # $402 protocol types
│   ├── constants.ts       # Protocol constants
│   ├── schemas/
│   │   └── inputs.ts      # Zod input schemas
│   └── services/
│       ├── client.ts      # HTTP client for $402 endpoints
│       ├── pricing.ts     # Price calculation + economics engine
│       └── wallet.ts      # Token portfolio + budget + serving
└── dist/                  # Compiled JavaScript
ComponentDescriptionLink
$pathdThe daemon that serves $PATH contentpathd/
$402 SpecFull specificationdocs/PATHD_SPEC.md
ExchangeHosted marketplaceb0ase.com/exchange

License

MIT

Keywords

mcp

FAQs

Package last updated on 02 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