Huawei App Gallery
华为应用市场 MCP
一个用于管理 华为应用市场 (AppGallery Connect) 应用发布流程的 模型上下文协议 (MCP) 服务器。可直接集成到 Claude Desktop 或任何兼容 MCP 的客户端中。
功能特性
查询并更新应用元数据(名称、描述、分类、评分、支持联系方式)
管理各语言的本地化商店详情
上传 APK / AAB 文件,支持大文件(>4 GB)自动分块上传
提交应用进行全量发布、分阶段(灰度)发布、定时发布或开放测试(
channel_id=2)当二进制文件托管在您自己的服务器上时提交应用
管理分阶段发布生命周期(状态变更、百分比更新)
查询 AAB 编译状态
更新定时发布时间
设置 GMS 依赖标志
获取下载/安装及安装失败报告的 URL
Related MCP server: 302AI Sandbox MCP Server
安装
通过 MCP 注册表(推荐)
Claude Code:
claude mcp add --from-registry io.github.AgiMaulana/HuaweiAppGalleryMcp其他 MCP 客户端:
在 registry.modelcontextprotocol.io 查找 — 搜索 huawei-appgallery。
手动安装
pip install huawei-app-gallery-mcp或者使用 uv:
uv pip install huawei-app-gallery-mcp配置
1. 获取 API 凭据
导航至 用户与访问 → API 密钥 → Connect API
点击 创建 并选择 应用管理 (App manager) 角色
复制 客户端 ID (Client ID) 和 客户端密钥 (Client Secret)
这些是 Connect API 凭据 — 与 HMS Core 应用凭据不同。
2. 设置环境变量
在您的工作目录中创建一个 .env 文件(服务器会自动加载它):
HUAWEI_CLIENT_ID=your_connect_api_client_id
HUAWEI_CLIENT_SECRET=your_connect_api_client_secret
# Optional: set a default app ID so you don't have to pass it to every tool call
HUAWEI_APP_ID=your_app_id3. 连接到您的 MCP 客户端(仅限手动安装)
Claude Desktop
添加到 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"huawei-appgallery": {
"command": "huawei-app-gallery-mcp",
"env": {
"HUAWEI_CLIENT_ID": "your_client_id",
"HUAWEI_CLIENT_SECRET": "your_client_secret",
"HUAWEI_APP_ID": "your_app_id"
}
}
}
}Claude Code(机器级别,仅限手动安装)
创建 /Library/Application Support/ClaudeCode/managed-mcp.json (macOS) 或 /etc/claude-code/managed-mcp.json (Linux):
{
"mcpServers": {
"huawei-appgallery": {
"type": "stdio",
"command": "huawei-app-gallery-mcp",
"env": {
"HUAWEI_CLIENT_ID": "your_client_id",
"HUAWEI_CLIENT_SECRET": "your_client_secret",
"HUAWEI_APP_ID": "your_app_id"
}
}
}
}工具
所有工具都接受一个可选的 app_id 参数。如果省略,将默认使用环境变量中的 HUAWEI_APP_ID。
工具 | 描述 |
| 查询当前应用元数据(名称、描述、分类、评分等),可通过 |
| 更新 AppGallery Connect 草稿中的应用元数据 |
| 添加或更新特定语言的本地化商店详情 |
| 删除本地化商店详情 |
| 在上传文件前获取预签名上传 URL 和授权码 |
| 从本地磁盘上传 APK/AAB 并将其附加到应用草稿(>4 GB 自动分块) |
| 手动将已上传的文件附加到应用草稿 |
| 查询一个或多个包 ID 的 AAB 编译状态 |
| 提交应用进行审核和发布(支持通过 |
| 当二进制文件托管在您自己的服务器上时提交应用 |
| 更改分阶段发布状态:继续、回滚或停止 |
| 将分阶段发布转换为全量发布,或更新发布进度/百分比 |
| 更新定时发布时间(仅在应用处于“发布中”状态时有效) |
| 报告应用是否依赖 GMS |
| 获取应用下载和安装报告的下载 URL(CSV/Excel,最长 180 天) |
| 获取安装失败报告的下载 URL(CSV/Excel,最长 180 天) |
使用示例
上传并发布新版本:
上传
/path/to/app-release.aab(AAB, 文件类型 5) 然后提交全量发布。
分阶段发布:
提交应用进行 20% 用户规模的分阶段发布。
开放测试:
提交应用进行开放测试 (channel_id=2)。
检查开放测试:
使用
query_app_info(channel_id=2)查询开放测试渠道的应用元数据。
更新发布说明:
将英文发布说明更新为 "Bug fixes and performance improvements"。
定时发布:
提交应用在 2026 年 3 月 20 日 10:00 UTC 发布。
下载报告:
获取过去 30 天的英文 CSV 格式下载和安装报告 URL。
发布工作流
Update app info → Update language info → Upload APK/AAB → Submit app使用
update_app_info/update_language_info设置元数据和发布说明使用
upload_app_file上传二进制文件(自动处理分块)使用
submit_app触发审核和发布
包发布工作流
有关包发布说明,请参阅 docs/RELEASE.md。
API 参考
此服务器封装了 AppGallery Connect 发布 API。
许可证
MIT
Available Tools
17 toolschange_phased_release_stateB
Proceed, roll back, or stop a phased (grey) release.
Inputs: state (required), app_id, phased_release_start_time, phased_release_end_time, +1 more.
delete_language_infoB
Remove a localized store listing from the app draft.
Inputs: lang (required), app_id.
get_download_report_urlA
Get download URL for app download/install report (CSV or Excel). Max 180-day range.
Inputs: language (required), start_time (required), end_time (required), app_id, +2 more.
get_install_failure_report_urlB
Get download URL for installation failure report (CSV or Excel). Max 180-day range.
Inputs: language (required), start_time (required), end_time (required), app_id, +2 more.
get_upload_urlB
Get a pre-signed upload URL and authCode for an APK/AAB/asset file. Returns uploadUrl, chunkUploadUrl, authCode.
Inputs: suffix (required), app_id, file_name, release_type.
query_app_infoA
Query app metadata (name, description, category, content rating) from AppGallery Connect. Optionally scope to a release channel with channel_id=2 for open testing.
Inputs: app_id, release_type, channel_id.
query_compile_statusA
Query AAB compilation status for package IDs returned after upload.
Inputs: pkg_ids (required), app_id.
set_gms_dependencyA
Declare whether the app depends on GMS (Google Mobile Services).
Inputs: need_gms (required), app_id.
submit_appA
Submit app for review/release. Supports full, phased, scheduled, channel releases, and open testing (channel_id=2). Save all info first.
Inputs: app_id, release_type, release_percent, release_time, +6 more.
submit_app_with_fileB
Submit app for release using a file hosted on your server (Huawei downloads via HTTPS during review).
Inputs: file_type (required), files (required), app_id, release_type, +3 more.
update_app_file_infoA
Attach already-uploaded files to the app draft. Use after get_upload_url + manual upload.
Inputs: file_type (required), files (required), app_id.
update_app_infoA
Update app metadata in the AppGallery Connect draft (name, description, category, ratings, support contacts, privacy policy).
Inputs: app_id, default_lang, app_name, app_desc, +9 more.
update_language_infoB
Add or update localized store listing (name, description, release notes) for a language.
Inputs: lang (required), app_id, app_name, app_desc, +2 more.
update_phased_releaseC
Convert phased release to full, or update its schedule/percentage.
Inputs: state (required), app_id, phased_release_start_time, phased_release_end_time, +2 more.
update_release_timeB
Update scheduled release time. Only valid when app is in Releasing state.
Inputs: change_type (required), app_id, release_time, release_type.
upload_app_fileA
Upload APK/AAB from local disk to AppGallery (get URL → upload, auto-chunked >4 GB → attach to draft).
Inputs: file_path (required), file_type (required), app_id.
upload_fileA
Upload a file to AppGallery using a pre-signed URL (Step 2 of upload flow). Returns fileDestUrl for use in update_app_file_info.
Inputs: file_path (required), upload_url (required), auth_code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools map to distinct resources and actions, but the upload flow has three overlapping tools (upload_file, upload_app_file, update_app_file_info) and submit_app vs submit_app_with_file are easy to confuse. Descriptions help, but an agent could still pick the wrong step in the upload/release workflow.
Naming follows a clear verb_noun snake_case pattern throughout, using query_, update_, delete_, get_, upload_, and submit_ consistently. Minor inconsistencies like query vs get, change_phased_release_state vs update_phased_release, and upload_file vs upload_app_file prevent a perfect score.
At 17 tools, the set is slightly above the ideal 3-15 range but reasonable for an app publishing console covering metadata, localization, upload, release management, and reports. No tool feels completely redundant, though the set is on the heavier side.
The core release workflow is covered: metadata, localization, upload/attach, submission, phased/scheduled releases, and reports. However, there is no way to query current submission/review/release status, list existing localized listings, or see uploaded files, which creates a notable gap for agents managing the full lifecycle.
Maintenance
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Related MCP Servers
- AlicenseDqualityDmaintenanceA server built on mcp-framework that enables integration with Claude Desktop through the Model Context Protocol.11MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for Claude Desktop that connects to 302AI's API services, allowing users to integrate and leverage 302AI capabilities through a structured communication interface.923 npm21MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server for Apple's App Store Connect API. Manage your iOS, macOS, tvOS, and visionOS apps directly from Claude, Cursor, or any MCP-compatible client.52132 npm23MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that connects Cursor, Claude Desktop, and other MCP clients to the official App Store Connect API—so you can manage iOS/macOS apps, TestFlight, in-app subscriptions, and store metadata via chat or automated tool calls.69109 npm15MIT