scmJS docs

Your files and the game

What the tools may touch on your computer and your account, and which of them need your copy of StarCraft.

What the tools can do to your files#

What the tools can do to your account#

The tools that need the game#

map_preview, map_analyze, map_terrain, map_doodads, map_generate, map_trace, map_cost, map_test, map_coverage and map_balance need your copy of the game, and the ones that run it fetch the engine the first time. map_edit needs it for terrain, doodads, snap and check, and for nothing else; map_set needs it for a unit's, upgrade's or technology's numbers. On a map linked to the editor these read the editor's game data and need no copy here. map_run gives a script the game's data when a copy is there, and runs without when it is not: the terrain and doodad parts of the plugin API then do nothing and say so. doctor tells the model whether the game and the engine are there and what you would need to install, so it can tell you instead of failing. When the game is not in one of the usual places, set the StarCraft folder in the Claude Desktop extension's settings, or SCMJS_STARCRAFT in another app's MCP settings; the model can also pass the folder as starcraft.

map_build and the compile check of map_script_import need TypeScript 6. The Claude Desktop extension carries its own copy. Elsewhere, install it once in the maps folder with npm install typescript@6; doctor says whether it found one it can use.

A trace or cost run takes a few seconds and plays at most ten minutes of game. A test scenario takes about two seconds and plays at most an hour. map_coverage plays whole replays and map_balance whole games, so they take as long as the commands do. While a trace or cost run plays, an AI app that shows progress is sent the frame reached, and cancelling the request stops the game.

scmJS 0.18.0 · Generated from the repository. The source is under the MIT license, which does not cover what ATTRIBUTION.md lists. StarCraft and Brood War are trademarks of Blizzard Entertainment; this project ships none of their data.