HuaweiAppGalleryMcp

io.github.AgiMaulana由 GitHub 账号 AgiMaulana 发布v1.1.1更新于 Oct 24, 2026

Huawei AppGallery Connect MCP: upload APK/AAB, update metadata, submit and manage app releases.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手管理华为 AppGallery Connect 发布:应用元数据、多语言商店信息、APK/AAB 上传、发布与报告。

可以做什么
查询和更新应用元数据,可按 channel_id 针对特定发布渠道,并设置 GMS 依赖标记。按语言新增、更新或删除本地化商店信息。获取上传地址,从本地磁盘上传 APK/AAB 文件(大文件自动分块),并把已上传文件挂到草稿。提交应用进行全量、分阶段、定时或开放测试发布,也支持二进制托管在自己服务器上的情况。管理分阶段发布状态、放量比例和定时发布时间,查询 AAB 编译状态。获取下载安装报告和安装失败报告的地址。
适用场景
适合在华为 AppGallery Connect 上发布或维护 Android 应用时使用,让助手在不打开网页控制台的情况下准备元数据、上传构建、执行分阶段或定时发布并获取安装报告。
运行要求
以 Python 包形式在本地通过 stdio 运行(pip 或 uv 安装),仅支持桌面 MCP 客户端。需要 AppGallery Connect Connect API 凭据,通过 HUAWEI_CLIENT_ID 和 HUAWEI_CLIENT_SECRET 提供,并以 App manager 角色创建;可选 HUAWEI_APP_ID 作为默认应用 ID。需要能访问 AppGallery Connect API 的网络。
安装前请注意
HUAWEI_CLIENT_SECRET 是密钥,不要放进共享配置或代码仓库;服务器还会自动读取工作目录下的 .env 文件。工具会改动线上商店状态:更新元数据和商店信息、删除本地化信息、上传安装包,并提交应用审核发布,包括分阶段、定时和开放测试。提交会触发审核和公开发布,执行前请确认。

安装

在 SourceWeft 中

  1. 打开 控制台中的 HuaweiAppGalleryMcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Huawei AppGallery MCP

[Huawei App Gallery MCP server]

[HuaweiAppGalleryMcp MCP server] [MCP Badge] [License: MIT]

A Model Context Protocol (MCP) server for managing app publishing on Huawei AppGallery Connect. Integrates directly with Claude Desktop or any MCP-compatible client.

Features

  • Query and update app metadata (name, description, category, ratings, support contacts)
  • Manage localized store listings per language
  • Upload APK / AAB files with automatic chunked upload for large files (>4 GB)
  • Submit apps for full release, phased (grey) release, scheduled release, or open testing (channel_id=2)
  • Submit apps when the binary is hosted on your own server
  • Manage phased release lifecycle (state changes, percentage updates)
  • Query AAB compilation status
  • Update scheduled release time
  • Set GMS dependency flag
  • Obtain download/installation and install-failure report URLs

Installation

Via MCP Registry (recommended)

Claude Code:

bash
claude mcp add --from-registry io.github.AgiMaulana/HuaweiAppGalleryMcp

Other MCP clients: Find it at registry.modelcontextprotocol.io — search for huawei-appgallery.

Manual installation

bash
pip install huawei-app-gallery-mcp

Or with uv:

bash
uv pip install huawei-app-gallery-mcp

Configuration

1. Get API credentials

  1. Go to AppGallery Connect
  2. Navigate to Users & Permissions → API key → Connect API
  3. Click Create and select the App manager role
  4. Copy the Client ID and Client Secret

These are Connect API credentials — different from HMS Core app credentials.

2. Set environment variables

Create a .env file in your working directory (the server loads it automatically):

bash
HUAWEI_CLIENT_ID=your_connect_api_client_idHUAWEI_CLIENT_SECRET=your_connect_api_client_secret
# Optional: set a default app ID so you don't have to pass it to every tool callHUAWEI_APP_ID=your_app_id

3. Connect to your MCP client (manual install only)

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "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 (machine-level, manual install only)

Create /Library/Application Support/ClaudeCode/managed-mcp.json (macOS) or /etc/claude-code/managed-mcp.json (Linux):

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

Tools

All tools accept an optional app_id argument. If omitted, HUAWEI_APP_ID from the environment is used as the default.

ToolDescription
query_app_infoQuery current app metadata (name, description, category, ratings, etc.), optionally for a specific release channel via channel_id
update_app_infoUpdate app metadata in the AppGallery Connect draft
update_language_infoAdd or update a localized store listing for a specific language
delete_language_infoRemove a localized store listing
get_upload_urlObtain a pre-signed upload URL and auth code before uploading a file
upload_app_fileUpload an APK/AAB from local disk and attach it to the app draft (auto-chunked for >4 GB)
update_app_file_infoManually attach already-uploaded files to the app draft
query_compile_statusQuery AAB compilation status for one or more package IDs
submit_appSubmit the app for review and release (supports full, phased, scheduled, and open testing via channel_id=2)
submit_app_with_fileSubmit when the binary is hosted on your own server
change_phased_release_stateChange phased release status: proceed, roll back, or stop
update_phased_releaseConvert phased release to full release or update the rollout schedule/percentage
update_release_timeUpdate the scheduled release time (only when app is in Releasing state)
set_gms_dependencyReport whether the app depends on GMS
get_download_report_urlGet download URL for the app download & installation report (CSV/Excel, max 180 days)
get_install_failure_report_urlGet download URL for the installation failure report (CSV/Excel, max 180 days)

Usage Examples

Upload and release a new version:

Upload /path/to/app-release.aab (AAB, file type 5) then submit it for a full release.

Phased rollout:

Submit the app for a phased release to 20% of users.

Open testing:

Submit the app for open testing (channel_id=2).

Inspect open testing:

Query the app metadata for the open testing channel with query_app_info(channel_id=2).

Update release notes:

Update the English release notes to "Bug fixes and performance improvements".

Scheduled release:

Submit the app for release on March 20, 2026 at 10:00 UTC.

Download report:

Get the download and installation report URL for the last 30 days in English CSV format.

Publishing Workflow

Update app info  →  Update language info  →  Upload APK/AAB  →  Submit app
  1. Use update_app_info / update_language_info to set metadata and release notes
  2. Use upload_app_file to upload the binary (handles chunking automatically)
  3. Use submit_app to trigger review and release

Package Release Workflow

For package release instructions, see docs/RELEASE.md.

API Reference

This server wraps the AppGallery Connect Publishing API.

License

MIT

来源:README.md,提交 74a7c73

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分