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

@agentpay-ai/mcp-server

v0.1.11

Published

AgentPay MCP server and payment runtime tools.

Readme

@agentpay-ai/mcp-server

AgentPay MCP server and payment runtime tools.

Most users get this package through the CLI:

npx @agentpay-ai/agentpay install
npx @agentpay-ai/agentpay mcp

For public A2MCP deployment, run the Streamable HTTP transport behind an HTTPS domain:

npx @agentpay-ai/agentpay serve-http --host 0.0.0.0 --port 3001

Register the public /mcp URL with OKX.AI, and use /healthz for health checks. The process itself listens over HTTP; terminate TLS at the hosting platform, load balancer, or reverse proxy.

For listing review, enable the OKX Agent Payments Protocol seller gate on /mcp:

AGENTPAY_A2MCP_PAYMENT_ENABLED=true
AGENTPAY_A2MCP_PAYMENT_PAY_TO=0x...
AGENTPAY_A2MCP_PAYMENT_PRICE=$0.01
AGENTPAY_A2MCP_PAYMENT_NETWORK=eip155:196

Provide either OKX facilitator credentials (OKX_APP_API_KEY, OKX_APP_SECRET_KEY, OKX_APP_PASSPHRASE) or AGENTPAY_A2MCP_PAYMENT_FACILITATOR_URL. Unpaid calls receive HTTP 402 with PAYMENT-REQUIRED; paid calls are verified, settled, and returned with PAYMENT-RESPONSE. /healthz is never paywalled.

Tools

The server exposes tools for wallet setup, balance checks, LI.FI route quotes, payment preparation, Review & Sign handoff polling, owner-signed EIP-712 execution, payment tracking, invoice parsing, x402 Bazaar discovery for no-URL paid API requests, x402 parsing plus receipt-proof retry, route target allowance, and account admin transactions. Trusted consumer sessions receive a server-generated Review & Sign URL and canonical typed data; get_payment_signature returns the verified owner signature to the tenant session, which hands it to the public paid ASP's execute_payment tool. Legacy approval text is migration-only. Use search_x402_services and prepare_x402_service_request before parsing when the user describes a paid service without a URL. The x402 retry path sends AgentPay proof as X-PAYMENT / PAYMENT-SIGNATURE, reads V2 PAYMENT-RESPONSE, falls back to X-PAYMENT-RESPONSE, and includes payment-identifier idempotency data when advertised.

Programmatic Usage

import { startAgentPayMcpServer } from "@agentpay-ai/mcp-server";

await startAgentPayMcpServer();
import { startAgentPayHttpServer } from "@agentpay-ai/mcp-server";

await startAgentPayHttpServer({ hostname: "0.0.0.0", port: 3001 });

Configuration

Provide runtime config through AGENTPAY_CONFIG or environment variables such as SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY, XLAYER_RPC_URL, XLAYER_MAINNET_RPC_URL, XLAYER_TESTNET_RPC_URL, EXECUTOR_PRIVATE_KEY, SETUP_WEB_URL, AGENTPAY_REVIEW_TOKEN_SECRET, LIFI_API_KEY, optional X402_BAZAAR_FACILITATOR_URL, and public A2MCP seller-payment variables prefixed with AGENTPAY_A2MCP_PAYMENT_. For mainnet, use only AGENTPAY_ENVIRONMENT=production, AGENTPAY_HOME_CHAIN_ID=196, AGENTPAY_ACCOUNT_VERSION=v2, SUPABASE_PRODUCTION_URL, SUPABASE_PRODUCTION_SERVICE_ROLE_KEY, and XLAYER_MAINNET_RPC_URL; generic/staging aliases are rejected. When running from a published package, set AGENTPAY_MAINNET_MANIFEST_PATH to the copied tracked shadow manifest because the repository-level ops/ directory is not included in the package. Mainnet x402 is pinned to the USDT0 contract, $0.01/10000, and synchronous settlement. The tracked shadow manifest, operator-seeded runtime identity, and read-only on-chain account verifier must all pass before /readyz becomes 200; /healthz is liveness only. Production stdio is disabled, and setup-web refuses a production environment until the deployment gate is implemented.

Review handoffs use the configured secret to store only an opaque token digest; the Supabase service-role key is the local fallback when no dedicated secret is provided. DIRECT_URL_PRODUCTION is migration-admin-only and is never loaded by the application runtime.

Keep service role keys and executor private keys on the server side only.