01
1. 创建发布 token
Agent 会用这个 token 以你的账号发布游戏。完整 token 只显示一次;已有 token 只能看到 prefix。
> 发布控制台
创建一个发布 token,接上你的 coding agent,复制一段 prompt,然后拿到 AIGameShare 线上链接。
Agent 会用这个 token 以你的账号发布游戏。完整 token 只显示一次;已有 token 只能看到 prefix。
选择你正在用的工具。下面都连接同一个 AIGameShare MCP server。
claude mcp add --transport http aigameshare https://www.aigameshare.com/mcp \
--header "Authorization: Bearer ags_YOUR_TOKEN"Fresh token 最适合首次接入。如果你已经保存过旧 token,也可以手动替换 placeholder。
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 是为了设置方便,不是拿来截图炫耀的。
表单仍然支持单文件 HTML 或 zip 构建。慢一点,但能用。
发布成功会立即返回 play URL。打开确认能玩,再到创作者控制台看新游戏。