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

mcp-server-plugin

v1.0.9

Published

MCP server that exposes local device controls for humidistat, light controller, and smoke detector

Readme

MCP Device Gateway

基于 Model Context Protocol (MCP) 将三款本地设备封装为工具,方便在支持 MCP 的模型中直接读写设备状态。

支持设备

  • Humidistat_HM 除湿机
  • LightController_HYIO4440S 照明控制器
  • SmokeDetector_YWT04S_R4 烟雾探测器

启动

cd mcp-server
npm install   # 首次运行需要
npm start

服务器通过 STDIO 与 MCP 客户端通讯,因此在 Cursor / MCP Playground 等工具中配置:

{
  "mcpServers": {
    "device-gateway": {
      "command": "node",
      "args": ["D:\\WSYProjects\\MCPtext\\mcp-server\\index.js"],
      "cwd": "D:\\WSYProjects\\MCPtext\\mcp-server"
    }
  }
}

可用工具

| 名称 | 作用 | | --- | --- | | humidistat_read_metrics | 读取湿度、温度、上下限、模式、电源状态 | | humidistat_set_limits | 设置湿度上下限(可单独设置某一项) | | humidistat_set_mode | 以枚举或寄存器值设置运行模式 | | humidistat_set_power | 控制除湿机电源开关 | | light_controller_get_state | 查询照明控制器当前状态 | | light_controller_set_status | 控制照明设备开关 | | smoke_detector_get_status | 查询烟雾探测器报警/正常状态 |

注意事项

  • 服务器会读取各设备目录下的 config.json,请提前配置串口/IP。
  • 写指令会立即下发到硬件,使用前应确认已正确接线并具备权限。
  • 若读取失败,可查看设备目录 tools 下的适配器日志定位串口/网络问题。