Publish your game
Let local AI help you choose, or use your preferred channel. 1GP provides the hosting resources.
- ✓Choose a method
- 2Copy prompt
- 3Publish with local AI
Not sure how to publish? Ask local AI
AI inspects your project, recommends a method, prepares it, and publishes to 1GP hosting. Prefer local builds and upload only necessary runtime files.
Paste the prompt into a local AI tool such as Codex or Claude Code in your game project. Connect to 1GP; no personal Vercel or AWS login is needed.
View prompt
若当前工具已有 1GP MCP 就直接使用;仅在缺少时安装用户级 v0.8.0,不在游戏项目新建 .mcp.json。Claude Code:claude mcp add onegp --scope user -- npx --yes github:1gp-studio/publisher-mcp#v0.8.0;其他客户端见 https://github.com/1gp-studio/publisher-mcp。已有旧版本只需升级。使用已连接的 1GP MCP,在当前本地游戏项目中操作。只有收到 AUTH_REQUIRED 才调用 connect_platform,让我本人完成账号授权;已有明确授权和选择直接沿用,不反复确认。请为当前游戏选择并完成合适的发布路径。先调用一次 prepare_game,它会识别原游戏、发布渠道、版本差异、构建方式、语言和已有可选功能。复用返回结果,不紧接着重复调用 find_my_game、prepare_release、inspect_game、check_game_languages;代码改变后只重查受影响的部分。多个游戏匹配时让我选择,不猜编号。已有游戏沿用原渠道;新游戏按实际代码、构建配置和服务端依赖推荐渠道,优先本地构建、API 上传最少必要产物。检查现有产物与当前代码是否一致,可复用则复用;需要时调用 build_vercel_game,沿用返回的 deployment_target、vercel_output_directory 调用 publish_game,不再次传 build_script 重复编译。保留上传前的最终产物安全检查。静态游戏使用静态产物;有兼容 HTTP 服务端时上传完整 Vercel Build Output API v3 网页、函数、路由和运行依赖,不能只发前端。自建 WebSocket、常驻进程或内存房间状态评估 1GP Docker 的权限和资源限制,不把所有多人游戏都判为 Docker。可补齐构建配置、端口、健康检查和打包适配,不擅自重写玩法、网络协议或存储架构。缺少数据库、配置、权限或资源时说明阻碍。多语言、云存档、排行榜分别可选。沿用已有配置和明确选择;对尚未决定且本次有关的选项集中询问一次,再用 prepare_game 的 features 记住我的选择。未回答不等于同意,不因发布而自动开启功能,也不因本次不接入而关闭已有功能。选择云存档或排行榜后按 add_cloud_saves、add_leaderboard 的流程配置并改造游戏代码;新游戏必须先有真实游戏 ID,缺少 ID 时保持请求关闭,不编造配置。已有或本次同意接入多语言时,确认游戏先读 ?lang=,按 zh、en、ja、ko、es 的顺序补齐目标语言缺失或过期的翻译,跳过原始语言;原始语言不在这五种中时保留原文并补齐这五种目标,保留已有其他语言。用 upload_game_text 上传,上传内置整批校验并返回最终状态;通过后不重复 validate_game_text 或 get_game_text_status,只有单独预检、排错或状态待处理时才再调用。用 set_game_details 按需补齐这五种目标语言的游戏名和简介,仅提交实际改动;把内容集中给我看,已有授权直接执行。所有新增托管使用 1GP 的资源,不要求我登录 Vercel、AWS 或 ECR,不创建个人云项目或索取云密钥。不上传凭证、无关源码或 source map。依据 prepare_game 的版本差异写真实版本说明。已有发布授权就继续执行;没有发布授权时先完成代码和检查再征求发布授权。异步发布返回 build ID 后使用 wait_for_publish;pending 时继续等待同一个任务,中断后可省略 build_id 恢复。失败或结果不明时先查原因,不重新发布碰运气。只有 ready 才算部署成功,再检查网页和必要接口,给出链接及未验证项;不能将部署成功说成多人玩法或可选功能已验证。
Setup and API integration
Players receive browser code and assets; 1GP hosts necessary server artifacts. AI checks the full runtime requirements instead of uploading only the frontend to bypass issues.
MCP setup guide ↗ · Local publishing API guide ↗OptionalExtra platform services: leaderboards and cloud savesNot needed to publish; add them now or any time later.
Add platform leaderboards
Track scores, completion times and personal bests to give every round a new challenge.
Add platform cloud saves
Save levels, inventory and quests so signed-in players can continue on another device, without interrupting gameplay.
These features are optional and can be added after publishing. Paste a prompt into your AI tool or add the skill to your game project. Once published, choose the game in Developer Center for its configuration.
Open Developer Center