mcp

v0.4.5
io.github.isco-tec/mcp Checked 4 days ago Published 1 month ago

Official Scorezilla MCP: add a global leaderboard to your game by asking Claude Code or Cursor.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_games

List all games owned by the authenticated developer. Returns each game with id, slug, name, and createdAt. Use this first to orient before creating new resources or inspecting an existing game. If the result is an empty list and the developer wants to add a leaderboard, call bootstrap_leaderboard next.

list_boards

List all leaderboards (boards) under a given game. Each board has its own id, slug, ranking (sortDir: desc = high-score-wins, asc = lowest-time-wins), score kind (integer / duration_ms / float), retention policy, and optional min/max score bounds. Call this to find a board's id before generating a snippet (get_sdk_snippet) or reading standings (get_board_top_n), or to show the developer what boards already exist under a game returned by list_games.

ParameterTypeDescription
gameId *stringUUID of the game to list boards for (from list_games)

get_keys

Get a game's API keys. Returns, per key: kind ('public' | 'secret'), prefix, createdAt, and rotation/revocation timestamps. The PUBLIC key includes its full plaintext (it's safe to embed in client code). The SECRET key's plaintext is ALWAYS null over MCP — only its prefix is shown, for identification. Use this to retrieve the public key for a client_only integration, or to check which keys exist / have been revoked. If the developer needs the full SECRET key (for a client_with_server / server_only anti-cheat setup), direct them to https://dashboard.scorezilla.dev — the Keys section under t…

ParameterTypeDescription
gameId *stringUUID of the game to fetch keys for (from list_games)

get_board_top_n

Get the top-ranked entries on a leaderboard. Call this after the developer submits a test score to confirm the integration is wired correctly — they will see their own test entry appear. Also useful for displaying current standings.

ParameterTypeDescription
boardId *stringUUID of the board
nintegerNumber of entries to return (1–100). Defaults to 10.

get_sdk_snippet

Call this whenever the developer asks how to submit a score, initialize the SDK, or integrate a leaderboard into their code — INCLUDING when they want a setup other than the default: anti-cheat (server-validated scores), OAuth player identity, or a non-TypeScript server. Returns a ready-to-paste integration snippet (the `snippet` field) tailored to the axis arguments. Omit the axis args for the simplest anonymous + client-only TypeScript setup; set hostingPattern='client_with_server' (+ a serverLanguage and/or auth provider) for the secure anti-cheat path. Use it right after bootstrap_leader…

ParameterTypeDescription
boardId *stringUUID of the board to target in the snippet
gameId *stringUUID of the game
authProviderstringRequired when playerIdentityStrategy is 'auth_provider'. supabase/clerk/auth0/firebase get a server-side JWT-verifying secure-submit endpoint (real anti-cheat); google ships a browser helper; github/a…
hostingPatternstringIntegrity model. 'client_only' (default): the browser holds the public key — simplest, but NO anti-cheat. 'client_with_server': your server validates + signs scores — use this for competitive boar…
playerIdentityStrategystringHow players are attributed. 'anonymous' (default) mints a local UUID, no PII; 'prompted_local' asks once and saves to localStorage; 'auth_provider' uses OAuth (also set authProvider); 'server_authorit…
serverLanguagestringLanguage for the server-side snippet. Required for hostingPattern 'server_only'; optional for 'client_with_server' (defaults to typescript, which gets the turnkey createScoreSubmitHandler endpoint). p…

bootstrap_leaderboard

Use this when starting from scratch — creates a new game AND its first board in one call, then returns ready-to-paste integration code wired against the board. The fastest path from "I want a leaderboard" to "scores are flowing." Do NOT call this if the developer already has games — call list_games first and use bootstrap_leaderboard only when no game exists yet. The response includes `snippets.sdk` (framework/server code), `snippets.widget` (a themeable drop-in HTML embed; null for server_only), and a plain-English `recommendation` to relay to the developer — paste `snippets.sdk` (and/o…

ParameterTypeDescription
boardName *stringDisplay name of the leaderboard
boardSlug *stringURL-safe slug for the board, e.g. "high-scores" (2–42 chars, lowercase + hyphens)
gameName *stringDisplay name of the game (any string)
gameSlug *stringURL-safe slug for the game, e.g. "my-racing-game" (2–42 chars, lowercase + hyphens; derive from gameName)
authProviderstringRequired when playerIdentityStrategy is 'auth_provider'. supabase/clerk/auth0/firebase get a server-side JWT-verifying secure-submit endpoint (real anti-cheat); google ships a browser helper; github/a…
hostingPatternstringIntegrity model. 'client_only' (default): the browser holds the public key — simplest, but NO anti-cheat. 'client_with_server': your server validates + signs scores — use this for competitive boar…
playerIdentityStrategystringHow players are attributed. 'anonymous' (default) mints a local UUID, no PII; 'prompted_local' asks once and saves to localStorage; 'auth_provider' uses OAuth (also set authProvider); 'server_authorit…
scoreKindstringScore type: integer (default), duration_ms (time trials), or float
serverLanguagestringLanguage for the server-side snippet. Required for hostingPattern 'server_only'; optional for 'client_with_server' (defaults to typescript, which gets the turnkey createScoreSubmitHandler endpoint). p…
sortDirstring"desc" for high-scores-win, "asc" for lowest-time-wins

create_game

Create a new (empty) game in the developer's account. Use this when they ALREADY have a game (so bootstrap_leaderboard would conflict) or want an additional game — call list_games first to check. Returns the gameId; follow up with create_board to add leaderboards and mint_key for keys. For a first-ever game from scratch, prefer bootstrap_leaderboard (it does game + board + keys + code in one call).

ParameterTypeDescription
name *stringDisplay name of the game
slug *stringURL-safe slug, e.g. "neon-runner" (2–42 chars, lowercase + hyphens; derive from name)

create_board

Add a leaderboard board to an EXISTING game (by gameId — get it from list_games). This is how you add boards to a game that already exists; bootstrap_leaderboard only works for brand-new games. sortDir "desc" = high-scores-win, "asc" = lowest-time-wins. Returns the created board including its id.

ParameterTypeDescription
gameId *stringUUID of the game to add the board to (from list_games)
name *stringDisplay name of the leaderboard
slug *stringURL-safe slug for the board, e.g. "high-scores" (2–42 chars, lowercase + hyphens)
maxScorenumberOptional upper bound; scores above are rejected
minScorenumberOptional lower bound; scores below are rejected
retentionNintegerRequired when retentionPolicy="top_n": how many top scores to retain (1–1,000,000)
retentionPolicystringHow long scores are kept: all (default), top_n (best N — set retentionN), or rolling_30d
scoreKindstringScore type: integer (default), duration_ms (time trials), or float
sortDirstring"desc" for high-scores-win, "asc" for lowest-time-wins

mint_key

Mint a fresh public/secret key pair for an EXISTING game (by gameId). Returns publicKey (pk_ — safe for the browser/widget) and secretKey (sk_ — server-only, shown ONCE; tell the developer to store it now). Use when a game needs keys, or to add another pair. Key revocation/rotation is done in the dashboard. Note: the secret also appears in this MCP host's tool-call transcript, so treat the conversation as sensitive until cleared.

ParameterTypeDescription
gameId *stringUUID of the game to mint keys for (from list_games)

update_board_config

Update a board's scoring config AFTER creation (by gameId + boardId — from list_games / list_boards). PARTIAL: only the fields you pass change. Use it to cap scores for anti-cheat (maxScore), set a floor (minScore), or change retention. A bound can be cleared by passing null. Returns the full updated board.

ParameterTypeDescription
boardId *stringUUID of the board to update (from list_boards)
gameId *stringUUID of the game (from list_games)
maxScorenumber | nullUpper bound; scores above are rejected (the anti-cheat cap). Pass null to clear it.
minScorenumber | nullLower bound; scores below are rejected. Pass null to clear it.
retentionNTop scores to retain when retentionPolicy="top_n" (1–1,000,000); null clears it
retentionPolicystringHow long scores are kept: all, top_n (set retentionN), or rolling_30d

update_game_config

Set a game's allowed-origins allowlist AFTER creation (by gameId — from list_games). Restricts browser score submissions to specific web origins: an exact origin like "https://yourgame.com" or a wildcard host like "*.yourgame.com" (up to 20). Pass an empty array to allow all origins (the default). Returns the normalized stored list. Gates browser requests only — server-to-server calls send no Origin header.

ParameterTypeDescription
allowedOrigins *arrayOrigin patterns — exact https origin or *.host wildcard, validated server-side. Full replacement of the allowlist; [] allows all origins.
gameId *stringUUID of the game (from list_games)