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

@hotrepl/mcp

v3.0.0

Published

HotRepl v2 MCP stdio server — expose a running Unity game's REPL and typed commands to MCP-enabled agents.

Readme

@hotrepl/mcp

npm license

Model Context Protocol stdio server for HotRepl. Wire it into any MCP-compatible coding agent so the agent can eval C#, invoke typed commands, and inspect a running Unity game on the user's behalf.

Requirements

  • A Unity game running the HotRepl plugin (BepInEx/Mono) or mod (MelonLoader/IL2CPP). The plugin opens ws://127.0.0.1:18590 by default.
  • Node (the published binary uses #!/usr/bin/env node).
  • An MCP-compatible host application.

Setup

Add an entry to your MCP host's server configuration. The launcher (npx -y @hotrepl/mcp) downloads on first run and caches between launches; no global install is required.

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

To point at a non-default backend, pass HOTREPL_URL via the env block:

{
  "mcpServers": {
    "hotrepl": {
      "command": "npx",
      "args": ["-y", "@hotrepl/mcp"],
      "env": { "HOTREPL_URL": "ws://127.0.0.1:18591" }
    }
  }
}

Restart the host application after editing its config. Consult your host's documentation for the exact config-file location and reload procedure.

Tools exposed

The server registers exactly nine tools — a deliberately small surface so agents can keep the full catalog in context.

| Tool | Description | Annotations | | -------------------------- | ---------------------------------------------------- | ------------- | | hotrepl_info | Return runtime handshake and capability information. | readOnly | | hotrepl_eval | Evaluate C# code in the runtime. | — | | hotrepl_complete | Return completions for C# code. | readOnly | | hotrepl_reset | Reset evaluator state. | — | | hotrepl_list_commands | List typed HotRepl commands. | readOnly | | hotrepl_describe_command | Describe one typed HotRepl command. | readOnly | | hotrepl_run | Run a typed HotRepl command by name. | destructive* | | hotrepl_read_artifact | Read and verify a HotRepl artifact reference. | readOnly | | hotrepl_journal | Query recent eval and command journal entries. | readOnly |

* hotrepl_run starts with conservative MCP-spec defaults (destructiveHint: true). Once the server reaches the backend, a background refresh narrows the annotation to match the actual command set (readOnlyHint: true when all registered commands are read-only) and notifies the host via notifications/tools/list_changed.

Behaviour

  • Boot-time safety. Tool registration is synchronous — the server starts cleanly even when the game isn't running yet. Tool calls return a structured isError envelope ("HotRepl is not reachable…") instead of crashing.
  • Spec-compliant shutdown. stdin EOF (the canonical MCP shutdown signal), SIGTERM, and SIGINT all trigger graceful shutdown. A 2-second watchdog guarantees the process exits even if the backend hangs.
  • stderr-only diagnostics. Per MCP spec, stdout is reserved for JSON-RPC; any human-readable error goes to stderr.

Troubleshooting

| Symptom | Likely cause / fix | | ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Host doesn't show HotRepl's tools | Most often a JSON syntax error in the host's MCP config (missing comma, mismatched bracket). Any syntax error typically disables every server silently. Re-validate the file, then fully quit and re-launch the host. | | Tools call returns "HotRepl is not reachable…" | The Unity game isn't running, or doesn't have the HotRepl plugin/mod loaded. Start the game; the next tool call will succeed. | | Tools call returns "Session was evicted: displaced." | Another client connected and replaced this one. HotRepl is single-client. Close other CLIs/MCP sessions or accept the eviction; the next tool call reconnects. | | Eval/run hangs for >30 s | The Mono.CSharp evaluator may have hit a tight loop. hotrepl_reset can recover; a stuck game may need a restart. |

Reference

License

MIT