Context for Mechanic - the WoW addon development hub. Covers the CLI, MCP server, dashboard, in-game modules, and MechanicLib. Load this for deep understanding of Mechanic tooling...
Mechanic is the unified platform for WoW addon development, providing CLI tools, MCP integration, a web dashboard, and in-game diagnostics.
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Mechanic Desktop ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
ā ā CLI (mech) ā ā MCP Server ā ā Dashboard ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā SavedVariables Sync
āāāāāāāāāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā !Mechanic Addon ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
ā ā Console ā ā Errors ā ā Tests ā ā
ā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā āāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
MANDATORY: ALWAYS use MCP tools directly instead of the shell.
| Task | MCP Tool |
|---|---|
| Env Status | env.status() |
| Get Addon Output | addon.output(agent_mode=true) |
| Lint Addon | addon.lint(addon="MyAddon") |
| Format Addon | addon.format(addon="MyAddon") |
| Run Tests | addon.test(addon="MyAddon") |
| Sync Addon | addon.sync(addon="MyAddon") |
| Search APIs | api.search(query="*Spell*") |
mech)Command-line interface for all operations:
mech lint <addon> - Run Luacheckmech format <addon> - Run StyLuamech test <addon> - Run Busted testsmech release <addon> <version> "<message>" - Full release workflowExposes 53 AFD commands as MCP tools for AI agents. All functionality available via mech call <command> is also available as MCP tools.
Web UI at http://localhost:5173:
The !Mechanic addon provides:
Addons register with Mechanic via MechanicLib:
local ML = LibStub("MechanicLib")
ML:RegisterAddon("MyAddon", {
version = "1.0.0",
Print = function(...) ML:Print("MyAddon", ...) end,
})
| Request type | Load reference |
|---|---|
| CLI commands | references/cli-commands.md |
| AFD commands | references/afd-commands.md |
| In-game modules | references/ingame-modules.md |
| MechanicLib | references/mechaniclib.md |
| Dashboard | references/dashboard.md |