Image iteration is inherently exploratory, and a stateless editor punishes exploration: an edit that goes wrong means regenerating and losing everything after the last good state. History with undo and redo makes trying something cheap, which is the difference between converging on what you wanted and settling for what you got. edit_last is the small ergonomic win — mid-iteration nobody knows the filename, they mean 'that one', and the tool understands that. Sessions are what let a second image exist without the first one's history getting in the way.
An image generation and editing client whose distinguishing feature is state: edits form a history with undo and redo, work is grouped into sessions, and the last image is addressable without naming a file.
- generate_image and edit_image cover the basics, and edit_last applies new instructions to the most recent result — the call you actually want mid-iteration.
- undo_edit and redo_edit move through the history, so a bad edit costs nothing rather than requiring a regeneration.
- edit_history shows every session, and switch_session returns to a previous image to continue work on it.
- set_output_dir changes where files land, and clear_history resets the current project's history.
- list_providers reports the available image providers and what each can do.
GEMINI_API_KEY.
One command plus a key — npm install -g imgx-mcp, then supply credentials
