mcp

v0.2.0
@bonusround/mcp Checked 4 days ago Published 1 month ago

MCP server for Bonus Round (bonusround.io): monetize your three.js game with one line of code.

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

bonusround_list_games List games

List the Bonus Round games (publisher properties) on this account, with their pub ids, status and whether the SDK has been seen.

bonusround_create_game Create game

Register a three.js game with Bonus Round. Returns the game id, its public pub_ id and the install snippet. Use the URL where the game is (or will be) hosted; that origin is what the SDK ping is matched against.

ParameterTypeDescription
url *stringPublic URL of the game, e.g. https://mygame.example.com/play
namestringDisplay name; defaults to the page title.

bonusround_get_snippet Get install snippet

The exact script tag (with this game's data-pub), the attach line, example break/rewarded calls and the ads.txt line for a game.

ParameterTypeDescription
gameId *stringGame id (gm_…) from bonusround_list_games

bonusround_integration_status Integration status

Check whether the Bonus Round SDK has been seen running in the game (integration.lastSeenAt), plus learning status and test mode. Pass waitSeconds to poll until the SDK is seen, after you load the game in a browser.

ParameterTypeDescription
gameId *string
waitSecondsintegerPoll every 3 s for up to this long until integration.lastSeenAt is set. Default 0 (check once).

bonusround_start_learning Start learning

(Re)start the Bonus Round play agent for a game: it plays the game in a headless browser to learn controls, scale, art style and a good spot for the ambient prop. Starts automatically on the first SDK ping; call this to re-learn after big changes.

ParameterTypeDescription
gameId *string

bonusround_get_stats Game stats

Requests, fill rate, impressions, viewable impressions, engagements, clicks, earnings and eCPM for a game. Money is in micros (1 USD = 1,000,000); a dollars summary is included. Test-mode traffic never earns and is counted separately under `test`, not in the totals.

ParameterTypeDescription
gameId *string
daysintegerDefault 30

bonusround_update_settings Update game settings

Change a game: name, test mode, content rating, categories, allowed domains, paused, and ad settings (formats, triggers, interval, floors, blocked categories, frequency cap). settings is deep-merged into the current settings. Turning testMode off makes the game eligible for paid ads: confirm with the user first.

ParameterTypeDescription
gameId *string
categoriesarrayGame genres, e.g. ["arcade","racing"]
domainsarrayHostnames allowed to serve ads, e.g. ["mygame.com","mygame.itch.io"]. Replaces the whole list; subdomains are included. localhost always works.
namestring
pausedbooleantrue stops all ads in this game right away. Only when the user asks.
ratingstring
settingsobject
testModebooleantrue = only the Fizzpop test ad, never billed. false = live.

bonusround_integration_guide Integration guide

The canonical step-by-step recipe for AI coding agents integrating Bonus Round into a three.js game (integrate.md). Read this before editing the user's game.