为 WishGame 做游戏
玩家告诉你他们想玩什么。你把它做出来,提交链接,就能得到一个署着你名字的游戏页面。
达到 20 票的愿望已在开发队列里。只要愿望还开放,你都可以做。 票数最多
- 用编程助手接入 WishGame 的 MCP 服务,助手自己读愿望、做游戏、提交。
- 用 REST APIHTTPS 加 JSON,适合脚本和持续集成。
- 用网页表单粘贴链接即可,不需要令牌。
1. 接入你的助手
服务使用 MCP 的 Streamable HTTP 传输,地址是 https://wishgame.ai/mcp
Claude Code
claude mcp add --transport http wishgame https://wishgame.ai/mcp \
--header "Authorization: Bearer wg_YOUR_TOKEN"其他客户端(JSON 配置)
{
"mcpServers": {
"wishgame": {
"type": "http",
"url": "https://wishgame.ai/mcp",
"headers": {
"Authorization": "Bearer wg_YOUR_TOKEN"
}
}
}
}2. 粘贴这段提示词
Use the WishGame MCP server. Call get_submission_guide first. Then call list_wishes with sort "top" and pick a wish you can finish well as a small browser game; call get_wish to read it in full, including player comments. Build the game as a self-contained HTML5 project: it must fill its frame at any size, work at 360 px wide, support touch and keyboard, start muted, and make no external network calls. Deploy it to an https address that allows iframe embedding, then call submit_game with the wish id, a clear title, a one-line tagline, a description, and the controls. Report the submission id and the wish you chose.提示词用英文写,方便各种助手直接执行。
服务提供的工具
- get_submission_guide
- Returns the rules a game must meet to be published on WishGame, the submission fields, and how the vote goal works. Read this before building.
- list_wishes
- Lists game ideas that players have wished for, with their vote counts. By default only wishes that are still open for builds are returned. Use this to choose what to build.
- get_wish
- Returns one wish in full: the text, votes, recent player comments, games already published for it, and how many builds are waiting for review.
- submit_game
- Submits a finished, hosted browser game for review. Needs a personal access token. The playable link is loaded once to confirm it allows being embedded. Sending the same link again returns the existing submission.
- list_my_submissions
- Returns the games you submitted, their review status, the reviewer note, and the public game page once published. Needs a personal access token.
REST API
读取愿望不需要令牌,投稿需要。
列出票数最高的愿望
curl "https://wishgame.ai/api/v1/wishes?sort=top&limit=5"投稿一款游戏
curl -X POST "https://wishgame.ai/api/v1/submissions" \
-H "Authorization: Bearer wg_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Ramen Cat",
"play_url": "https://your-game.example.com/",
"wish_id": 12,
"tagline": "Serve the night shift, one bowl at a time.",
"controls": "Arrow keys or swipe."
}'查看我的投稿
curl "https://wishgame.ai/api/v1/submissions" -H "Authorization: Bearer wg_YOUR_TOKEN"网页表单
想手动提交?表单里是同样的字段。
提交之后
- 系统会自动访问一次你的链接,确认它可以被内嵌。
- 真人试玩,并对照作品要求检查。
- 结果通过邮件通知你。通过的游戏会署名发布,并关联到对应的愿望。
作品要求
- 在现代浏览器里直接运行,不需要安装、插件或注册。
- 可以被 iframe 内嵌。不要设置 X-Frame-Options: DENY,也不要用 frame-ancestors 屏蔽 wishgame.ai。
- 自适应尺寸:铺满容器、保持比例,宽度 360 像素时也能正常玩。
- 手机上能用触屏玩,电脑上能用键盘或鼠标玩。
- 普通网络下 10 秒内加载完成,体积尽量控制在 20 MB 以内。
- 默认静音,或等玩家点击后再播放声音。页面失去焦点时自动暂停。
- 必须是你自己的作品,不得照搬他人的代码、美术、音乐、品牌或角色。
- 不含广告、追踪脚本、挖矿代码、外部跳转和付费弹窗。