muggle-repair
Diagnose and fix a broken Muggle AI installation. Use when user types muggle repair or asks to fix Muggle setup.
Muggle Repair
Automatically diagnose and fix broken components.
Steps
- Run the same checks as
/muggle:muggle-statusto identify what is broken. - If everything passes, report: "Nothing to repair — installation looks healthy."
- For each failing component:
- Electron app missing or corrupt — run
muggle setup --forceto re-download. - Authentication expired or invalid — run
muggle-remote-auth-loginto re-authenticate. - MCP server unresponsive — report the error and suggest restarting the session.
- Electron app missing or corrupt — run
- Run status checks again to confirm all components are healthy.
- Report what was repaired.
Output
Show before/after status for each repaired component. If repair fails, report the error with enough context for the user to investigate.