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

ai-setup-doctor

v0.1.0-beta.0

Published

Diagnose your AI coding setup in one command — agents, rules, MCP configs, secrets risk, and common misconfigurations. Zero dependencies.

Readme

ai-setup-doctor

One command to diagnose why your AI coding setup feels broken.

Rules missing? MCP JSON invalid? .env about to be committed? Secrets pasted into agent rules?
ai-setup-doctor checks the common failure modes and tells you how to fix them.

npx ai-setup-doctor

Why this exists

Developers now juggle Cursor, Claude Code, Copilot, Windsurf, MCP servers, and rule files.
When something fails, the error is rarely obvious. This tool is a health check for your AI workspace — companion to:

| Tool | Job | |------|-----| | mcp-sync | Sync MCP configs | | ai-instruct-sync | Sync rules/instructions | | ai-setup-doctor | Diagnose the whole setup |

What it checks

| Category | Examples | |----------|----------| | runtime | Node.js ≥20, engines.node mismatch | | agents | Cursor, Windsurf, Copilot, Claude, Gemini, Codex, Cline, Zed, Aider, Continue, AGENTS.md — empty shells, multi-agent drift, rule contradictions, empty stubs, legacy .cursorrules, broken .mdc frontmatter | | mcp | Project + user configs, broken JSON/JSONC, empty servers, missing command/url, bad URLs, name collisions, unpinned npx packages, missing commands on PATH | | secrets | .env gitignore, git-tracked secret files, keys in rules/MCP env/args/headers, live keys in .env.example — with docs-sample allowlisting (fewer false positives) | | hygiene | Git worktree (incl. monorepos), README, package.json validity, placeholders (CHANGE_ME), oversized rules, .cursorignore hints |

Scoring applies per-category caps so one bad MCP file with many servers does not alone zero the whole score. Checks are sorted errors → warnings → info → ok.

Safe by design: read-only. Never writes or uploads files.

Install

npm install -g ai-setup-doctor
# or
npx ai-setup-doctor

Usage

# Current directory
ai-setup-doctor

# Another project
ai-setup-doctor check --cwd ~/code/my-app

# CI / scripts
ai-setup-doctor --json
ai-setup-doctor --strict          # exit 1 on warnings too

# Focus / filter
ai-setup-doctor --only secrets,mcp --verbose
ai-setup-doctor --skip runtime --no-user   # project MCP only

CLI options

| Flag | Meaning | |------|---------| | --cwd <dir> | Project directory | | --json | Machine-readable report (includes summary.byCategory) | | --strict | Exit 1 on warnings as well as errors | | --min-score <n> | Exit 1 if score is below n (CI gate) | | --only <list> | Categories: runtime,agents,mcp,secrets,hygiene | | --skip <list> | Skip categories | | --no-user | Ignore user-home MCP configs | | -q, --quiet | Hide ok checks (issues only) | | -v, --verbose | Show categories + details + per-category breakdown |

Example output

ai-setup-doctor — /Users/you/my-app
  ✓ Node.js          Node 22.x
  ✓ AI agents        Detected 2 agent setup(s): Cursor, Claude Code
  ℹ Multi-agent      Rules can drift — run ai-instruct-sync
  ✓ MCP configs      Found 1 MCP config(s)
  ✗ Secrets: .env    .env exists but may not be gitignored
      → Add `.env` to .gitignore immediately
  ✓ Secret scan      No obvious secrets in agent files

Score 75/100

Development

cd ai-setup-doctor
npm install
npm run build
npm test              # tough fixture suite (node:test)
npm run demo          # this package
npm run demo:hard     # all adversarial fixtures + sibling projects

Fixtures under fixtures/ cover broken MCP JSON, leaked keys, instruction drift, empty agent dirs, hardcoded MCP env, rule bloat, and more.

License

MIT