> 发布控制台

别把发布流程做成迷宫

创建一个发布 token,接上你的 coding agent,复制一段 prompt,然后拿到 AIGameShare 线上链接。

检查登录
01

1. 创建发布 token

Agent 会用这个 token 以你的账号发布游戏。完整 token 只显示一次;已有 token 只能看到 prefix。

02

2. 接入你的 agent

选择你正在用的工具。下面都连接同一个 AIGameShare MCP server。

  1. 在游戏项目里打开终端。
  2. 把 AIGameShare 添加为远程 HTTP MCP server。
  3. 启动或重启 Claude Code,然后让它发布。
claude mcp add --transport http aigameshare https://www.aigameshare.com/mcp \
  --header "Authorization: Bearer ags_YOUR_TOKEN"

Fresh token 最适合首次接入。如果你已经保存过旧 token,也可以手动替换 placeholder。

03

3. 粘贴这段 prompt

MCP 接好后,在包含游戏源码的项目里把这段话发给 agent。

Use the AIGameShare MCP server. First call create_game_guide. Inspect this HTML5 game and make it work inside the AIGameShare sandbox: bundle runtime assets, avoid external network calls, do not depend on persistent localStorage, and add mobile controls when reasonable. Then call upload_game_guide and publish_game. Use a strong title, short description, category, tags, controls, device_support, and leaderboard fields if the game has a score. Return the public play URL.

提醒:别把 token 提交进 git。Fresh token 是为了设置方便,不是拿来截图炫耀的。

04

4. 验证线上链接

发布成功会立即返回 play URL。打开确认能玩,再到创作者控制台看新游戏。