StateCLI adds memory and undo capabilities to AI agents through five core MCP tools: track, replay, undo, checkpoint, and log. When your agent makes a breaking change, you can call statecli_undo to roll back instantly. Before risky operations, statecli_checkpoint creates a restore point. The statecli_replay tool shows exactly what changed and when, solving the common problem of agents losing track of their own modifications. It includes statecli_analyze_error for diagnosing failures by examining action history, and statecli_safe_execute to wrap operations in automatic checkpoint and rollback logic. Under the hood it watches file changes and maintains a reversible event log. Install via npx, point it at your codebase with watch mode, and agents gain persistent memory of their actions.
claude mcp add --transport stdio io.github.charo360-statecli -- npx -y statecli-mcp-server