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

whistle-mcp-server

v1.0.11

Published

MCP server for whistle network proxy and capture

Readme

whistle-mcp-server

MCP server for running whistle, capturing requests, exporting decoded results, and setting JSON mock hooks.

Requirements

  • Node.js 18 or newer
  • A client that can run stdio MCP servers

whistle is bundled as a package dependency, so users do not need to install w2 globally. If you prefer a local/global whistle binary, set WHISTLE_BIN.

MCP Config

Use with npx:

{
  "mcpServers": {
    "whistle_proxy": {
      "command": "npx",
      "args": ["-y", "whistle-mcp-server"],
      "env": {
        "WHISTLE_MCP_WORKDIR": "/absolute/path/to/your/workdir"
      }
    }
  }
}

Use a locally installed package:

{
  "mcpServers": {
    "whistle_proxy": {
      "command": "whistle-mcp-server",
      "env": {
        "WHISTLE_MCP_WORKDIR": "/absolute/path/to/your/workdir"
      }
    }
  }
}

Environment Variables

  • WHISTLE_MCP_WORKDIR: directory for generated files such as capture-results/ and mock-hooks/. Defaults to the MCP process current working directory.
  • WHISTLE_MCP_OUTPUT_DIR: alias for WHISTLE_MCP_WORKDIR.
  • WHISTLE_BIN: optional path to w2 or whistle. Defaults to the bundled whistle CLI.

Tools

  • start-whistle: start whistle on a port, default 8899.
  • start-capture: start polling whistle network records with optional filters.
  • get-capture-results: export captured requests to JSON. Relative filePath values are written under WHISTLE_MCP_WORKDIR.
  • set-mock-hook: write a JSON value and add a managed whistle rule.
  • clear-mock-hooks: clear all mock hooks generated by this MCP server.
  • get-status: return whistle and capture status.
  • stop-whistle: stop whistle.

Mock Hook Example

Call set-mock-hook with:

{
  "urlRegex": "/[?&]functionId=queryMessagesV1326(&|$)/",
  "valueName": "mock.json",
  "mockJson": {
    "code": "0",
    "data": []
  }
}

The server writes the JSON into whistle Values and generates this managed rule:

/[?&]functionId=queryMessagesV1326(&|$)/ file://{mock.json}

Use clear-mock-hooks to remove generated mock rules when debugging is done.

Local Package Test

Before publishing:

npm run build
npm pack
mkdir -p /tmp/whistle-mcp-test
cd /tmp/whistle-mcp-test
npm init -y
npm install /path/to/whistle-mcp-server-1.0.11.tgz
WHISTLE_MCP_WORKDIR="$PWD" npx whistle-mcp-server

For MCP-client testing, configure the installed whistle-mcp-server command in a fresh project directory and verify start-whistle, set-mock-hook, and get-capture-results.