HuaweiCloud DevKit (Community Preview)

io.github.glqff由 GitHub 帳號 glqff 發布v1.1.1更新於 Oct 24, 2026

Community preview of HuaweiCloud DevKit MCP server (official: io.github.huaweicloud)

已驗證Streamable HTTP可網頁執行雲端與基礎設施開發者工具安全與監控

概覽

AI 產生的概覽

華為雲 DevKit 的社群預覽版:為 AI 程式開發助理提供華為雲操作指引、KooCLI 工具與安全防護機制。

可以做什麼
  • 取得 ECS、OBS、VPC、RDS、GaussDB、FunctionGraph、APIG、CCE 等 20 多項華為雲服務的逐步操作指引
  • 執行華為雲 CLI(KooCLI)指令,並透過 CLI、API 或 SDK 路由存取其餘服務
  • 透過認證工具管理憑證並在工作階段中切換帳號
  • 檢查區域與服務可用性,並在執行前針對公開暴露、憑證外洩與破壞性操作進行風險檢查
  • 將 Web 應用程式部署到臨時沙箱執行環境並取得公開預覽網址
適用情境
當 AI 程式開發助理需要操作華為雲資源時使用,例如建立或檢視雲端服務、執行 KooCLI 指令、快速部署 Web 應用程式,並希望寫入操作在執行前取得明確同意。
執行需求
需要 Node.js 22 或更新版本以執行以 npx 為基礎的安裝程式與 MCP 伺服器;需要華為雲帳號,並透過 auth init 指令設定 AK/SK;需要可連線華為雲服務的網路,可選擇設定 HTTP/HTTPS 代理。清單列出遠端端點,但 README 描述的是本機 npx 與 localhost 遠端方式。
安裝前請注意
寫入操作在設計上需要使用者明確核准,但仍可能變更或刪除雲端資源。請勿將自己的 AK/SK 寫入 MCP 設定的 env 欄位;HW_ACCESS_KEY 與 HW_SECRET_KEY 僅供平台或 CI 注入。本機啟動的遠端伺服器沒有內建認證,請勿公開暴露到網際網路。匿名遙測預設開啟,可用 HUAWEICLOUD_DEVKIT_TELEMETRY=off 關閉。此為社群預覽版,並非華為雲官方套件。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 HuaweiCloud DevKit (Community Preview),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.glqff%2Fhuaweicloud-devkit/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "huaweicloud-devkit-community-preview": {
      "type": "http",
      "url": "https://erx5uqu4-8931.cn-north-4-bridge.myhuaweicloud.com/mcp"
    }
  }
}

README

HuaweiCloud DevKit

[Discussions] [License] [CI] [npm version] [Beta]

中文 | English

Help AI coding agents use Huawei Cloud safely and accurately — a single integration that gives agents cloud knowledge, CLI tooling, and safety guardrails.

Supports OpenCode, Codex, CodeArts Agent, WorkBuddy, DeepSeek Harness (DSH), OfficeAce, Hermes, OpenClaw, and AtomCode.

Prerequisites

  • Node.js >= 22

China mainland users: If you experience slow downloads or connection issues with the default npm registry, configure the Huawei Cloud npm mirror:

bash
npm config set registry https://mirrors.huaweicloud.com/repository/npm/

Restore the default registry: npm config delete registry

Mirror lag: npm mirrors (npmmirror, mirrors.huaweicloud.com) may lag behind the official registry for hours after a new release. If install fails with ETARGET or you get an older version, install via the official registry instead:

bash
npx --yes --registry=https://registry.npmjs.org huaweicloud-devkit install --target <target>

Quick Start

If --target is omitted, the installer auto-detects agents on your machine:

  • None detected: interactive terminals ask what you want (install to one explicit target / install to all / wire up a generic MCP agent); non-interactive shells error out with the supported target list.
  • One detected: installs directly to it.
  • Multiple detected: interactive terminals show a multi-select chooser; non-interactive shells error and point at --target <agent> / --target all. For a one-shot full setup, run npx --yes huaweicloud-devkit install --target all (Codex is skipped when its CLI is missing).

The commands below are global (they act on every agent):

bash
npx --yes huaweicloud-devkit version  # print CLI version and installed plugin versions per agentnpx --yes huaweicloud-devkit uninstall --target all --clean-global  # also remove KooCLI + OBS config

OpenCode

bash
npx --yes huaweicloud-devkit install --target opencode

Restart the session after installation.

bash
npx --yes huaweicloud-devkit doctor --target opencodenpx --yes huaweicloud-devkit status --target opencodenpx --yes huaweicloud-devkit update --target opencodenpx --yes huaweicloud-devkit uninstall --target opencoderm -rf ~/.npm/_npx/  # Linux/macOS; Windows: rmdir /s /q %LOCALAPPDATA%\npm-cache\_npx

Codex

bash
npx --yes huaweicloud-devkit install --target codex

Restart the Codex session after installation.

bash
codex plugin list  # verify huaweicloud-devkit@huaweicloud-devkit is installed and enablednpx --yes huaweicloud-devkit doctor --target codexnpx --yes huaweicloud-devkit status --target codexnpx --yes huaweicloud-devkit update --target codexnpx --yes huaweicloud-devkit uninstall --target codex

Then mention @huaweicloud-devkit in Codex or describe your Huawei Cloud task directly.

Requires Codex CLI — the codex command must be in PATH. If Codex is installed via WindowsApps (Microsoft Store), use --target codex-desktop instead. Run codex --version to verify CLI availability.

Codex Desktop

Use this target when the Codex CLI is unavailable or when Codex is installed through WindowsApps on Windows.

bash
npx --yes huaweicloud-devkit install --target codex-desktop

Restart the Codex Desktop session after installation.

bash
npx --yes huaweicloud-devkit doctor --target codex-desktopnpx --yes huaweicloud-devkit status --target codex-desktopnpx --yes huaweicloud-devkit update --target codex-desktopnpx --yes huaweicloud-devkit uninstall --target codex-desktop

Then mention @huaweicloud-devkit in a new Codex Desktop task or describe your Huawei Cloud task directly.

CodeArts Agent

bash
npx --yes huaweicloud-devkit install --target codearts

Restart the session after installation.

bash
npx --yes huaweicloud-devkit doctor --target codeartsnpx --yes huaweicloud-devkit status --target codeartsnpx --yes huaweicloud-devkit update --target codeartsnpx --yes huaweicloud-devkit uninstall --target codearts

Sandbox mode: CodeArts defaults to sandbox mode which blocks KooCLI. install-hcloud detects this and shows how to resolve it — install KooCLI outside the sandbox terminal, or disable sandbox mode in CodeArts settings (Settings → Chats → Agents Terminal Command Running Mode → Auto Running).

CodeArts Work

bash
npx --yes huaweicloud-devkit install --target codearts-work

Restart the session after installation.

bash
npx --yes huaweicloud-devkit doctor --target codearts-worknpx --yes huaweicloud-devkit status --target codearts-worknpx --yes huaweicloud-devkit update --target codearts-worknpx --yes huaweicloud-devkit uninstall --target codearts-work

CodeArts Work (CodeArts Space, appId: com.codearts.work) uses user-level config at %USERPROFILE%\.codeartswork\. No project-level .codeartswork directory is created.

WorkBuddy

bash
npx --yes huaweicloud-devkit install --target workbuddy

Restart the session after installation.

bash
npx --yes huaweicloud-devkit doctor --target workbuddynpx --yes huaweicloud-devkit status --target workbuddynpx --yes huaweicloud-devkit update --target workbuddynpx --yes huaweicloud-devkit uninstall --target workbuddy

DeepSeek Harness (DSH)

bash
npx --yes huaweicloud-devkit install --target dsh

Restart the DSH session after installation.

bash
npx --yes huaweicloud-devkit doctor --target dshnpx --yes huaweicloud-devkit status --target dshnpx --yes huaweicloud-devkit update --target dshnpx --yes huaweicloud-devkit uninstall --target dsh

DSH V1 reuses the existing MCP server through @deepseek-ai/dsh-mcp-client. If the installer reports that the client is not detected, run: npx @deepseek-ai/dsh plugin --profile web add @deepseek-ai/dsh-mcp-client.

OfficeAce

bash
npx --yes huaweicloud-devkit install --target officeace

Restart OfficeAce after installation.

bash
npx --yes huaweicloud-devkit doctor --target officeacenpx --yes huaweicloud-devkit status --target officeacenpx --yes huaweicloud-devkit update --target officeacenpx --yes huaweicloud-devkit uninstall --target officeace

Hermes

bash
npx --yes huaweicloud-devkit install --target hermes

Restart the Hermes session after installation.

bash
npx --yes huaweicloud-devkit doctor --target hermesnpx --yes huaweicloud-devkit status --target hermesnpx --yes huaweicloud-devkit update --target hermesnpx --yes huaweicloud-devkit uninstall --target hermes

Uninstall notes: On Linux, run rm -rf ~/.npm/_npx/* && npm cache clean --force after uninstall to ensure a clean slate. On Windows, close all Hermes sessions first to release file locks, then after uninstall check %LOCALAPPDATA%\hermes\config.yaml for YAML corruption and manually remove %LOCALAPPDATA%\hermes\huaweicloud-plugins if any files remain. Safety hooks: The installer configures Hermes shell hooks (config.yaml → hooks.pre_tool_call) to intercept unsafe terminal commands such as credential file reads, environment variable dumps, and unapproved hcloud write operations. Hermes shows a consent prompt the first time; approve it or set hooks_auto_accept: true in config.yaml to auto-accept. MCP Python SDK: The installer automatically installs the mcp Python package required by Hermes for MCP tool discovery. If you see [FAIL] Hermes MCP Python SDK in doctor, run pip3 install mcp manually. Windows: See docs/hermes-windows.md for known issues and workarounds.

OpenClaw

bash
# Recommended (ClawHub)openclaw plugins install clawhub:huaweicloud-devkitopenclaw plugins uninstall huaweicloud-devkitopenclaw plugins update huaweicloud-devkit

Restart OpenClaw after installation. If prompted for security risk acknowledgment, add --acknowledge-clawhub-risk.

bash
# Or via npxnpx --yes huaweicloud-devkit install --target openclawnpx --yes huaweicloud-devkit status --target openclawnpx --yes huaweicloud-devkit update --target openclawnpx --yes huaweicloud-devkit uninstall --target openclawrm -rf ~/.npm/_npx/  # Linux/macOS; Windows: rmdir /s /q %LOCALAPPDATA%\npm-cache\_npx

AtomCode

bash
npx --yes huaweicloud-devkit install --target atomcode

Restart the AtomCode session after installation.

bash
npx --yes huaweicloud-devkit doctor --target atomcodenpx --yes huaweicloud-devkit status --target atomcodenpx --yes huaweicloud-devkit update --target atomcodenpx --yes huaweicloud-devkit uninstall --target atomcode

Other Agents

Any agent that supports MCP can use the standard config:

json
{  "mcpServers": {    "huaweicloud-devkit": {      "command": "npx",      "args": ["-y", "-p", "huaweicloud-devkit", "huaweicloud-devkit-mcp"]    }  }}

No installation required — npx handles everything.

For manual MCP registrations like this, do not put credentials in the config. HW_ACCESS_KEY/HW_SECRET_KEY are reserved for platform/CI-injected accounts (e.g. a DevSpace-managed default account) — configure your own account via npx huaweicloud-devkit auth init (the single entry point), and switch accounts at runtime with the huaweicloud_auth_init / huaweicloud_auth_switch MCP tools. See plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md for the full credential-resolution priority.

Connecting over Remote (HTTP)

If your agent supports type: "remote" (Streamable HTTP) instead of stdio, start the devkit remote MCP server locally first:

bash
npx --yes huaweicloud-devkit-mcp --transport remote

It listens on 127.0.0.1:9528 by default. Then connect with a remote config (opencode example):

jsonc
{  "mcp": {    "huaweicloud-devkit": {      "type": "remote",      "url": "http://localhost:9528",      "enabled": true,    },  },}

Use --port <port> if 9528 is taken and update url accordingly; add --host 0.0.0.0 for LAN access. The remote server has no built-in auth — do not expose it anonymously to the public internet.

Install KooCLI

bash
npx --yes huaweicloud-devkit install-hcloud

Configure Credentials

bash
npx --yes huaweicloud-devkit auth init

Synchronizes AK/SK to KooCLI, OBS, and sandbox APIs in one step — this is the single entry point. Never hard-code AK/SK into agent or shell config.

Account switching at runtime (within an agent session): use the MCP tools huaweicloud_auth_init (in-memory, highest priority) or huaweicloud_auth_switch (actions: temporary / persist / clear). In sandbox/DevSpace environments where a default account is injected via HW_ACCESS_KEY/HW_SECRET_KEY, a plain auth init will not override it — use huaweicloud_auth_switch action=persist to make the session account win.

Credential resolution priority (highest first):

#SourceSet by
1Runtime (session) credentialshuaweicloud_auth_init / huaweicloud_auth_switch action=temporary
2S1 global file with configuredBySession: truehuaweicloud_auth_switch action=persist
3Environment variables (HW_ACCESS_KEY/HW_SECRET_KEY)platform/DevSpace-injected default account
4CodeArts / CodeArts Work.codeartsdoer/mcp/mcp_settings.json / .codeartswork/mcp/mcp_settings.json
5S1 global file (no session flag)auth init
6KooCLI profile~/.hcloud/config.json (KooCLI commands only)

Security: never put your own AK/SK into the MCP config env field — they'd be stored in plaintext and could leak if the config file is committed to git. env is for platform/CI injection only.

Full details: plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md.

Install All Agents

bash
npx --yes huaweicloud-devkit install --target all

Update All Agents

bash
npx --yes huaweicloud-devkit@latest versionnpx --yes huaweicloud-devkit@latest update --target all

update is incremental — it refreshes installed files without touching your config. Always keep @latest so npm fetches the newest version instead of a locally cached older one.

Configure Proxy

bash
npx --yes huaweicloud-devkit proxy init    # configure proxy (interactive)npx --yes huaweicloud-devkit proxy show    # show effective proxy settingsnpx --yes huaweicloud-devkit proxy clear   # remove proxy configuration

Configures HTTP/HTTPS proxy for connections to Huawei Cloud services (e.g. enterprise intranet environments). Settings are saved to ~/.config/huaweicloud/proxy.json.

Environment variables HTTPS_PROXY, HTTP_PROXY, and NO_PROXY take precedence over the file configuration — use proxy show to inspect the effective settings.

Telemetry

HuaweiCloud DevKit collects anonymous telemetry to understand usage patterns and improve the plugin. Telemetry is enabled by default.

What We Collect

  • Installation ID — a SHA-256 hash derived from a machine fingerprint (hostname + MAC address + OS type + home directory). The raw values are never sent or stored.
  • User hash — a server-generated user identifier hash (produced by the Huawei Cloud backend check-user / generatorUserIDHash API). It is cached locally and sent with every event; it is not derived from any local PII.
  • Plugin version — the installed huaweicloud-devkit version.
  • Agent harness — which AI coding agent is running (e.g. opencode, codex, codearts).
  • Agent version — the agent's version string.
  • OS type and version — e.g. Linux, Darwin, Windows_NT.
  • Capability — how the event was triggered: mcp (MCP tool invocation) or cli (CLI command), derived from the event key.
  • Event type — what happened, e.g. plugin:install, plugin:first_use, dau:active_today (daily active), tool:<tool_name>, skill:retrieve, sandbox:connect.
  • Event value — a short sanitized string (max 255 chars, newlines/tabs stripped). For tool events this is typically 1; for skill retrieval it is the skill name.

What We Do Not Collect

  • No AK/SK, access keys, or any credentials
  • No user input, prompts, or code content
  • No IP addresses
  • No personally identifiable information (PII)
  • No file paths or project names

How Data Is Transmitted

Events are queued in memory and sent in batches (up to 100 events per batch) via HTTP POST to Huawei Cloud's telemetry endpoint every 60 seconds. Transmission respects your proxy configuration. Failed requests are retried up to 3 times, then dropped.

Disable Telemetry (Opt-Out)

Set the environment variable:

bash
export HUAWEICLOUD_DEVKIT_TELEMETRY=off

When set to off, no telemetry events are collected or transmitted.

Debug Mode

To log telemetry activity for troubleshooting:

bash
export HUAWEICLOUD_DEVKIT_DEBUG=true

Debug logs are written to the plugin's telemetry/telemetry-debug.log file.

What It Does

  • Guided cloud operations — agents get step-by-step guidance for 20+ commonly used Huawei Cloud services (ECS, OBS, VPC, RDS, GaussDB, FunctionGraph, APIG, CCE, and more)
  • Safety-first execution — all write operations require explicit user approval; credentials and secrets are automatically redacted from output
  • Pre-execution risk checks — public exposure, credential leaks, and destructive operations are caught before they run
  • Regional awareness — auto-discovers available regions and checks service availability before creating resources
  • Sandbox (DevStation) — temporary cloud runtime for web app deployment with instant public URL preview

Supported Services

ECS, OBS, VPC, IAM, RDS, GaussDB, FunctionGraph, APIG, CCE, SMN/DMS, ModelArts, Cloud Eye, CTS, DEW, Billing, CBR, WAF/AAD, DDS/DCS, Deployment, and Getting Started guides.

Above is the pre-wired guidance list; the remaining 200+ Huawei Cloud services are still reachable via KooCLI / API / SDK routing (see capability-discovery and cli-and-auth meta-skills).

Documentation

Contributors

[圖片]

License

This project is licensed under the Apache-2.0 License. See LICENSE.

來源:README.md,提交 4ed0780

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分