aul_uploader
This is an MCP server that uploads and manages games for the AUL remote game library, syncing content across GitHub and GitCode repositories.
Verify tokens: Check whether GitHub and GitCode tokens are valid (
check_tokens).Read remote config: Fetch
config.jsonfrom a desktop/mobile library, returning game lists and blob SHAs (get_config).Upload covers: Upload/update game covers, auto-resizing to max 640x480 and converting to WebP, synced to both repos (
upload_cover_image).Release game assets: Publish
.7z(desktop) or.apk(mobile) files to GitHub/GitCode Releases under a pre-existingv{version}tag (release_game_asset).Add game entries: Append a new game to
config.jsonand push the change to both repositories (add_game_entry).One-click full upload: Run the entire game publishing pipeline—token check, config fetch, entry add, cover upload, and Release publish—in one call (
full_upload_game).Parse APKs locally: Extract package name from an APK and derive a valid
game_id(dots to underscores) plus version info (get_apk_id).Download covers: Fetch remote covers via jsDelivr CDN first, falling back to GitHub API, and save them locally (
get_cover_image).Delete repo files: Remove files from the
databranch, syncing deletions across both repos (delete_repo_file).Delete release assets: Remove specific asset files from GitHub/GitCode Releases (
delete_release_asset).
Provides tools for interacting with GitHub repositories to manage game library configuration, cover images, and release assets, including uploading covers, publishing installation packages, and adding or updating game entries.
Provides read access to remote game library configuration and cover images via the jsDelivr CDN, with automatic fallback to the GitHub API when the CDN is unavailable.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aul_uploader Upload cover for game 'mario' to the desktop library"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AUL Uploader — MCP Server
server_name: aul_uploader
基于 Model Context Protocol 的 MCP 服务器,用于向 AUL 远程游戏库上传游戏、管理配置与封面。双仓库同步:GitHub 为主,GitCode 为镜像。
library | 仓库 | 分支 | 资源扩展名 |
| GitHub |
|
|
| GitHub |
|
|
封面命名:{game_id}.webp
安装包命名:{game_id}.{ext}(ext 由 library 决定)
配置文件:config.json(data 分支根目录)
1. 环境与安装
npm installNode.js >= 18
无 build 步骤,
node index.js直接启动
依赖:
包 | 用途 |
| MCP stdio / SSE 服务端 SDK |
| 本地解析 APK 清单(包名 / 版本) |
| HTTP 请求 GitHub / GitCode / jsDelivr |
| 封面缩放并转 WebP |
Related MCP server: aimade-mcp
2. 接入方式
2.1 本地(Stdio)
{
"mcpServers": {
"aul_uploader": {
"command": "node",
"args": ["C:\\absolute\\path\\to\\index.js"]
}
}
}args[0] 建议写绝对路径,避免工作目录不一致导致找不到文件。
2.2 远程(HTTP / SSE)
# 监听所有网卡
node index.js --serve 3001
# 绑定指定 IP
node index.js --serve 3001 --host 192.168.1.20启动后输出:
=== AUL Uploader MCP Server (SSE / HTTP) running ===
Health check : http://0.0.0.0:3001/health
SSE endpoint : http://0.0.0.0:3001/sse
Message POST : http://0.0.0.0:3001/message路径 | 方法 | 作用 |
| GET | 健康检查,返回工具数与活跃会话数 |
| GET | SSE 下行通道 |
| POST | 客户端上行 JSON-RPC |
客户端配置:
{
"mcpServers": {
"aul_uploader_remote": {
"transport": "sse",
"url": "http://<host>:3001/sse"
}
}
}安全提醒:SSE 本身无鉴权,跨公网部署时请在前面套 HTTPS 反代并加鉴权(Basic Auth / Bearer Token / IP 白名单三选一)。
2.3 启动方式总览
# 默认:Stdio 子进程
node index.js
# HTTP/SSE 服务端
node index.js --serve 3001 [--host <ip>]
# 单次 CLI 调试
node index.js --cli <tool> '<json_args>'
node index.js --cli <tool> @args.json优先级:--cli > --serve > 默认 Stdio。
3. 工具总览
# | 工具 | 说明 | 需要 Token |
1 |
| 验证 GitHub / GitCode Token 是否有效 | token_gh + token_gt |
2 |
| 读取远程 config.json,返回 games 列表与双仓库 sha | token_gh + token_gt |
3 |
| 上传/更新封面(自动缩放转 WebP,双仓库同步) | token_gh + token_gt |
4 |
| 发布安装包到 Release(v{version} 需预先存在) | token_gh + token_gt |
5 |
| 向 config.json 添加游戏条目并推送双仓库 | token_gh + token_gt |
6 |
| 一键完整上传:验证 -> 配置 -> 条目 -> 封面 -> Release | token_gh + token_gt |
7 |
| 解析 APK 包名生成 game_id | 否(纯本地) |
8 |
| 下载远程封面(CDN 优先,失败回退 GitHub API) | 否(通常) |
9 |
| 删除 data 分支中的文件(双仓库同步) | token_gh + token_gt |
10 |
| 删除 Release 中的资源文件 | token_gh + token_gt |
4. 工具详解
4.1 check_tokens
验证两个平台的 Token 对仓库的访问权限。
参数
字段 | 类型 | 必填 |
| string | 是 |
| string | 是 |
返回
{ "ok": true, "message": "Token 验证通过" }4.2 get_config
读取远程 config.json,返回 games 列表摘要以及双仓库的 blob sha(供 add_game_entry 使用)。
参数
字段 | 类型 | 必填 | 默认 |
| string | 是 | — |
| string | 是 | — |
|
| 是 |
|
返回
{
"sha_gh": "abc123...",
"sha_gt": "def456...",
"game_count": 42,
"games": [
{
"id": "game_id",
"name_zh": "游戏名",
"name_en": "Game Name",
"engine": "Unity",
"version": "0.0.1",
"hot_score": 100
}
],
"raw_config": { "...": "完整的 config 对象" }
}
raw_config就是完整的 config 对象,add_game_entry需要把它原样传回去。
4.3 upload_cover_image
上传或更新封面图片到 data 分支。自动缩放(最大 640x480,保持比例,不放大)并转为 WebP(质量 80)。双仓库同步,完成后清除 jsDelivr 缓存。
参数
字段 | 类型 | 必填 | 说明 |
| string | 是 | GitHub Token |
| string | 是 | GitCode Token |
| enum | 是 |
|
| string | 是 | 本地图片绝对路径(webp/png/jpg 等) |
| string | 是 | 游戏 ID,只允许字母数字下划线 |
返回
{
"ok": true,
"file": "game_id.webp",
"library": "desktop"
}4.4 release_game_asset
发布安装包到 GitHub / GitCode Release。对应 tag v{version} 必须预先存在。上传前会删除同名旧资产。
参数
字段 | 类型 | 必填 | 默认 | 说明 |
| string | 是 | — | GitHub Token |
| string | 是 | — | GitCode Token |
| enum | 是 |
| 决定扩展名 desktop=.7z, mobile=.apk |
| enum | 是 | — |
|
| string | 是 | — | 文件命名为 |
| string | 是 | — | 本地安装包绝对路径 |
| enum | 否 |
|
|
返回
{
"ok": true,
"version": "0.0.1",
"target": "both",
"file": "game_id.7z"
}4.5 add_game_entry
向 config.json 的 games 数组中追加一个条目并推送回双仓库。自动写入 publish_time(如未提供)。
参数
字段 | 类型 | 必填 | 说明 |
| string | 是 | GitHub Token |
| string | 是 | GitCode Token |
| enum | 是 |
|
| string | 是 | config 在 GitHub 的 sha(来自 |
| string | 是 | config 在 GitCode 的 sha(来自 |
| object | 是 | 完整 config 对象(来自 |
| object | 是 | 游戏数据,结构见下 |
game 对象:
字段 | 类型 | 必填 | 说明 |
| string | 是 | 唯一 ID,只允许字母数字下划线 |
| object | 是 |
|
| object | 是 |
|
| string | 是 | 引擎名,如 Unity / GMS2 |
| enum | 是 |
|
| integer | 否 | >=0,默认 0 |
| string | 否 | ISO 时间,默认当前时间 |
返回
{
"ok": true,
"added_entry": {
"id": "game_id",
"name": { "zh": "...", "en": "..." },
"author": { "zh": "...", "en": "..." },
"engine": "Unity",
"version": "0.0.1",
"hot_score": 0,
"publish_time": "2026-09-04T00:00:00.000Z"
}
}校验规则:
id只能包含字母、数字、下划线name.zh和name.en必填author.zh和author.en必填version只能是0.0.1或0.0.2hot_score必须是 >=0 的整数id不能与已有条目重复
4.6 full_upload_game
一键完整上传,按顺序执行:验证 Token -> 获取配置 -> 添加游戏条目 -> 上传封面 -> 发布 Release。
参数
字段 | 类型 | 必填 | 默认 | 说明 |
| string | 是 | — | GitHub Token |
| string | 是 | — | GitCode Token |
| enum | 是 |
|
|
| string | 是 | — | 本地封面图片绝对路径 |
| string | 是 | — | 本地安装包绝对路径 |
| object | 是 | — | 同 |
| enum | 否 |
| Release 上传目标 |
返回
{
"ok": true,
"steps": [
"1. Token 验证通过",
"2. 获取配置成功 (当前游戏 N 个)",
"3. 添加游戏条目成功: game_id",
"4. 封面上传成功: game_id.webp",
"5. Release 发布成功: game_id.7z @ v0.0.1"
],
"game_id": "game_id"
}4.7 get_apk_id
纯本地解析 APK,提取包名并将 . 替换为 _,生成符合 AUL 规则的 game_id。
参数
字段 | 类型 | 必填 | 说明 |
| string | 是 | 本地 APK 绝对路径 |
返回
{
"ok": true,
"package_name": "com.example.mygame",
"game_id": "com_example_mygame",
"version_name": "1.0.0",
"version_code": 100
}4.8 get_cover_image
从远程下载封面 {game_id}.webp。优先走 jsDelivr CDN(无需 Token,速度快),失败时回退到 GitHub Contents API。
参数
字段 | 类型 | 必填 | 默认 | 说明 |
| enum | 是 |
|
|
| string | 是 | — | 游戏 ID |
| string | 否 | 系统临时目录 | 保存到本地的绝对路径 |
| boolean | 否 |
| 是否优先走 CDN |
| string | 否 | — | 仅 CDN 失败回退 GitHub API 时需要 |
返回
{
"ok": true,
"game_id": "game_id",
"library": "desktop",
"source": "jsdelivr",
"source_url": "https://cdn.jsdelivr.net/gh/znm2500/AU-Launcher-Repo@data/game_id.webp",
"saved_path": "D:\\covers\\game_id.webp",
"size_bytes": 87342
}4.9 delete_repo_file
从 data 分支删除指定文件,双仓库同步。
参数
字段 | 类型 | 必填 | 说明 |
| string | 是 | GitHub Token |
| string | 是 | GitCode Token |
| enum | 是 |
|
| string | 是 | 要删除的文件名,如 |
返回
{
"ok": true,
"deleted_file": "game_id.webp",
"library": "desktop"
}4.10 delete_release_asset
从指定 Release(tag 为 v{version})中删除资源文件。
参数
字段 | 类型 | 必填 | 默认 | 说明 |
| string | 是 | — | GitHub Token |
| string | 是 | — | GitCode Token |
| enum | 是 |
|
|
| enum | 是 | — |
|
| string | 是 | — | 资源文件名,如 |
| enum | 否 |
|
|
返回
{
"ok": true,
"version": "0.0.1",
"file": "game_id.7z",
"target": "both"
}5. 常见工作流
5.1 桌面端上传新游戏
full_upload_game(
library = "desktop",
game = { id, name:{zh,en}, author:{zh,en}, engine, version },
image_path = "D:/pics/cover.png",
file_path = "D:/games/game.7z",
token_gh = ...,
token_gt = ...
)5.2 移动端上传新 APK
1. get_apk_id(apk_path = "D:/apk/app.apk")
-> 拿到 { game_id, version_name }
2. full_upload_game(
library = "mobile",
game = { id: game_id, name:{...}, author:{...}, engine, version },
file_path = apk_path,
image_path = ...
)5.3 复用远程已有封面
1. get_cover_image(library, game_id, output_path = "D:/temp/cover.webp")
-> { saved_path }
2. full_upload_game(image_path = saved_path, ...)5.4 分步上传(需要中间结果时)
1. check_tokens
2. get_config -> 拿到 { sha_gh, sha_gt, raw_config }
3. add_game_entry(config = raw_config, sha_gh, sha_gt, game = ...)
4. upload_cover_image(image_path, game_id)
5. release_game_asset(version, game_id, file_path)5.5 只读操作(免 Token)
操作 | 工具 |
查游戏列表 |
|
下载封面 |
|
生成 game_id |
|
6. 同步工具描述到 TRAE
tools/*.json 与 SERVER_METADATA.json 需拷贝到 TRAE solo agent lite 目录,TRAE 才能在 UI 侧展示工具:
源:
SERVER_METADATA.json
tools/*.json
目标:
%USERPROFILE%\.trae-cn\mcps\s_AUL-Repo-Manager-<hash>\solo_agent_lite\aul_uploader\
├─ SERVER_METADATA.json
└─ tools\*.jsonPowerShell 一键同步:
$src = "c:\Users\Weaver\Documents\GitHub\aul-uploader-mcp"
$dst = "$env:USERPROFILE\.trae-cn\mcps\s_AUL-Repo-Manager-<hash>\solo_agent_lite\aul_uploader"
New-Item -ItemType Directory -Force -Path (Join-Path $dst "tools") | Out-Null
Copy-Item -Force (Join-Path $src "SERVER_METADATA.json") $dst
Get-ChildItem (Join-Path $src "tools") -Filter *.json | ForEach-Object {
Copy-Item -Force $_.FullName (Join-Path $dst "tools")
}7. 错误排查
症状 | 常见原因 | 解决 |
| 配置里写死了错误的 node 路径 | 改成 |
Token 验证失败 | Token 过期或无仓库权限 | 重新生成 Token,确保有 repo 读写权限 |
config 更新 409 | sha 过期,仓库有新提交 | 重新调用 |
封面上传后 CDN 不刷新 | jsDelivr 有缓存 | 等待,代码已自动调用 purge 接口 |
Release 上传失败 | tag | 先在仓库创建对应 Release |
GitCode 上传失败 | GitCode API 限流或 token 权限不足 | 检查 token 权限,稍后重试 |
Available Tools
8 toolsadd_game_entryA
向 config.json 中添加一个游戏条目并推送回双仓库。会自动写入 publish_time。
Inputs: game (required), config (required), sha_gh (required), sha_gt (required), +3 more.
check_tokensA
验证 GitHub 和 GitCode 的访问 Token 是否有效。这是所有上传操作的前置检查。
Inputs: token_gh (required), token_gt (required).
full_upload_gameA
一键完整上传游戏:1)验证Token 2)获取配置 3)添加游戏条目 4)上传封面 5)发布Release。最常用的完整流程。
Inputs: game (required), library (required), token_gh (required), token_gt (required), +3 more.
get_apk_idA
解析 APK 文件的包名(package name),并将包名中的点号 '.' 替换为下划线 '_',生成符合 AUL 规则的游戏 ID。用于移动端(library=mobile)游戏上传前的 ID 自动生成。
Inputs: apk_path (required).
get_configA
获取指定游戏库(桌面/移动)的配置文件 config.json,返回 games 列表以及配置 sha。
Inputs: library (required), token_gh (required), token_gt (required).
get_cover_imageA
从远程游戏库下载指定游戏的封面图片({game_id}.webp)。优先走 jsDelivr CDN,失败时回退到 GitHub Contents API。写入本地文件后返回路径与大小。
Inputs: game_id (required), library (required), use_cdn, token_gh, +1 more.
release_game_assetB
发布游戏安装包到 GitHub/GitCode Release。需要对应的 Release tag(v{version})预先存在。
Inputs: game_id (required), library (required), version (required), token_gh (required), +3 more.
upload_cover_imageA
上传或更新游戏封面图片到 data 分支。自动缩放(最大 640x480)并转换为 WebP 格式。图片在两个仓库同步。
Inputs: game_id (required), library (required), token_gh (required), token_gt (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool covers a distinct resource or action: token validation, config fetching, cover upload/download, release asset publishing, entry addition, APK ID generation, and the composite full upload flow. The only mild ambiguity is that full_upload_game overlaps with the individual upload steps, but its description clearly positions it as the complete one-click alternative.
Most tools follow a clear verb_noun pattern like check_tokens, get_config, add_game_entry, upload_cover_image, and get_apk_id. The main deviation is full_upload_game, which does not start with the verb, but the overall naming is still predictable and readable.
With 8 tools, the set is well scoped for an upload pipeline: it covers authentication, config retrieval, APK parsing, cover image handling, asset release, entry creation, and a composite workflow. Each tool earns its place without the set feeling bloated or too sparse.
The core upload lifecycle is fully supported: token validation, config fetching, adding entries, uploading covers, publishing release assets, and the full end-to-end flow. Minor gaps exist, such as the lack of update/delete operations for game entries and no release tag creation, but these are mostly outside the primary uploader scope and can be worked around.
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI clients like Claude and ChatGPT to generate images and videos, animate images, create lip-synced videos, list TTS voices, and manage media via remote MCP tools.-
- AlicenseAqualityCmaintenanceEnables AI agents to publish games through typed MCP tools, including creating games, uploading builds, defining achievements, attaching media, and publishing without human dashboard interaction.41Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to search, browse, download, favorite, post-process, and configure albums and related content through MCP tools and resources.-
- AlicenseAqualityCmaintenanceEnables AI assistants to inspect, create, modify, and manage FiveM/RedM server resources, configuration, backups, and live runtime actions through a secure MCP interface.12MIT