Pixel art and sprite sheets Cascade asks for while it codes
Cascade, the agent inside Windsurf, already writes your levels and your player controller. With asset gen added as an MCP server, it can also ask for what the level is drawn with: a crystal cave in crisp 16-bit pixels, a miner who idles and walks, a coin pickup chime. The server offers Cascade a single tool named asset, and the words it passes are the same ones you would type after asset in a terminal, so nothing it does is hidden from you. The caves and the miner on this page came out of exactly those calls.
Set it up in Windsurf
Install the CLI
Install the asset command (Node 20.11 or later).
npm install -g @tyrbo/assetAdd the MCP server to Windsurf
Put the server in ~/.codeium/windsurf/mcp_config.json (Cascade: Open MCP config file), then reload the agent so it starts it.
{ "mcpServers": { "tyrbo-asset": { "command": "npx", "args": [ "-y", "@tyrbo/asset", "mcp" ] } } }Try it free
In an empty scratch folder, a mock call checks the setup with no key: it writes stand-in files and spends nothing.
asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mockLog in in your own terminal
Make an asset key in the Tyrbo app (Settings, Asset gen) and paste it into asset login yourself. The agent never asks for the key and never runs the login.
asset login
Windsurf’s own docs, read November 25, 2026:
The commands
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side --mock
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side
asset character miner "a small miner with a headlamp and a pickaxe" --view side --clips idle,walk
asset synth gem pickup
asset spendMade by the CLI, not drawn for this page
Real files the asset CLI wrote, each under the command that made it.

See prompt
asset character miner "a small miner with a headlamp and a pickaxe" --view side --clips idle,walk
See prompt
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side
Tool call or terminal: Cascade can do both
Cascade has two ways in. Through the server, it calls the asset tool with a list of words, such as ["character", "miner", "a small miner with a headlamp"], and the game's folder. Through the terminal, it types the command itself. The result is identical either way, because the server runs the very same program.
The tool tends to be the tidier choice: no shell quoting to get wrong, and the answer arrives as the tool's reply. The terminal suits you when you want to see the command in a card first and edit its wording before it goes.
A workspace rule for the art
Cascade loads Markdown rules from .windsurf/rules in your workspace. Save one there for the art, built from the agent lines on the docs page:
- The look comes first, and every later picture is asked in it.
- Try a new kind of call with
--mockbefore paying for it. - Read
asset <verb> --helprather than guessing a flag. - Build the interface after the characters, and the title screen last.
Because the rule sits in the workspace, every new Cascade conversation starts out knowing it, and a teammate who opens the project gets the same habits.
Approving the calls that cost
Windsurf decides when a terminal command needs your OK by its permission rules (allow, ask, deny) and then by the session mode: Code asks, Smart lets a fast model pass commands it judges safe, and Bypass Permissions runs them. A sensible split for art: allow asset spend and anything with --mock, and leave paid calls on ask so you read each prompt before it goes.
Behind that sits asset gen's own guard. A paid call is quoted before it runs and refused, with nothing spent, when your credits cannot cover it. Repeating a call you made before is answered from your account's cache for free.
What Cascade reads back
A finished call answers with one JSON line: the files written under public/assets/, what the call cost, and what is spent and left. Cascade can take miner-sheet.png and miner.anim.json from that line straight into the sprite code. A refusal comes on stderr with exit code 1 and a plain reason, which Cascade can fix by rewording, or bring to you if it is about credits.
Questions people ask
Windsurf’s docs now live on a Devin site. Does the setup change?
Only where the file lives. The server entry is the same JSON in either config file Windsurf reads, and Cascade’s “Open MCP config file” opens the one it uses.
Can Cascade log in for me?
No. The server refuses asset login on purpose. You paste the key into your own terminal once, and from then on every call Cascade makes uses it.
Are the sound effects paid?
asset synth makes short retro sounds such as a pickup, a jump or a hit for free. asset sfx and asset music describe a sound in words and are paid, quoted first like any other call.
Install it, then ask for the look.
Get an asset keyMake a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.