npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentledger-mcp

v1.0.0

Published

MCP servers for AgentLedger — user agent and supervisor agent

Readme

agentledger-mcp

MCP (Model Context Protocol) servers for AgentLedger. Provides two servers matching the two-token role model:

  • user — tools for spending agents (request_payment, check_budget, get_status, get_transactions)
  • supervisor — tools for overseer agents (list_pending_transactions, approve_transaction, deny_transaction, get_transactions, and tier-gated set_budget, credit_budget, update_vault)

Both servers are thin proxies: they receive MCP tool calls over stdio and forward them as HTTP requests to the AgentLedger REST API.

Prerequisites

  • Node.js >= 18
  • A running AgentLedger instance (agentledger serve)

Setup

cd apps/mcp
npm install
npm run build

Usage

# Start the user agent MCP server
AGENTLEDGER_USER_TOKEN=alu_... node dist/index.js user

# Start the supervisor agent MCP server
AGENTLEDGER_SUPERVISOR_TOKEN=als_... node dist/index.js supervisor

# Supervisor with tier 2 (adds set_budget, credit_budget)
AGENTLEDGER_SUPERVISOR_TOKEN=als_... AGENTLEDGER_SUPERVISOR_TIER=2 node dist/index.js supervisor

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | AGENTLEDGER_BASE_URL | No | http://127.0.0.1:9119 | AgentLedger API base URL | | AGENTLEDGER_USER_TOKEN | Yes (user) | — | User token (alu_ prefix) | | AGENTLEDGER_SUPERVISOR_TOKEN | Yes (supervisor) | — | Supervisor token (als_ prefix) | | AGENTLEDGER_SUPERVISOR_TIER | No | 1 | Supervisor tier (1-3), controls which tools are exposed |

MCP Client Configuration

Claude Desktop

Add to claude_desktop_config.json:

After npm publish (once the package is on npm):

{
  "mcpServers": {
    "agentledger-user": {
      "command": "npx",
      "args": ["agentledger-mcp", "user"],
      "env": {
        "AGENTLEDGER_USER_TOKEN": "alu_your-token-here"
      }
    },
    "agentledger-supervisor": {
      "command": "npx",
      "args": ["agentledger-mcp", "supervisor"],
      "env": {
        "AGENTLEDGER_SUPERVISOR_TOKEN": "als_your-token-here",
        "AGENTLEDGER_SUPERVISOR_TIER": "2"
      }
    }
  }
}

Before npm publish (local development — use absolute path to the built entry point):

{
  "mcpServers": {
    "agentledger-user": {
      "command": "node",
      "args": ["/absolute/path/to/apps/mcp/dist/index.js", "user"],
      "env": {
        "AGENTLEDGER_USER_TOKEN": "alu_your-token-here"
      }
    }
  }
}

Cursor / Windsurf

Same structure — add the server entries to your MCP configuration file.

Supervisor Tiers

| Tier | Tools | |---|---| | 1 (default) | list_pending_transactions, approve_transaction, deny_transaction, get_transactions | | 2 | + set_budget, credit_budget | | 3 | + update_vault |

Architecture

MCP Client (Claude, Cursor, etc.)
    ↕ stdio (JSON-RPC)
agentledger-mcp (user or supervisor)
    ↕ HTTP (REST)
agentledger serve (localhost:9119)

The MCP servers never store state — they are stateless proxies. All state lives in the AgentLedger server's SQLite database.