Automating Easy Writer

Three ways to drive the app, from lightest to most powerful. Full references are in the API reference.

Scripts

The Script Console runs JavaScript macros against the live project through a world bridge (documents, entities, categories — read and undoable edits). A whole macro is one undo step. Save macros to the library. Reference: Scripting API.

Plugins

Compile a native C++ plugin that contributes colour themes and AI commands, loaded at startup from the app's plugins/ folder. Reference: C++ plugin API.

The MCP server

Easy Writer ships a headless local server, easywriter-mcp, that speaks the Model Context Protocol over stdio. An MCP client such as Claude Desktop launches it with a project path and calls its tools to read and change everything in the project. Set it up from Help ▸ Connect Claude Desktop. Reference: MCP API.