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

@jupiterpi/mcp-hot-reload

v0.1.0

Published

Transparent MCP stdio proxy with an in-session restart tool for hot-reloading a dev-mode MCP server

Readme

mcp-hot-reload

NOTICE: This project is vibe-coded. The entire codebase — design, implementation, and tests — was written by an AI coding agent (Claude) from prompted instructions, with human review of the overall approach but not line-by-line. It works and is tested, but treat it accordingly: read the code before trusting it with anything sensitive, and expect the rough edges of a project that hasn't seen much real-world battle-testing yet.

A transparent MCP stdio proxy for developing MCP servers. Point your MCP client at mcp-hot-reload instead of your server directly, and it forwards everything through to your server ("the child") unchanged — except it injects one extra tool, restart_dev_server. Call that tool after editing your server's source, and the proxy swaps in a freshly-spawned copy of it inside the same client session, so your updated tools are available immediately without reconnecting.

There is no file watching. Restart happens only when you (or your agent) explicitly calls the injected tool.

Installation

This package is published to the public npm registry as a scoped package, so no extra authentication or .npmrc setup is needed to install it:

npm install -g @jupiterpi/mcp-hot-reload

Or run it on demand without a global install:

npx -y @jupiterpi/mcp-hot-reload -- <command to run your dev-mode MCP server> [args...]

Usage

mcp-hot-reload [options] -- <command to run your dev-mode MCP server> [args...]

Options:

  • --tool-name <name> — name of the injected restart tool (default: restart_dev_server)
  • --restart-timeout-ms <ms> — timeout for the internal restart handshake (default: 10000)
  • --stderr-tail-lines <n> — lines of dev-server stderr kept for failed-restart reports (default: 200)

Example, wrapping the bundled example server:

mcp-hot-reload -- node examples/dev-server/server.mjs

Install as an MCP server (with a child dev server)

Point your MCP client at mcp-hot-reload instead of at your server directly, passing your server's own command after --. That inner command is the "child" — the dev-mode server you're actively editing.

Using the published package (after installing it globally):

{
  "mcpServers": {
    "my-dev-server": {
      "command": "mcp-hot-reload",
      "args": [
        "--",
        "node",
        "/path/to/my-server/index.js"
      ]
    }
  }
}

Or without a global install, via npx:

{
  "mcpServers": {
    "my-dev-server": {
      "command": "npx",
      "args": [
        "-y",
        "@jupiterpi/mcp-hot-reload",
        "--",
        "node",
        "/path/to/my-server/index.js"
      ]
    }
  }
}

From a local checkout/build (see Development):

{
  "mcpServers": {
    "my-dev-server": {
      "command": "node",
      "args": [
        "/path/to/mcp-hot-reload/dist/cli.js",
        "--",
        "node",
        "/path/to/my-server/index.js"
      ]
    }
  }
}

Once connected, edit my-server's source, then ask the agent to call restart_dev_server. The agent can keep using the same conversation — its next tools/list and tool calls will reflect the updated server.

How it works

The proxy speaks MCP on both sides: StdioServerTransport to the real client, and one StdioClientTransport per dev-server process it manages. Ordinary requests and notifications are forwarded verbatim in both directions.

Calling restart_dev_server triggers a blue/green swap:

  1. Spawn a new child process. The old one keeps running and keeps serving other requests.
  2. Perform an internal initialize/initialized handshake with the new child, replaying the exact protocolVersion/capabilities/clientInfo the real client sent when the session started.
  3. On success: atomically swap the "active child" pointer, fail any requests still in flight against the old child with a "please retry" error, send notifications/tools/list_changed (and the resources/prompts equivalents) to the client, and close the old child.
  4. On failure (the edit broke something): the new process is discarded, the old one is never touched, and the tool call returns isError: true with the captured stderr tail — so a bad edit never takes down your working server. Fix it and call the tool again.

This is legitimate under the MCP spec's "exactly one initialize per session" rule because that rule governs the logical session between the real client and the server — and from the client's point of view, the proxy is the server. What the proxy does internally to the process backing that identity is invisible implementation detail, the same way a connection pool can silently re-establish a dropped backend connection.

If the currently-active child crashes on its own (not via the restart tool), the proxy does not auto-respawn it — that's a different feature from "manual restart only." It fails in-flight requests with a clear error telling you to call the restart tool.

Development

npm install
npm run build   # compile src/ -> dist/
npm test        # unit tests + an end-to-end test driving the built CLI

Manual end-to-end check with the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/cli.js -- node examples/dev-server/server.mjs

Call tools/list and echo, edit the VERSION constant in examples/dev-server/server.mjs while Inspector stays connected, call restart_dev_server, then call tools/list/echo again — the version bump should be visible without reconnecting Inspector.