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

pendulum-mcp-dispatcher

v1.0.1

Published

MCP forwarding layer for Pendulum — proxies requests to Minecraft MCP server

Readme

Pendulum MCP Dispatcher

Pendulum MCP dispatcher layer — a transparent proxy between AI clients and the Minecraft MCP server.

What is Pendulum MCP?

Pendulum is a Minecraft mod that exposes in-game actions as tools via an MCP (Model Context Protocol) server. It allows AI agents to interact with the Minecraft world by calling these tools.

Currently, Pendulum support both Data Mode and Visual Mode tools. Data Mode provides JavaScript APIs for direct control (like Playwright.js), while Visual Mode allows agents to interact with the game through screenshots and simulated input.

For more details, see the Pendulum GitHub repository, you can also get compiled jars from CurseForge and Modrinth. Also you can refer to Documentation for the complete tool list and usage instructions.

Why a Dispatcher Layer

Pendulum's MCP server runs inside the Minecraft game (TCP port 25566). When the game is not running, AI clients (such as VS Code Copilot, Claude Desktop) cannot discover the tool list, causing context errors.

This dispatcher layer solves the problem:

  • Static tool descriptions: Built-in complete definitions for 22 tools, so AI clients can see all tools even when the game is not running
  • Health check: Verifies backend connectivity before every call; returns a clear error message when unreachable
  • Transparent forwarding: Once the backend is ready, all requests are forwarded as-is with zero performance loss

Installation

npm install -g pendulum-mcp-dispatcher

Or use npx to run it on-the-fly without installing:

npx pendulum-mcp-dispatcher

Usage

# Default connection to localhost:25566
pendulum-mcp-dispatcher

# Or via npx
npx pendulum-mcp-dispatcher

# Custom backend address
PENDULUM_HOST=192.168.1.100 PENDULUM_PORT=25566 pendulum-mcp-dispatcher

Configuring AI Clients

VS Code Copilot

In .vscode/mcp.json:

{
  "servers": {
    "pendulum": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pendulum-mcp-dispatcher"],
      "env": {
        "PENDULUM_HOST": "localhost",
        "PENDULUM_PORT": "25566"
      }
    }
  }
}

Claude Desktop

In claude_desktop_config.json:

{
  "mcpServers": {
    "pendulum": {
      "command": "npx",
      "args": ["-y", "pendulum-mcp-dispatcher"],
      "env": {
        "PENDULUM_HOST": "localhost",
        "PENDULUM_PORT": "25566"
      }
    }
  }
}

Workflow

AI Client (Copilot/Claude)
       │
       │ stdio (MCP protocol)
       ▼
┌──────────────────────────┐
│  Pendulum Dispatcher      │  ← You are here
│  - Static tool list       │
│  - Health check           │
│  - Request forwarding     │
└────────┬─────────────────┘
         │
         │ TCP (JSON-RPC 2.0)
         ▼
┌──────────────────────────┐
│  Minecraft + Pendulum     │
│  (localhost:25566)        │
└──────────────────────────┘

Error Handling

When Minecraft is not running, the AI client will receive:

Pendulum MCP server is not reachable (127.0.0.1:25566).

Reason: Connection timed out — Minecraft may not be running

Please ensure:
1. Minecraft is running
2. The Pendulum mod is installed
3. MCP server is started: /pendulum mcp start

Then retry your request.

Notes

  • No automatic game launch: You need to manually start Minecraft and run /pendulum mcp start, you can also make it run on game launch by configuring.
  • Independent connection per request: Uses short-lived connections to avoid state issues with persistent TCP connections
  • 120s timeout: The script/eval timeout matches the backend