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

hdkitservice

v0.0.5

Published

Huawei Cloud Agent - MCP plugin for managing cloud resources

Readme

hdkitservice — Huawei Cloud Agent Plugin

操作华为云资源的 MCP 插件。支持 ECS/OBS/VPC 等服务的自然语言查询与管理。

安装

方式 1: 远端 Agent(零安装)

在 opencode 配置文件(opencode.json 或 ~/.config/opencode/opencode.json)添加:

{
  "mcp": {
    "hdkitservice": {
      "type": "remote",
      "url": "http://113.45.151.224:3000/mcp",
      "enabled": true,
      "timeout": 300000
    }
  }
}

重启 opencode 即可使用。

方式 2: npm 全局安装(自动管理凭据)

npm install -g hdkitservice

opencode 配置:

{
  "mcp": {
    "hdkitservice": {
      "type": "local",
      "command": ["hdkitservice"]
    }
  }
}

npm 方式会自动缓存 JWT 到 ~/.hdkitservice/jwt,无需手动传 token。

使用

插件提供以下 MCP 工具:

| 工具 | 用途 | 示例 | |------|------|------| | huaweicloud_auth | 认证,获取 JWT | huaweicloud_auth(ak="...", sk="...", region="cn-south-1") | | huaweicloud_set_credentials | 更新 AK/SK | 更新后旧沙箱自动销毁 | | huaweicloud_voucher_status | 查代金券状态 | 返回 {claimed, amount} | | huaweicloud_voucher_claim | 领取代金券 | 一人一次,重复调用提示已领取 | | huaweicloud_invoke | 操作华为云资源 | huaweicloud_invoke("查 cn-south-1 的 ECS") |

首次使用

1. 认证 hdkitservice <AK> <SK> cn-south-1
   → 自动检查代金券,未领会询问是否领取

2. 查 ECS
   → Sandbox 自动拉起,返回资源列表

无 AK/SK(Mock 模式)

认证 hdkitservice    ← 不提供 AK/SK
查 ECS               ← 返回 mock 数据
设置凭据 <AK> <SK>   ← 随时可升级为真实查询

架构

opencode (本地) ──MCP──▶ hdkitservice (CCE) ──K8s──▶ Sandbox Pod ──▶ 华为云 API
                              │
                       ┌──────┴──────┐
                    Redis(DCS)   MySQL(RDS)
                    临时数据      持久记录
  • hdkitservice: Express.js MCP Server, 部署于华为云 CCE
  • Sandbox: 按需创建的 K8s Job, 含 opencode + huaweicloud-mate + KooCLI
  • Redis (DCS): 用户会话、Job 状态缓存 (TTL 24h/30min)
  • MySQL (RDS): 代金券领取记录 (永久)

开发

git clone [email protected]:huaweicloud-mate/huaweicloud-mate.git -b dev_poc
cd huaweicloud-mate
npm install

# 本地启动云端服务
npm start

# 本地测试本地代理
node bin/hdkitservice.js

发布

npm version patch
git push origin dev_poc --tags   # CI 自动发布到 npm

License

MIT