Grades are a hygiene check, not a security guarantee.

MCP, MCP server

io.github.LeonTing1010/haplane

鸿蒙 HAP 一键签名 · 调试 · 部署 —— CLI + MCP,agent 可驱动。 封装华为官方工具链(hvigorw / hap-sign-tool / hdc),把散在文档里的命令拼成一条可脚本、可 --dry-run、可让 AI 调用的链。零运行时依赖(纯 Node stdlib)。 开源 MIT · 不破解 · 不逆向 · 签名走你自己的 AGC 凭据。

Compatibility: Not stated.

Grade B

Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit bf7da41ab720, unchanged since the check below.

NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ

Why this grade

  • NETWORK_NO_FIXED_HOST Low

    Makes a network call whose host is not written as a fixed address.

    src/agc.mjs, line 21 const r = await fetch(TOKEN_URL, { method: "POST", headers: {

  • NETWORK_UNNAMED_HOST Low

    Calls a fixed host that the description does not name.

    src/agc.mjs, line 21 const r = await fetch(TOKEN_URL, { method: "POST", headers: {

  • SECRETS_PATH_DOTENV Low

    Mentions a .env file.

    install.sh, line 2 # hap-deploy 一键安装:装工具 → 自动探测华为 SDK → 生成配置 + .env 模板。

  • SECRETS_ENV_READ Note

    Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.

    src/agc.mjs, line 15 return { clientId: process.env.AGC_CLIENT_ID || "", clientSecret: process.env.AGC_CLIENT_SECRET || "", token: process.env.AGC_TOKEN || "" }

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Pass

    No shell or command execution found, and no extra permission was declared.

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Concern

    can reach a host that is not written as a fixed address. can reach api.github.com. The description does not name that host.

    NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST

    src/agc.mjs, line 21

    const r = await fetch(TOKEN_URL, { method: "POST", headers: {

    src/agc.mjs, line 33

    const r = await fetch(BASE + path, { method, headers: H(token, clientId), body: body ? JSON.stringify(body) : undefined })

    src/search.mjs, line 8

    // 零运行时依赖:Node ≥18 全局 fetch(默认跟随重定向)。

    Show more

    src/search.mjs, line 31

    const resp = await fetch(url, { headers: { "User-Agent": UA, Accept: "application/json" }, signal: ctl.signal })

    src/search.mjs, line 150

    const resp = await fetch(app.hap, { headers: { "User-Agent": UA, Range: `bytes=${pos}-${Number.isFinite(end) ? end : ""}` }, signal: ctl.signal })

    .github/workflows/registry-watch.yml, line 38

    const r = await fetch(`https://api.github.com/repos/${repo}/releases?per_page=1`, { headers: { authorization: `Bearer ${process.env.GH_TOKEN}`, "user-agent": "haplane-registry-watc

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    install.sh, line 2

    # hap-deploy 一键安装:装工具 → 自动探测华为 SDK → 生成配置 + .env 模板。

    install.sh, line 24

    ① .env 填密码:HAP_KEY_PWD / HAP_KEYSTORE_PWD(自动加载,不用 export)

    src/agc.mjs, line 15

    return { clientId: process.env.AGC_CLIENT_ID || "", clientSecret: process.env.AGC_CLIENT_SECRET || "", token: process.env.AGC_TOKEN || "" }

    Show more

    src/cli.mjs, line 50

    if (!v) die(`环境变量 ${envName} 未设置(${label})。密码不入配置,写进 .env(自动加载)或 export ${envName}=***`)

    src/cli.mjs, line 53

    // 自动加载 .env(不覆盖已有环境变量) - - 密码不用手动 export

    src/cli.mjs, line 155

    const envPath = resolve(".env")

    src/cli.mjs, line 158

    ok(`已生成 ${c("cyn", ".env")} 模板`)

    src/cli.mjs, line 162

    if (sdkOk && matOk) ok(c("bold", c("grn", "SDK + 签名材料全自动就绪 ✓ 唯一手填:.env 里的 keystore 密码(明文,hap-sign-tool 硬要;见下)")))

    src/cli.mjs, line 165

    log(c("dim", " 然后:填 .env 密码 → hap-deploy sign --in <第三方.hap> → verify → install"))

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Pass

    No encoded or minified payload found.

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit bf7da41ab720. can reach a host that is not written as a fixed address. can reach api.github.com. The description does not name that host. reads a credential or environment file.

Date and source

Date checked:

View source

github.com

Commit graded: bf7da41ab7208c2ebb91966ccfa29c48bde589f3

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen