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

openclaw-mcsmanager-plugin

v0.1.5

Published

OpenClaw 的 MCSManager 插件,让你在openclaw中更优雅的管理MCSManager的Minecraft服务器或其他游戏服务器

Readme

openclaw-mcsmanager-plugin

一个面向 OpenClaw 的 MCSManager 插件,用于在对话中管理 Minecraft 服务器或其他由 MCSManager 托管的实例。

当前版本聚焦于最常用的实例管理能力:查看仪表盘概览、获取节点 daemonId、查询实例、查看实例详情、启动/停止/重启实例,以及向实例发送控制台命令。

特性

  • 支持读取 MCSManager 仪表盘概览与节点信息
  • 支持查询实例列表和实例详情
  • 支持启动、停止、重启实例
  • 支持向实例发送控制台命令
  • 支持插件配置、插件目录 .env、系统环境变量三种配置来源
  • Skill 已按模块拆分,便于后续扩展文件管理、节点管理、镜像管理等功能

已实现能力

仪表盘管理

  • mcsmanager_overview 获取面板概览,并提取节点 daemonId

实例管理

  • mcsmanager_instance_list 根据 daemonId 获取实例列表
  • mcsmanager_instance_detail 获取单个实例详情
  • mcsmanager_instance_start 启动实例
  • mcsmanager_instance_stop 停止实例
  • mcsmanager_instance_restart 重启实例
  • mcsmanager_instance_command 向实例发送控制台命令

Skills

项目将 agent 使用说明拆分为两个模块化 skill:

建议:

  • 涉及面板概览、节点、daemonId 获取时,优先阅读 mcsmanager-dashboard
  • 涉及实例状态、启停重启、发送命令时,优先阅读 mcsmanager-instance

安装

方式一:从本地路径安装

适合开发或自托管部署:

cd /path/to/openclaw-mcsmanager-plugin
npm install
npm run build
openclaw plugins install /path/to/openclaw-mcsmanager-plugin
openclaw gateway restart

方式二:通过 npx 安装

npx -y openclaw-mcsmanager-plugin install

该命令会:

  1. 清理当前用户 .openclaw 中这个插件的陈旧配置键
  2. 从 npm 安装插件
  3. 补回插件允许列表与启用状态
  4. 自动重启 OpenClaw Gateway

方式三:更新已安装插件

如果你已经安装过旧版本,可以直接使用:

npx -y openclaw-mcsmanager-plugin update

该命令会:

  1. 先清理 plugins.allowplugins.entries 中的旧记录
  2. 调用 openclaw plugins uninstall openclaw-mcsmanager-plugin --force
  3. 清理残留的 plugins.installs 记录和旧扩展目录
  4. 设置 npm 官方 registry
  5. 从 npm 重新安装插件
  6. 补回插件允许列表与启用状态
  7. 自动恢复插件目录内已有的 .env
  8. 自动重启 OpenClaw Gateway

配置

插件不会在单次工具调用时手动接收 baseUrl / apiKey
必须先提供默认配置,相关工具才会注册。

配置优先级如下:

  1. plugins.entries.openclaw-mcsmanager-plugin.config
  2. 插件根目录 .env
  3. 系统环境变量 MCSMANAGER_BASE_URL / MCSMANAGER_API_KEY

OpenClaw 配置示例

{
  "plugins": {
    "entries": {
      "openclaw-mcsmanager-plugin": {
        "enabled": true,
        "config": {
          "baseUrl": "http://127.0.0.1:23333",
          "apiKey": "your-api-key",
          "timeoutMs": 15000
        }
      }
    }
  }
}

.env 示例

.env 放在插件安装目录,例如:

~/.openclaw/extensions/openclaw-mcsmanager-plugin/.env

内容如下:

MCSMANAGER_BASE_URL=http://127.0.0.1:23333
MCSMANAGER_API_KEY=your_api_key
MCSMANAGER_TIMEOUT_MS=15000

环境变量示例

export MCSMANAGER_BASE_URL="http://127.0.0.1:23333"
export MCSMANAGER_API_KEY="your_api_key"
export MCSMANAGER_TIMEOUT_MS="15000"

工作原理

插件内部会统一处理 MCSManager 的鉴权与请求细节:

  • apikey 通过 URL Query 传递
  • 自动添加 X-Requested-With: XMLHttpRequest
  • 自动添加 Content-Type: application/json; charset=utf-8

如果默认配置缺失,插件会进入待机状态,不注册工具,并在日志中提示需要补齐配置。

项目结构

openclaw-mcsmanager-plugin/
├── openclaw.plugin.json
├── package.json
├── README.md
├── skills/
│   ├── mcsmanager/
│   │   └── SKILL.md
│   ├── mcsmanager-dashboard/
│   │   └── SKILL.md
│   └── mcsmanager-instance/
│       └── SKILL.md
├── src/
│   ├── client.ts
│   ├── index.ts
│   └── tools/
│       ├── instances.ts
│       ├── overview.ts
│       └── shared.ts
└── tsconfig.json

开发

安装依赖:

npm install

类型检查:

npm run check

构建:

npm run build

发布

项目已包含基于 Git tag 的 npm 自动发布工作流:

触发方式:

git tag v0.1.0
git push origin v0.1.0

工作流会自动:

  1. 安装依赖
  2. 校验 package.json.version 与 tag 一致
  3. 执行构建
  4. 发布到 npm

发布前需要在 npm 后台为当前 GitHub 仓库配置 Trusted Publishing。

路线图

  • 文件管理
  • 节点管理
  • 镜像管理
  • 用户管理
  • 输出日志读取
  • 批量实例操作

参考文档

License

MIT