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

codex-plugin-doctor

v1.92.1

Published

CLI-first validator for Codex plugins, skills, and MCP package surfaces with runtime MCP protocol validation.

Readme

Codex Plugin Doctor

CI npm version License: MIT GitHub release

A CLI that checks Codex plugins, skills, and MCP servers before you ship them: the package, its security, and, if you allow it, the running MCP server.

npx codex-plugin-doctor check path/to/plugin

Point it at a folder with .codex-plugin/plugin.json. A plugin with an API key in its .mcp.json exits with status 1 and this report (recommended commands trimmed):

Codex Plugin Doctor
===================
Status: FAIL
Target: /path/to/plugin
Summary: 1 fail, 0 warn, 1 total

Failures
--------
✖ plugin.security.hard_coded_secret
  Message: The MCP server `dangerServer` contains a hard-coded secret-like env value for `OPENAI_API_KEY`.
  Impact: Hard-coded credentials inside plugin bundles increase leakage risk and make secure rotation difficult.
  Suggested fix: Replace the literal value for `OPENAI_API_KEY` with an environment reference or injected secret outside the package.
  Fingerprint: 21da7c75027f0811929d49253412a0f20694d974f141d0421410c89ee29c8b72
  Evidence: serverName=dangerServer, configPath=.mcp.json, envKey=OPENAI_API_KEY, envValue=[REDACTED]

Add --runtime to also start the plugin's MCP servers and call them. That runs the package's own code, so it is opt-in, and --sandbox docker isolates local Node.js stdio servers. No plugin at hand? npx codex-plugin-doctor check --installed checks the ones in your Codex plugin cache.

What It Checks

  • Package: .codex-plugin/plugin.json, skill wiring and SKILL.md metadata, .mcp.json structure, description quality, hard-coded secrets, and paths that escape the package.
  • Security (security .): a scorecard for shell wrappers, encoded commands, remote content piped into a shell, and plain HTTP transports.
  • Running servers (--runtime): the MCP handshake, then tools, resources, prompts, and pagination, with a scorecard and a conformance report.
  • Breaking changes: MCP snapshots compare tools, prompts, and resource templates with a committed baseline, in a pull request comment and in release notes.
  • Other clients (compat . --all --scorecard): whether the MCP config is valid and can be added to Claude Desktop, Cursor, Cline, and Windsurf on this machine.
  • Remote servers and publishing: opt-in Remote MCP Readiness, MCP Registry Readiness, and an offline public directory preflight.

See the CLI Reference for more commands and examples, codex-plugin-doctor --help for all of them, and codex-plugin-doctor explain <finding-id> for what a rule means.

Install

npm install -g codex-plugin-doctor
codex-plugin-doctor self-test
codex-plugin-doctor check .
codex-plugin-doctor check . --runtime
codex-plugin-doctor mcp path/to/mcp-package

GitHub Action

name: Validate Codex plugin

on:
  pull_request:

permissions:
  contents: read

jobs:
  doctor:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
        with:
          persist-credentials: false
      - uses: Esquetta/[email protected]
        with:
          version: "1.92.1"
          path: .
          runtime: "true"
          policy: codex-publish

runtime: "true" runs the package's code, so this job keeps a read-only token. codex-plugin-doctor init-ci . writes a workflow for you. See GitHub Action Usage for reports, pull request comments, and inputs.

Documentation

1.0 Stability

The 1.0 line is the stable compatibility baseline for plugin authors and CI consumers.

  • Public JSON schema surfaces and existing rule IDs/default severities are treated as stable through 1.0.
  • Runtime probing remains opt-in because it executes package-local MCP servers.
  • New features stay additive unless a major version says otherwise.

See the documentation index for architecture, usage, security, and contributor guides.

Contributing

Contributions are welcome. Start with Contributing, the Security Policy, the Code of Conduct, and the validation tuning issue template. npm run release-check runs the release preflight; see Versioning and Releases.

Support

If this tool saves you time, GitHub stars and sponsorship help signal that the project is worth continuing.

  • Star the repository on GitHub.
  • Use GitHub Sponsors through the repository funding link.
  • Open validation tuning issues for false positives or false negatives.