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

huaweicloud-mate

v0.0.3

Published

huaweicloud-mate — Huawei Cloud Agent Plugin. Tool Router + MCP + KooCLI + Skills for AI agents.

Readme

huaweicloud-mate

华为云 Agent 插件 — Tool Router + MCP + KooCLI + Skills

架构

Agent (OpenCode / Claude Code / Codex)
  │  MCP stdio JSON-RPC
  ▼
huaweicloud-mate Router (5固定工具)
  ├── cloud_capability_search   → 搜索 15,475 能力 (210 产品)
  ├── cloud_capability_describe → 获取能力详情 + 参数 schema
  ├── cloud_targets_status      → 凭证状态 + 执行器健康
  ├── cloud_action_plan         → 高风险操作生成 plan_token
  └── cloud_action_execute      → 分发到 MCP 或 KooCLI 执行

安装

npm install huaweicloud-mate

配置

# 凭证文件 (~/.hcloud/credentials)
cat > ~/.hcloud/credentials << 'EOF'
[default]
huaweicloud_access_key = YOUR_AK
huaweicloud_secret_key = YOUR_SK
huaweicloud_region = cn-north-4
EOF
chmod 600 ~/.hcloud/credentials

KooCLI 在插件首次启动时自动下载安装(SHA-256 校验)。

注册到 Agent

OpenCode: opencode mcp add huaweicloud-mate -- node /path/to/dist/router/index.js

Claude Code / Codex:mcp.json 中添加:

{
  "huaweicloud-mate": {
    "command": "node",
    "args": ["/path/to/dist/router/index.js"]
  }
}

开发

# 构建
npm run build

# 生成全量能力索引 (从 KooCLI 扫描)
npm run build:catalog

# 端到端测试
bash scripts/e2e-test.sh

项目结构

src/router/index.ts           Router 入口 (5 MCP tools)
src/router/catalog.ts         能力目录 (15,475 条 / 210 产品)
src/router/executor-router.ts MCP + KooCLI 双执行器
src/router/koocli-installer.ts KooCLI 自动安装
src/router/policy.ts          风险分级 + plan_token
src/router/credential.ts      ~/.hcloud/credentials
src/router/audit.ts           JSONL 审计日志
src/mock/ecs-mock-server.ts   Mock MCP Server
data/capability_index.json    能力索引 (npm run build:catalog 生成)
scripts/build-capability-index.py  全量能力扫描脚本
skills/general_skill.md       Agent 操作指南
adapters/                     Claude/Codex/OpenCode 配置模板