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

@diffpulse/mcp

v0.2.0

Published

DiffPulse MCP server — expose PR risk checks to AI dev tools

Readme

@diffpulse/mcp

MCP server for deterministic git diff checks in Cursor and other AI tools.

DiffPulse runs policy checks against your local git diff and returns structured findings. Your editor's AI explains and fixes them. DiffPulse does not call OpenAI, Anthropic, or other hosted AI providers.

What this is

  • An MCP wrapper around the same engine as diffpulse check
  • Structured JSON findings for AI-assisted review
  • Local git only — no GitHub or Azure DevOps API for diff collection

What this is not

  • Not an AI reviewer (your editor's model interprets the output)
  • Not a GitHub App requirement
  • Not a hosted service

How it works with Cursor

  1. You check out a branch and open the repo in Cursor
  2. You ask: "Review my staged changes with DiffPulse before I commit."
  3. Cursor calls diffpulse_review_diff
  4. DiffPulse returns structured findings with target, baseRef, branch, filesChanged, and findings
  5. Cursor explains the issues and helps you fix them

Example prompts:

  • "Review my staged changes with DiffPulse before I commit."
  • "Review my local changes with DiffPulse."
  • "Review this branch with DiffPulse against main."

DiffPulse reviews local git diffs only. Hosted PR targets (github-pr, azure-pr) may be added later but are not required for local workflows.

Secrets redaction

The secrets_in_diff check redacts credential values in all MCP responses. Raw secrets never appear in findings, report, or narrativeSummary JSON.

Install

npx -y @diffpulse/mcp

Or add as a dev dependency:

npm install -D @diffpulse/mcp

Full setup guide: diffpulse.dev/docs/mcp

Cursor configuration

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "diffpulse": {
      "command": "npx",
      "args": ["-y", "@diffpulse/mcp"]
    }
  }
}

Set cwd to your repository root if the server should evaluate a specific project.

Tools

| Tool | Purpose | |------|---------| | diffpulse_review_diff | Review local git diff — primary tool | | diffpulse_check | Alias for diffpulse_review_diff | | diffpulse_policy_summary | Summarize .diffpulse/policy.yaml | | diffpulse_explain_report | Deterministic narrative from a report (no external AI) |

diffpulse_review_diff

Reviews local git diffs. Auto-detects target when omitted (staged → unstaged → branch).

Returns top-level target, baseRef, branch, filesChanged, findings, plus summary, checks, and full report (schema v2).

| Input | Description | |-------|-------------| | target | staged, unstaged, all-local, or branch (optional — auto-detect when omitted) | | baseRef | Base git ref for branch target (implies target=branch when target omitted) | | includeSummary | Include narrativeSummary string (default: false) |

Legacy mode and scope parameters remain supported as aliases.

Recommended workflow

  1. npx @diffpulse/cli init — scaffold policy (once per repo)
  2. Add MCP config above to Cursor
  3. Check out feature branch, commit changes
  4. Ask Cursor: "Review this branch with DiffPulse against main."
  5. Fix findings, rerun diffpulse check, merge when clean

CLI equivalent

diffpulse check --format json       # ≈ diffpulse_review_diff (auto-detect)
diffpulse check --target branch --base main
diffpulse check --staged            # ≈ target: staged

Links

License

MIT