scmJS docs

In the source

File What it holds
cli/src/mcp.ts The MCP server: each tool a command's functions, its text and JSON as the result
cli/src/link.ts A map linked to the editor: the page between the command and the editor, and the reads and writes that go through it
src/services/editorLink.ts The editor's end of a link: the map handed over, a changed one taken back as an undo step, the selection and the view
cli/src/mapedit.ts, cli/src/objects.ts map_edit and the lists of units and locations
cli/src/terrain.ts map_terrain, map_doodads and what the terrain and doodad edits lay
cli/src/settings.ts map_settings and the settings map_set sets