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

@jpyc-skill/ec-purchase-mcp

v0.3.0

Published

MCP server that lets any LLM agent (Claude Desktop / Cursor / OpenAI Agents SDK) buy products on JPYC EC Platform via x402 — gasless EIP-3009 payments over HTTP.

Downloads

33

Readme

@jpyc-skill/ec-purchase-mcp

MCP server that lets any LLM agent (Claude Desktop, Cursor, OpenAI Agents SDK, …) buy products on JPYC EC Platform using x402 — gasless EIP-3009 payments over HTTP.

Tools

The tool surface mirrors the EC platform's public /api/v1 routes 1:1 so an agent reading the tool list sees exactly the operations the real service provides. No tool advertises functionality the API does not.

Discovery (read-only, no payment):

| Tool | EC API endpoint | | ---- | --------------- | | list_shops() | GET /api/v1/shops | | list_products_in_shop({ shop_slug }) | GET /api/v1/shops/:slug/products | | get_product({ product_id }) | GET /api/v1/products/:id | | get_product_reviews({ product_id }) | GET /api/v1/products/:id/reviews | | get_nft_discounts({ shop_slug }) | GET /api/v1/shops/:slug/nft-discounts | | get_categories() | GET /api/v1/categories | | get_order_status({ customer_address? }) | GET /api/v1/orders?customer_address= |

Purchase (signs + settles via x402):

| Tool | EC API endpoint | | ---- | --------------- | | purchase_cart({ shop_id, items[], customer_email, ... }) | POST /api/v1/checkout (called twice — challenge then settle) | | purchase_product({ shop_id, product_id, quantity, customer_email, ... }) | thin shim over purchase_cart for a single item |

Both tools accept an optional max_amount_atomic budget cap. The tool refuses to sign if the 402 challenge requires more than this — a strongly recommended guard against agent hijacking.

Before calling either purchase tool: call get_product on each item first. Read requires_shipping and variants and collect the necessary inputs from the user. All items must belong to the same shop_id, and customer_email is required. Skipping these causes the purchase to fail with 400 shipping_required / 400 invalid_variant / 400 shop_mismatch.

Install

npm install -g @jpyc-skill/ec-purchase-mcp   # once published

Or run from source:

git clone https://github.com/Mameta29/jpyc-skill.git
cd jpyc-skill/mcp-servers/jpyc-ec-purchase
npm install && npm run build
node dist/bin.js

Configure (Claude Desktop)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "jpyc-ec-purchase": {
      "command": "npx",
      "args": ["-y", "@jpyc-skill/ec-purchase-mcp"],
      "env": {
        "BUYER_PRIVATE_KEY": "0x...",
        "EC_API_URL": "https://ec.jpyc-service.com"
      }
    }
  }
}

BUYER_PRIVATE_KEY should belong to a wallet you have funded with JPYC on a chain the platform supports (Polygon recommended; cheapest gas, widest JPYC liquidity).

Configure (Cursor / OpenAI Agents SDK)

Use the same stdio launcher; both tools accept arbitrary MCP servers.

Notes

  • Each purchase_cart / purchase_product call signs a fresh EIP-3009 authorization; nothing is reused. Replay is impossible at the contract level.
  • The platform's facilitator (https://facilitator.jpyc-service.com) pays gas for settlement. If you self-host the EC platform, configure your own facilitator URL via that platform's FACILITATOR_URL env var.
  • Supported chains follow JPYC EC Platform's chain registry: Ethereum, Polygon, Avalanche, Sepolia, Amoy, Fuji, Kairos, Arc.
  • Shipping products require a shipping block — the EC layer rejects shipping-required products without an address (400, not 402: paying does not fix a missing address).