// How this demo works
Infinite Mario
— how it works
You
Click START GAME. The AI generates a brand-new Mario level every time — no two runs are the same.
AI Pal
An LLM (GPT-4o or Claude) designs the level by calling browser tools in sequence — config, terrain batches, then finalize.
WebMCP
Levels are built via navigator.modelContext.registerTool() — the new W3C browser standard. No screenshots. Real JS functions called directly.
Credits
Each level generation hits a real LLM. You get 1 free credit ($1). When it runs out, buy more at app.leanmcp.com/billing.
Gateway
All calls flow through the LeanMCP AI Gateway — every call logged, every cost tracked.