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

@troqpay/agent-plugin

v0.1.2

Published

MCP server and Codex plugin wrapper for troqpay.

Readme

troqpay plugin

MCP server and Codex plugin wrapper for troqpay.

The plugin exposes payment tools to Codex, Claude Desktop, and other MCP clients:

  • troqpay_create_checkout
  • troqpay_get_checkout
  • troqpay_get_balance
  • troqpay_create_withdrawal when TROQPAY_ENABLE_WITHDRAWALS=true
  • troqpay_get_withdrawal when TROQPAY_ENABLE_WITHDRAWALS=true

API keys are read from environment variables and are not passed as tool inputs.

Environment

export TROQPAY_API_KEY="trq_test_xxxxxxxxx"
export TROQPAY_BASE_URL="https://api.troqpay.com"

For staging:

export TROQPAY_BASE_URL="https://troqpay-api-staging-production.up.railway.app"

Withdrawal tools are disabled by default. Enable them only in trusted server-side environments:

export TROQPAY_ENABLE_WITHDRAWALS="true"

Never store trq_test_ or trq_live_ keys in this package, marketplace manifests, repository files, screenshots, or chat transcripts.

Build

npm install
npm run build

Security model

  • The plugin is a thin MCP client. The troqpay API remains the money-risk enforcement boundary.
  • The plugin vendors only the minimal HTTP client it needs, so public installation does not depend on a local sibling SDK path.
  • API keys stay in the host environment and are never accepted as MCP tool arguments.
  • Checkout experiments should use trq_test_ keys.
  • Live operations require trq_live_ keys and server-side API enforcement for production approval, API-key scopes, idempotency, rate limits and audit logs.
  • Withdrawal tools are opt-in with TROQPAY_ENABLE_WITHDRAWALS=true.
  • Runtime startup does not run npm install; dependencies must be installed as part of the plugin installation/release process.

Public release checklist

Before publishing this plugin outside a local marketplace:

  1. Remove ignored build artifacts and dependency folders from the release source, especially node_modules.
  2. Run npm ci, npm run verify:public, and a clean MCP smoke test from a fresh clone.
  3. Confirm no .env, API keys, provider credentials, database URLs, or local checkout artifacts are committed.
  4. Confirm the public API returns structured errors such as 401, 403, and 503, not raw stack traces.
  5. Keep withdrawal tools disabled by default in marketplace examples.

Claude Desktop

Add this to claude_desktop_config.json:

{
  "mcpServers": {
    "troqpay": {
      "command": "node",
      "args": ["/absolute/path/to/plugins/troqpay/dist/mcp.js"],
      "env": {
        "TROQPAY_API_KEY": "trq_test_xxxxxxxxx",
        "TROQPAY_BASE_URL": "https://api.troqpay.com"
      }
    }
  }
}

Codex

The plugin bundle includes .codex-plugin/plugin.json, .claude-plugin/plugin.json, and .mcp.json. After install, set TROQPAY_API_KEY in the Codex environment before using tools.

The official source repository is:

https://github.com/troqpay/agent-plugin