GOOF MCP
# GOOF MCP
Build a small game with your AI assistant and publish it on [GOOF](https://goof.gg), the app where people swipe
through games like short videos.
This is an [MCP](https://modelcontextprotocol.io) server. Connect it to Claude, ChatGPT, Grok, Cursor or any
assistant that speaks MCP, then just ask:
> Make a one-thumb arcade game for GOOF and give me a link to try it on my phone.
The assistant reads GOOF's game guide, writes the game, checks it against the platform rules, uploads it to your
developer account and hands you a test link. When you like it, it submits the game for review.
- **Hosted:** `https://mcp.goof.gg/mcp` (sign in with your GOOF developer account)
- **Local:** `npx -y github:goof-gg/goof-mcp` (uses an API key; can upload a game folder from your disk)
- No dependencies, Node 18+.
## What the assistant gets
| Tool | What it does |
| --- | --- |
| `goof_guide` | The guide: how to design for a swipe feed, the technical rules, the SDK, a complete template game, the review checklist |
| `goof_check_game` | Checks game files before upload: files loaded from other sites (the apps refuse them), missing files, viewport, sizes, SDK calls, touch input |
| `goof_account` | The developer account in use |
| `goof_list_games` | Your games |
| `goof_create_game` | Creates a game (draft) |
| `goof_update_game` | Name, description, category, links, and your content declaration |
| `goof_upload_version` | Checks and uploads a build; returns a test link valid 2 hours on any phone |
| `goof_preview_link` | A fresh test link for a version |
| `goof_submit_for_review` | Sends a version to review |
| `goof_game_status` | States of every version and the reviewer's note |
| `goof_analytics` | Players, play time, retention, reactions |
| `goof_upload_cover` | The cover picture (portrait 3:4) |
Nothing goes public without you: an upload is private until it is submitted, and a person at GOOF reviews every
version before it goes live.
## Before you start
1. Create a developer account on [developer.goof.gg](https://developer.goof.gg) and finish the business
verification (Account > Business verification). Assistants and API keys work once it is approved.
2. Then either sign in when your assistant asks (hosted server), or make an API key under Account > API keys
(local server, CI, API calls).
Just want the guide and the checks, without an account? Use `https://mcp.goof.gg/guide`: two tools, no sign-in.
## Connect your assistant
### Claude
**Claude apps (claude.ai, desktop, mobile):** Settings > Connectors > Add custom connector, address
`https://mcp.goof.gg/mcp`. Claude opens GOOF's sign-in page; press Allow.
**Claude Code**, hosted with sign-in:
```sh
claude mcp add --transport http goof https://mcp.goof.gg/mcp
```
then run `/mcp` in Claude Code and sign in. Or local, with a key (it can then upload a folder from your disk):
```sh
claude mcp add goof --env GOOF_API_KEY=gk_your_key -- npx -y github:goof-gg/goof-mcp
```
**Claude Desktop, local** (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"goof": {
"command": "npx",
"args": ["-y", "github:goof-gg/goof-mcp"],
"env": { "GOOF_API_KEY": "gk_your_key" }
}
}
}
```
**Claude API** (MCP connector): give `https://mcp.goof.gg/mcp` as the server address and your API key as its
authorization token.
### ChatGPT and OpenAI
**ChatGPT:** Settings > Apps & Connectors > turn on Developer mode > Create, address `https://mcp.goof.gg/mcp`,
authentication OAuth. ChatGPT opens GOOF's sign-in page; press Allow.
**Codex CLI** (`~/.codex/config.toml`):
```toml
[mcp_servers.goof]
command = "npx"
args = ["-y", "github:goof-gg/goof-mcp"]
env = { GOOF_API_KEY = "gk_your_key" }
```
**Responses API:**
```json
{
"type": "mcp",
"server_label": "goof",
"server_url": "https://mcp.goof.gg/mcp",
"authorization": "gk_your_key",
"require_approval": "always"
}
```
### Grok (xAI)
The xAI API connects to remote MCP servers: add an `mcp` tool with `server_url` `https://mcp.goof.gg/mcp`,
`server_label` `goof` and your API key as `authorization`. See xAI's "Remote MCP tools" page for the current field
names in your SDK.
### Cursor, VS Code, Windsurf, Gemini CLI and others
Hosted (sign in when asked):
```json
{ "mcpServers": { "goof": { "url": "https://mcp.goof.gg/mcp" } } }
```
Local:
```json
{ "mcpServers": { "goof": { "command": "npx", "args": ["-y", "github:goof-gg/goof-mcp"], "env": { "GOOF_API_KEY": "gk_your_key" } } } }
```
Any client can also send the key itself: header `Authorization: Bearer gk_your_key` on `https://mcp.goof.gg/mcp`.
## Signing in and keys
- **Sign-in.** The hosted server uses the standard MCP sign-in (OAuth 2.1 with PKCE). Your assistant sends you
to developer.goof.gg, where you see which assistant is asking and what it can do, and press Allow. This creates
an API key in your account named after the assistant ("AI: ChatGPT"). To disconnect an assistant, revoke that key
under Account > API keys.
- **What a connection can do.** Read your account name, games, versions and analytics; create games and edit
their information; upload versions; get test links; submit for review.
- **What it cannot do.** See earnings or payouts, change your account, delete games, create ad units or products,
manage team roles or keys, or put anything live without GOOF's review.
- **Treat a key like a password.** Do not paste it into a chat or commit it. Give it to the assistant through its
configuration (`GOOF_API_KEY`), as above.
- Limits: 60 uploads a day per key, 20 games and 5 keys per account.
## What makes a good GOOF game
The full guide is in [`guide/`](guide/) and is what `goof_guide` returns. In short:
- Play starts at once: no menu, no splash. The player understands the goal from one look.
- Portrait, one thumb, touch only. Design for 390 x 694 points and stretch from there.
- Rounds of 30 to 90 seconds, restart in one tap, a reason to play again.
- Everything ships inside the game: the apps refuse files from other sites. The only outside script is the GOOF SDK.
- Pause on `GOOF.game.onHide`, resume on `onShow`, call `gameReady()`, save with `setStorage`.
- Ads only when the player chooses (rewarded) or at natural breaks; never on load or during play.
[`guide/template.md`](guide/template.md) is a complete game in one file that follows all of it.
## Develop
```sh
npm test # builds the guide and runs the tests (no network)
npm run build # after editing guide/*.md: regenerates src/guide.gen.js
```
- `src/core.js`: the MCP server (tools, JSON-RPC), shared by both transports
- `src/check.js`: the game checks; `src/zip.js`: zip writer
- `bin/goof-mcp.mjs`: stdio transport (local)
- `worker/index.js`: HTTP transport and sign-in (the Cloudflare Worker behind mcp.goof.gg)
- `guide/*.md`: the guide
`GOOF_API_BASE` points the local server at another API address.
Issues and pull requests are welcome, especially on the guide and the checks.
## Links
- Developer portal and docs: https://developer.goof.gg
- SDK reference: https://developer.goof.gg/docs/api
- Policies: https://developer.goof.gg/docs/policies
MIT licence. "GOOF" and the GOOF logo are trademarks of their owner; the licence covers this code and guide, not
the GOOF platform, its apps or its games.
TDQS
Scored across 12 tools
Most tools target clearly distinct actions (create, list, update, upload, submit, cover, analytics, guide). A few boundaries blur — goof_check_game overlaps with the validation performed inside goof_upload_version, goof_preview_link overlaps with the test link returned by upload, and goof_game_status vs goof_list_games differ mainly by granularity — but the descriptions explicitly distinguish them.
All names share the goof_ prefix and snake_case, which keeps them readable and grouped. However, the verb_noun convention is not uniform: some are verb-led (goof_create_game, goof_upload_cover, goof_list_games) while others are noun-only or reversed (goof_guide, goof_account, goof_analytics, goof_preview_link, goof_game_status).
Twelve tools is well within a comfortable range and each maps to a real step in the publish workflow (guide, check, create, upload, preview, submit, cover, status, analytics, account). Nothing appears redundant or padded.
The surface covers the full lifecycle from authoring guidance through creation, local validation, uploading, previewing, reviewing, and post-launch analytics. Minor gaps exist: no delete/unpublish or withdraw-from-review operation, and analytics is limited to live games over fixed windows.