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

hintlint

v0.1.1

Published

Verify MCP tool annotations match actual behavior. Detect annotation drift in Model Context Protocol servers.

Readme


MCP servers declare tool annotations — readOnlyHint, destructiveHint, openWorldHint — that tell agent runtimes which tools need human approval. Nothing verifies these annotations are accurate. HintLint does.

It reads the source code, detects what each tool actually does, and reports where annotations don't match behavior. A tool that calls iam.delete_access_key() but omits destructiveHint means the agent skips confirmation on an irreversible action.

In a 20-repo pilot, HintLint confirmed 23 annotation mismatches at 82% precision, including 19 AWS tools performing destructive cloud operations without destructiveHint.

Install and Run

npx hintlint ./my-mcp-server
# CI mode — exit 1 on high-severity findings
npx hintlint ./my-mcp-server --ci --fail-on high

# SARIF for GitHub Security tab
npx hintlint ./my-mcp-server --format sarif --output hintlint.sarif

Zero dependencies. Node.js 20+.

GitHub Action

- uses: complira/hintlint@v0
  with:
    target: .
    fail-on: high
    upload-sarif: "true"
    pr-comment: "true"

Also works with GitLab CI, Jenkins, Azure DevOps, CircleCI.

What It Finds

| ID | What's Wrong | Severity | |----|-------------|----------| | READONLY-001 | Says readOnlyHint=true, source shows writes | High | | DESTRUCTIVE-001 | Calls destructive API, no destructiveHint | High | | OPEN-WORLD-001 | Says openWorldHint=false, makes external calls | Medium | | FLOW-PROCESS-001 | User input reaches exec() / subprocess.run() | Critical | | FLOW-QUERY-001 | User input reaches raw SQL without binding | Critical | | FLOW-URL-001 | User input controls outbound URL | High | | FLOW-FILESYSTEM-001 | User input reaches file write without path check | High | | FLOW-CONNECTION-001 | User input in connection string without sanitizer | High |

Full details with CWE IDs and repair guidance: Finding Reference

How It Works

Source Code
    |
    v
 Extract tools        TypeScript, JavaScript, Python
    |
    v
 Detect sinks         10 categories (DB, filesystem, HTTP, process, cloud, ...)
    |
    v
 Compare annotations  Declared vs verified behavior
    |
    v
 Report drift         Terminal, JSON, SARIF 2.1.0, Registry artifact
    |
    v
 CI policy            Fail only on source-backed findings (L3/L4)

Only findings with handler-scoped source evidence can fail your build. Metadata-only guesses never block CI.

Language Support

| Language | Handler Resolution | |----------|--------------------| | TypeScript / JavaScript | 88% | | Python | 100% |

Output Formats

| Format | Use Case | |--------|----------| | Terminal | Developer review | | JSON | Programmatic consumption | | SARIF 2.1.0 | GitHub Security, Defect Dojo, SIEM | | Registry artifact | MCP gateway trust metadata |

Documentation

| | | |---|---| | FAQ | Common questions, comparisons | | CLI Reference | Flags, config, exit codes | | Finding Reference | Every finding, CWE, repair guidance | | CI Integration | GitHub, GitLab, Jenkins, Azure DevOps, CircleCI | | Enterprise Usage | Pre-registry scanning, catalog management, continuous monitoring | | Registry Artifact | Gateway integration format | | Findings Report | Validated pilot results with methodology |

Contributing

See CONTRIBUTING.md. Zero-dependency policy is intentional.

License

Apache 2.0 — LICENSE | Security issues — SECURITY.md