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

leash-monad-mcp

v0.1.0

Published

MCP server that lets any AI agent pay inside its Leash on Monad: check a seller, see today's budget, pay, or fetch a paid (402) URL. The agent can never spend past what its owner's passkey allowed.

Readme

leash-monad-mcp

An MCP server that lets any AI agent pay for things on Monad without being able to overspend.

The agent's key lives in this server. It can only move money through its Leash account, and the Leash contract checks the owner's limits inside every payment: a daily dollar cap, the sellers it may pay, and an expiry, all set with the owner's passkey. So whatever the model is told, by a user or by a prompt injection, the most it can ever spend is the daily cap.

Tools

| Tool | What it does | |---|---| | check_agent | Would a payment of this size from this agent to this seller go through right now? OK, OVER_CAP, REVOKED, EXPIRED, SELLER_NOT_ALLOWED or UNKNOWN_AGENT, plus what's left today. Needs no key: sellers can use it too | | my_budget | The agent's own leash: owner account, ERC-8004 id, dollars left today | | pay | Pay a seller inside the leash. Checks first and refuses without sending anything if it would break the leash | | fetch_paid | Fetch a URL that charges per call (HTTP 402, Leash gate). Pays the asked price once, inside the leash, and retries. Optional per-call price ceiling |

Set up (two minutes)

  1. Make an agent key:
    npx leash-monad-mcp --new-key
  2. Open leash-monad.vercel.app/own.html, sign in with your passkey and leash the printed address: daily cap, sellers, expiry, and tUSD (demo dollars) or real USDC.
  3. Add it to your MCP client (Claude Desktop, Cursor, …):
    {
      "mcpServers": {
        "leash": {
          "command": "npx",
          "args": ["-y", "leash-monad-mcp"],
          "env": { "LEASH_AGENT_KEY": "0x…" }
        }
      }
    }

Then ask your agent to "buy a forecast from https://leash-monad.vercel.app/api/forecast". It pays $1 inside its leash and gets the answer. Ask it to spend more than the cap and it's refused, by the contract, not by a prompt.

Settings

| Variable | Default | | |---|---|---| | LEASH_AGENT_KEY | none | The leashed agent's private key. Without it only check_agent works | | LEASH_NETWORK | mainnet | mainnet (chain 143) or testnet (10143) | | LEASH_RPC, LEASH_HUB, LEASH_CHAIN_ID, LEASH_EXPLORER | | Point at another deployment (used by the tests) |

Tested

mcp/test/e2e.ts runs the server over stdio against a local chain with Monad's P256 precompile switched on: leash an agent at $4/day, buy from a real Leash-gated API, pay, replay a used payment, then try to overspend every way it can. It was also run against Monad mainnet through the live site (agent 0xD99D…992c, ERC-8004 #10311): three paid forecasts, the fourth refused at the cap, then refused as revoked.

MIT · part of Leash