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

@cloudcart/site-diagnostics

v0.6.2

Published

Read-only MCP server with 8 diagnostic tools scoped to one CloudCart site: domain → site_id resolution, plus inspection of errors, job queue state, payment-gateway / shipping / email / import / export logs.

Readme

@cloudcart/site-diagnostics

Read-only MCP server with 8 diagnostic tools scoped to one CloudCart merchant store. Used by the CloudCart support / debugging agents to investigate one store's state — errors, job queue, payments, shipping, emails, imports, exports — without ever issuing a write.

Tools

| Tool | Purpose | |---|---| | find_site_by_domain | Resolve a storefront domain to a numeric site_id. Call first when only the domain is known. | | search_site_errors | Recorded errors with source enum (exceptions / payment_errors / warnings / all) and mode (summary default, list for drill-down). | | inspect_site_queue | Job queue state per site; with a queue arg, also queue-global totals + FIFO position. | | search_site_payments | Payment-gateway request/response per payment_id. Embeds payment_status, provider, amount, currency, order_ref. | | search_site_shipping | Courier API request/response per order_id. | | search_site_emails | Outbound email log, incl. 2FA verification codes. | | search_site_imports | Import-task outcomes (total/created/updated/unchanged/errors). | | search_site_exports | Export-task status. |

All tools are strictly read-only by code (find / aggregate / count for Mongo; parameterised SELECT for MySQL). Lean by default — heavy fields (full stack traces, request/response payloads, PII) are gated behind include_trace / include_payload for drill-down only.

Wiring as an MCP server

{
  "mcpServers": {
    "site-diagnostics": {
      "command": "npx",
      "args": ["-y", "@cloudcart/site-diagnostics@latest"],
      "env": {
        "MONGO_LOGS_URI": "mongodb://logging:<password>@<host>:27017/logging?authSource=logging",
        "QUEUE_DB_URI": "mongodb://queue:<password>@<host>:27017/queue?authSource=queue",
        "ROUTER_DB_HOST": "<host>",
        "ROUTER_DB_USER": "router",
        "ROUTER_DB_PASSWORD": "<password>",
        "ROUTER_DB_NAME": "eu_cc_router"
      }
    }
  }
}

See .env.example for the full configuration reference, including guidance on internal vs public hosts and the directConnection=true flag for the queue replica set when connecting from outside the cluster.

Local install

npm install @cloudcart/site-diagnostics
# or run directly without install:
npx -y @cloudcart/site-diagnostics

For local development you can drop a .env file next to index.js (gitignored) instead of passing the values via the MCP host's env block.

Response shape

Responses are compact JSON (no pretty-print), default limit: 5, default since: "7d". A typical exploration flow (domain → site_id → grouped errors → list → single full trace) totals around 3,000 tokens.

Requirements

Node 18+.