
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)
概览
华为云 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 远程方式。
安装
在 SourceWeft 中
- 打开 控制台中的 HuaweiCloud DevKit (Community Preview),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
Restore the default registry:
npm config delete registryMirror lag: npm mirrors (npmmirror, mirrors.huaweicloud.com) may lag behind the official registry for hours after a new release. If install fails with
ETARGETor you get an older version, install via the official registry instead:
Quick Start
If
--targetis 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, runnpx --yes huaweicloud-devkit install --target all(Codex is skipped when its CLI is missing).
The commands below are global (they act on every agent):
OpenCode
Restart the session after installation.
Codex
Restart the Codex session after installation.
Then mention @huaweicloud-devkit in Codex or describe your Huawei Cloud task directly.
Requires Codex CLI — the
codexcommand must be in PATH. If Codex is installed via WindowsApps (Microsoft Store), use--target codex-desktopinstead. Runcodex --versionto verify CLI availability.
Codex Desktop
Use this target when the Codex CLI is unavailable or when Codex is installed through WindowsApps on Windows.
Restart the Codex Desktop session after installation.
Then mention @huaweicloud-devkit in a new Codex Desktop task or describe your Huawei Cloud task directly.
CodeArts Agent
Restart the session after installation.
Sandbox mode: CodeArts defaults to sandbox mode which blocks KooCLI.
install-hclouddetects 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
Restart the session after installation.
CodeArts Work (CodeArts Space, appId:
com.codearts.work) uses user-level config at%USERPROFILE%\.codeartswork\. No project-level.codeartsworkdirectory is created.
WorkBuddy
Restart the session after installation.
DeepSeek Harness (DSH)
Restart the DSH session after installation.
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
Restart OfficeAce after installation.
Hermes
Restart the Hermes session after installation.
Uninstall notes: On Linux, run
rm -rf ~/.npm/_npx/* && npm cache clean --forceafter uninstall to ensure a clean slate. On Windows, close all Hermes sessions first to release file locks, then after uninstall check%LOCALAPPDATA%\hermes\config.yamlfor YAML corruption and manually remove%LOCALAPPDATA%\hermes\huaweicloud-pluginsif 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 unapprovedhcloudwrite operations. Hermes shows a consent prompt the first time; approve it or sethooks_auto_accept: trueinconfig.yamlto auto-accept. MCP Python SDK: The installer automatically installs themcpPython package required by Hermes for MCP tool discovery. If you see[FAIL] Hermes MCP Python SDKindoctor, runpip3 install mcpmanually. Windows: See docs/hermes-windows.md for known issues and workarounds.
OpenClaw
Restart OpenClaw after installation. If prompted for security risk acknowledgment, add --acknowledge-clawhub-risk.
AtomCode
Restart the AtomCode session after installation.
Other Agents
Any agent that supports MCP can use the standard config:
No installation required — npx handles everything.
For manual MCP registrations like this, do not put credentials in the config.
HW_ACCESS_KEY/HW_SECRET_KEYare reserved for platform/CI-injected accounts (e.g. a DevSpace-managed default account) — configure your own account vianpx huaweicloud-devkit auth init(the single entry point), and switch accounts at runtime with thehuaweicloud_auth_init/huaweicloud_auth_switchMCP tools. Seeplugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.mdfor 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:
It listens on 127.0.0.1:9528 by default. Then connect with a remote config (opencode example):
Use
--port <port>if 9528 is taken and updateurlaccordingly; add--host 0.0.0.0for LAN access. The remote server has no built-in auth — do not expose it anonymously to the public internet.
Install KooCLI
Configure Credentials
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):
Security: never put your own AK/SK into the MCP config
envfield — they'd be stored in plaintext and could leak if the config file is committed to git.envis for platform/CI injection only.
Full details: plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md.
Install All Agents
Update All Agents
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
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/generatorUserIDHashAPI). It is cached locally and sent with every event; it is not derived from any local PII. - Plugin version — the installed
huaweicloud-devkitversion. - 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) orcli(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:
When set to off, no telemetry events are collected or transmitted.
Debug Mode
To log telemetry activity for troubleshooting:
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
- Architecture
- Safety Model
- Hook Rule Model
- DeepSeek Harness Integration
- Changelog
- KooCLI official docs
Contributors
[图片]License
This project is licensed under the Apache-2.0 License. See LICENSE.
来源:README.md,提交 4ed0780
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分