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 分