PluginBench
MCP Server
Active
Apache-2.0

HuaweiCloud DevKit (Community Preview) MCP Server

io.github.glqff/huaweicloud-devkit

AI-powered Huawei Cloud integration with safety guardrails, CLI tooling, and guided operations for coding agents.

What is the HuaweiCloud DevKit (Community Preview) MCP server?

The HuaweiCloud DevKit MCP server enables AI coding agents to safely interact with Huawei Cloud services. It provides step-by-step guidance for 20+ cloud services, pre-execution risk checks, credential management, and approval workflows for write operations. Supports OpenCode, Codex, CodeArts Agent, WorkBuddy, DeepSeek Harness, and other MCP-compatible agents.

HuaweiCloud DevKit gives AI agents the ability to provision and manage Huawei Cloud resources with built-in safety. It includes guided operations for ECS, OBS, VPC, RDS, GaussDB, FunctionGraph, APIG, CCE, and other services; automatic credential handling; pre-execution risk detection; and regional awareness. All write operations require explicit approval, and secrets are redacted from output.

How to install HuaweiCloud DevKit (Community Preview)

Copy-paste configuration for popular MCP clients.

transport: http
Config generated by PluginBench — verify against the source before use.
~/.cursor/mcp.json
{
  "mcpServers": {
    "huaweicloud-devkit": {
      "url": "https://erx5uqu4-8931.cn-north-4-bridge.myhuaweicloud.com/mcp"
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • huaweicloud_auth_init — Initialize or switch authentication credentials at runtime within an agent session.
  • huaweicloud_auth_switch — Switch between accounts or persist/clear session credentials with actions: temporary, persist, or clear.
  • Guided cloud operations — Step-by-step guidance for 20+ Huawei Cloud services including ECS, OBS, VPC, RDS, GaussDB, FunctionGraph, APIG, CCE, and more.
  • KooCLI routing — Access to remaining 200+ Huawei Cloud services via KooCLI, API, or SDK routing.
  • Proxy configuration — Configure HTTP/HTTPS proxy for enterprise intranet environments.

Use cases

  • Provision and manage ECS instances, OBS buckets, VPC networks, and RDS databases through natural language.
  • Deploy serverless functions to FunctionGraph with automatic regional availability checks.
  • Create and manage Kubernetes clusters (CCE) with safety-first approval workflows.
  • Switch between multiple Huawei Cloud accounts at runtime without restarting the agent.
  • Deploy web applications to sandbox (DevStation) with instant public URL preview.

HuaweiCloud DevKit (Community Preview) MCP server FAQ

What is the HuaweiCloud DevKit MCP server?

It's an MCP server that integrates Huawei Cloud services into AI coding agents like Claude, Codex, and CodeArts. It provides guided operations, safety checks, credential management, and approval workflows for cloud resource provisioning.

Is it free to use?

The server itself is open-source (Apache 2.0). You need a Huawei Cloud account and valid credentials (AK/SK) to use cloud services; Huawei Cloud charges apply for resources you provision.

How do I install it in Cursor or Claude?

For agents supporting MCP, add the standard config with `npx huaweicloud-devkit-mcp` as the command. For specific agents like OpenCode or Codex, run `npx huaweicloud-devkit install --target <agent>` and restart the session.

What authentication is required?

You need Huawei Cloud Access Key (AK) and Secret Key (SK). Run `npx huaweicloud-devkit auth init` to securely configure credentials. Credentials are never stored in plaintext in config files.

Does it support all Huawei Cloud services?

20+ services have pre-wired guided operations (ECS, OBS, VPC, RDS, GaussDB, FunctionGraph, APIG, CCE, etc.). The remaining 200+ services are accessible via KooCLI and API routing.

What safety features does it include?

Pre-execution risk checks for public exposure and credential leaks, automatic secret redaction, explicit approval for all write operations, and regional availability validation before resource creation.

README (reference)

Source of truth, from the repository.

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:

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:

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):

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

OpenCode

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

Restart the session after installation.

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

Codex

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

Restart the Codex session after installation.

codex plugin list  # verify huaweicloud-devkit@huaweicloud-devkit is installed and enabled
npx --yes huaweicloud-devkit doctor --target codex
npx --yes huaweicloud-devkit status --target codex
npx --yes huaweicloud-devkit update --target codex
npx --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.

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

Restart the Codex Desktop session after installation.

npx --yes huaweicloud-devkit doctor --target codex-desktop
npx --yes huaweicloud-devkit status --target codex-desktop
npx --yes huaweicloud-devkit update --target codex-desktop
npx --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

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

Restart the session after installation.

npx --yes huaweicloud-devkit doctor --target codearts
npx --yes huaweicloud-devkit status --target codearts
npx --yes huaweicloud-devkit update --target codearts
npx --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

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

Restart the session after installation.

npx --yes huaweicloud-devkit doctor --target codearts-work
npx --yes huaweicloud-devkit status --target codearts-work
npx --yes huaweicloud-devkit update --target codearts-work
npx --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

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

Restart the session after installation.

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

DeepSeek Harness (DSH)

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

Restart the DSH session after installation.

npx --yes huaweicloud-devkit doctor --target dsh
npx --yes huaweicloud-devkit status --target dsh
npx --yes huaweicloud-devkit update --target dsh
npx --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

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

Restart OfficeAce after installation.

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

Hermes

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

Restart the Hermes session after installation.

npx --yes huaweicloud-devkit doctor --target hermes
npx --yes huaweicloud-devkit status --target hermes
npx --yes huaweicloud-devkit update --target hermes
npx --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

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

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

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

AtomCode

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

Restart the AtomCode session after installation.

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

Other Agents

Any agent that supports MCP can use the standard config:

{
  "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:

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):

{
  "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

npx --yes huaweicloud-devkit install-hcloud

Configure Credentials

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

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

Update All Agents

npx --yes huaweicloud-devkit@latest version
npx --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

npx --yes huaweicloud-devkit proxy init    # configure proxy (interactive)
npx --yes huaweicloud-devkit proxy show    # show effective proxy settings
npx --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.

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

<a href="https://github.com/huaweicloud/huaweicloud-devkit/graphs/contributors"> <img src="https://contrib.rocks/image?repo=huaweicloud/huaweicloud-devkit" /> </a>

License

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

Related MCP servers

WinDbg/DbgEng over MCP: crash dumps, live user & kernel, driver IOCTLs, and TTD.

7
Rust
MIT
View repository →

Create interactive visualizations and query data sources (SQLite, CSV, Parquet, JSON)

1
TypeScript
MIT
View repository →

Pay less for x402 APIs: free pre-payment checks, cheapest working service finder, web/PDF reader.

Crypto safety for agents on Base: token honeypot/tax test and safe-to-send address poisoning check.

ONOn-Demand-Books logo

On-Demand-Books

Maintained

Find personalized puzzle books by first name from a 100,000+ title Shopify catalog.

0
Rust
Apache-2.0
View repository →

Git-native policy layer for AI agents: approve rules via PR, agents check actions before acting.

27
TypeScript
Apache-2.0
View repository →