imgx-mcp 0.9.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,168 +1,208 @@
1
- # Changelog
2
-
3
- ## 0.9.0 (2026-02-28)
4
-
5
- ### Changed
6
-
7
- - **Renamed from `imgx-cli` to `imgx-mcp`** reflects primary value as an MCP server for AI coding agents (Claude Code, Codex CLI, Cursor, etc.). CLI command remains `imgx`. npm package is now `imgx-mcp`.
8
- - Updated tagline: "AI image generation and editing for Claude Code, Codex CLI, and MCP-compatible AI agents"
9
- - All plugin manifests, registry entries, and documentation updated to `imgx-mcp`
10
-
11
- ### Migration
12
-
13
- - `npm install -g imgx-mcp` (replaces `imgx-cli`)
14
- - MCP config: `--package=imgx-mcp` (replaces `--package=imgx-cli`)
15
- - Claude Code plugin: `somacoffeekyoto/imgx-mcp` (replaces `somacoffeekyoto/imgx-cli`)
16
- - GitHub repo: `somacoffeekyoto/imgx-mcp` (auto-redirect from old URL)
17
-
18
- ## 0.8.1 (2026-02-27)
19
-
20
- ### Changed
21
-
22
- - Remove MCP inline preview size guard — always include base64 image data in MCP responses regardless of size. MCP clients that support `type: "image"` content (e.g. Claude Desktop) will display inline; others will use the file path from the text content. Gemini-generated images (~900KB raw, ~1.2MB base64) exceed Claude Desktop's 1MB limit but the file path fallback ensures usability.
23
-
24
- ## 0.8.0 (2026-02-27)
25
-
26
- ### Fixed
27
-
28
- - **MCP inline preview size guard** — images exceeding ~780KB base64 (Claude Desktop's 1MB tool result limit) are now gracefully skipped from inline preview. Full-quality images are always saved to disk. Previously, oversized images caused silent display failures in Claude Desktop.
29
-
30
- ## 0.7.1 (2026-02-27)
31
-
32
- ### Fixed
33
-
34
- - Remove `MULTIPLE_OUTPUTS` capability from Gemini provider — `gemini-3-pro-image-preview` does not support `candidateCount`, causing errors when `count > 1`
35
-
36
- ## 0.7.0 (2026-02-27)
37
-
38
- ### Added
39
-
40
- - **Output format selection** `--format` flag (CLI) and `output_format` parameter (MCP) to choose between `png`, `jpeg`, or `webp` output. Currently supported by OpenAI provider (`gpt-image-1`). Gemini provider outputs PNG regardless of format setting.
41
- - `OUTPUT_FORMAT` capability added to provider capability system
42
-
43
- ## 0.6.2 (2026-02-27)
44
-
45
- ### Added
46
-
47
- - **Image preview in MCP responses**MCP tool results now include inline image data (base64) alongside file paths. Claude Desktop and other MCP clients can display generated/edited images directly without opening files manually.
48
-
49
- ## 0.6.1 (2026-02-27)
50
-
51
- ### Fixed
52
-
53
- - Default output directory changed from process cwd to `~/Pictures/imgx` — fixes images being saved to AppData when used via MCP (Claude Desktop, etc.)
54
-
55
- ## 0.6.0 (2026-02-27)
56
-
57
- ### Added
58
-
59
- - **OpenAI provider** — `gpt-image-1` model with generate and edit support
60
- - Native `fetch` implementation (no `openai` npm dependency)
61
- - Aspect ratio mapping to OpenAI size strings, resolution mapping to quality parameter
62
- - Manual multipart/form-data construction for Node 18 compatibility
63
- - `OPENAI_API_KEY` environment variable support
64
- - `--provider` flag for `imgx config set api-key` — manage API keys per provider
65
- - `imgx config set api-key <key> --provider openai`
66
- - `imgx config list` now shows all configured provider keys
67
-
68
- ### Changed
69
-
70
- - CLI and MCP server now initialize both Gemini and OpenAI providers at startup
71
- - `imgx providers` and error messages updated for multi-provider context
72
- - Help text updated with OpenAI provider info and env var
73
-
74
- ## 0.5.2 (2026-02-26)
75
-
76
- ### Fixed
77
-
78
- - `imgx-mcp` bin: added missing shebang (`#!/usr/bin/env node`) — fixes `npx imgx-mcp` and Claude Desktop MCP integration on all platforms
79
-
80
- ### Changed
81
-
82
- - README: add Claude Desktop MCP configuration (Windows `cmd /c` + macOS/Linux)
83
- - README: switch all MCP config examples from local `node` path to `npx`
84
- - README: replace "Version updates" with full release checklist (version bump → build → publish → verify)
85
-
86
- ## 0.5.1 (2026-02-26)
87
-
88
- ### Added
89
-
90
- - Published to npm (`npm install -g imgx-cli` / `npx imgx`)
91
- - `mcpName` field for MCP Registry integration
92
- - `server.json` for MCP Registry publishing
93
-
94
- ### Changed
95
-
96
- - README: added Claude Desktop MCP configuration section with output directory note
97
- - README: added Google AI Studio link for API key setup, MCP env section note
98
-
99
- ## 0.5.0 (2026-02-26)
100
-
101
- ### Added
102
-
103
- - `edit_last` MCP tool — edit the last generated/edited image via MCP without specifying input path
104
- - `imgx init` command create `.imgxrc` project config template in current directory
105
- - MCP server now tracks last output (shared with CLI `--last` flag)
106
-
107
- ## 0.4.0 (2026-02-26)
108
-
109
- ### Added
110
-
111
- - `--last` (`-l`) flag for `edit` command use the previous output as input automatically
112
- - Works with both `generate` and `edit` outputs
113
- - Enables iterative editing without manually specifying file paths
114
- - `.imgxrc` project config — place in project directory for project-level defaults
115
- - Supports `defaults.model`, `defaults.outputDir`, `defaults.aspectRatio`, `defaults.resolution`, `defaults.provider`
116
- - Shared via Git (no API keys — use `imgx config set api-key` or env vars)
117
-
118
- ### Changed
119
-
120
- - Settings resolution expanded to 5 layers: CLI flags → env vars → `.imgxrc` → user config → provider defaults
121
-
122
- ## 0.3.0 (2026-02-26)
123
-
124
- ### Added
125
-
126
- - `imgx config` command — manage API keys and default settings via config file
127
- - `config set api-key <key>` — save Gemini API key (no more manual environment variable setup)
128
- - `config set model|provider|output-dir|aspect-ratio|resolution <value>` — set defaults
129
- - `config list` — show all settings
130
- - `config get <key>` show a specific setting (API key is masked)
131
- - `config path` show config file location
132
- - Config file at `~/.config/imgx/config.json` (Linux/macOS) or `%APPDATA%\imgx\config.json` (Windows)
133
- - Settings resolution: CLI flags → environment variables → config file → provider defaults
134
- - Uninstall instructions in README (plugin, npm, MCP, config cleanup)
135
-
136
- ### Changed
137
-
138
- - API key resolution: environment variable → config file (env var still takes precedence)
139
- - Default model, provider, output-dir, aspect-ratio, resolution are now configurable via `imgx config set`
140
-
141
- ## 0.2.0 (2026-02-26)
142
-
143
- ### Added
144
-
145
- - MCP server (`dist/mcp.bundle.js`) exposes `generate_image`, `edit_image`, `list_providers` tools via Model Context Protocol stdio transport
146
- - Works with Gemini CLI, Codex CLI, Antigravity, Cursor, Windsurf, Continue.dev, Cline, Zed, and any MCP-compatible tool
147
- - `.mcp.json` updated with actual server config for Claude Code plugin auto-registration
148
- - `imgx-mcp` bin command for direct MCP server execution
149
-
150
- ## 0.1.0 (2026-02-26)
151
-
152
- Initial release.
153
-
154
- ### Features
155
-
156
- - `generate` command: text-to-image generation
157
- - `edit` command: image editing with text instructions
158
- - `providers` command: list available providers
159
- - `capabilities` command: show provider capabilities
160
- - Gemini provider with 6 capabilities (generate, edit, aspect ratio, resolution, reference images, person control)
161
- - Capability-based provider abstraction (model-independent core + model-dependent providers)
162
- - JSON output for scripting and tool integration
163
- - Single-file esbuild bundle
164
-
165
- ### Distribution
166
-
167
- - Claude Code plugin: `somacoffeekyoto/imgx-cli` marketplace with `image-generation` skill
168
- - npm package name reserved: `imgx-cli` (publish pending)
1
+ # Changelog
2
+
3
+ ## 1.0.0 (2026-03-03)
4
+
5
+ ### Added
6
+
7
+ - **Session-based undo/redo** — N-step undo and redo within editing sessions. Each `generate` starts a new session; `edit --last` appends to the active session. Up to 10 entries per session with root protection
8
+ - **Edit history** Full session history with metadata (prompt, provider, model, operation, timestamps). View with `imgx history` or `edit_history` MCP tool
9
+ - **Session management** Switch between sessions (`imgx history switch <id>` / `switch_session`), clear history with optional file deletion (`imgx history clear` / `clear_history`)
10
+ - **Session directories** — Image output organized by session ID under the output directory (`~/Pictures/imgx/<session-id>/`)
11
+ - **Output directory migration** — `imgx config set output-dir` now offers to move existing files and updates all history paths
12
+ - **6 new MCP tools** — `undo_edit`, `redo_edit`, `edit_history`, `switch_session`, `clear_history`, `set_output_dir`
13
+ - **3 new CLI commands** — `imgx undo`, `imgx redo`, `imgx history` (with `switch` and `clear` subcommands)
14
+ - **Test framework** Vitest introduced with 31 tests covering history and storage modules
15
+
16
+ ### Changed
17
+
18
+ - `saveLastOutput` / `loadLastOutput` replaced by session-based `pushHistory` / `getActiveEntry`
19
+ - `last-output.json` replaced by `output-history.json` (no backward compatibility)
20
+ - `edit -i <image>` now creates a new session (external image starts a new chain)
21
+ - `edit --last` / `edit_last` appends to the active session at cursor position
22
+
23
+ ### Removed
24
+
25
+ - `last-output.json` — replaced by `output-history.json`
26
+ - `saveLastOutput()` / `loadLastOutput()` functions from config module
27
+
28
+ ## 0.9.1 (2026-03-02)
29
+
30
+ ### Added
31
+
32
+ - **Skill included in npm package** — `skills/image-generation/SKILL.md` and `references/providers.md` now ship with the npm package, making it easier to install the Claude Code skill
33
+
34
+ ### Changed
35
+
36
+ - README restructured: Skill section moved after Quick Start, Plugin section moved to bottom
37
+ - Skill install instructions added (npm copy, curl from GitHub, manual placement)
38
+ - SKILL.md: added missing MCP parameters (`output_format`, `output_dir`, `model`, `provider` on edit tools)
39
+ - SKILL.md: CLI fallback updated from plugin path to `npx imgx-mcp`
40
+ - providers.md: OpenAI `OUTPUT_FORMAT` corrected from CLI-only to MCP `output_format` parameter
41
+ - npm keywords: added `skill`, `claude-code`
42
+
43
+ ## 0.9.0 (2026-02-28)
44
+
45
+ ### Changed
46
+
47
+ - **Renamed from `imgx-cli` to `imgx-mcp`**reflects primary value as an MCP server for AI coding agents (Claude Code, Codex CLI, Cursor, etc.). CLI command remains `imgx`. npm package is now `imgx-mcp`.
48
+ - Updated tagline: "AI image generation and editing for Claude Code, Codex CLI, and MCP-compatible AI agents"
49
+ - All plugin manifests, registry entries, and documentation updated to `imgx-mcp`
50
+
51
+ ### Migration
52
+
53
+ - `npm install -g imgx-mcp` (replaces `imgx-cli`)
54
+ - MCP config: `--package=imgx-mcp` (replaces `--package=imgx-cli`)
55
+ - Claude Code plugin: `somacoffeekyoto/imgx-mcp` (replaces `somacoffeekyoto/imgx-cli`)
56
+ - GitHub repo: `somacoffeekyoto/imgx-mcp` (auto-redirect from old URL)
57
+
58
+ ## 0.8.1 (2026-02-27)
59
+
60
+ ### Changed
61
+
62
+ - Remove MCP inline preview size guard — always include base64 image data in MCP responses regardless of size. MCP clients that support `type: "image"` content (e.g. Claude Desktop) will display inline; others will use the file path from the text content. Gemini-generated images (~900KB raw, ~1.2MB base64) exceed Claude Desktop's 1MB limit but the file path fallback ensures usability.
63
+
64
+ ## 0.8.0 (2026-02-27)
65
+
66
+ ### Fixed
67
+
68
+ - **MCP inline preview size guard** — images exceeding ~780KB base64 (Claude Desktop's 1MB tool result limit) are now gracefully skipped from inline preview. Full-quality images are always saved to disk. Previously, oversized images caused silent display failures in Claude Desktop.
69
+
70
+ ## 0.7.1 (2026-02-27)
71
+
72
+ ### Fixed
73
+
74
+ - Remove `MULTIPLE_OUTPUTS` capability from Gemini provider — `gemini-3-pro-image-preview` does not support `candidateCount`, causing errors when `count > 1`
75
+
76
+ ## 0.7.0 (2026-02-27)
77
+
78
+ ### Added
79
+
80
+ - **Output format selection** — `--format` flag (CLI) and `output_format` parameter (MCP) to choose between `png`, `jpeg`, or `webp` output. Currently supported by OpenAI provider (`gpt-image-1`). Gemini provider outputs PNG regardless of format setting.
81
+ - `OUTPUT_FORMAT` capability added to provider capability system
82
+
83
+ ## 0.6.2 (2026-02-27)
84
+
85
+ ### Added
86
+
87
+ - **Image preview in MCP responses** — MCP tool results now include inline image data (base64) alongside file paths. Claude Desktop and other MCP clients can display generated/edited images directly without opening files manually.
88
+
89
+ ## 0.6.1 (2026-02-27)
90
+
91
+ ### Fixed
92
+
93
+ - Default output directory changed from process cwd to `~/Pictures/imgx` — fixes images being saved to AppData when used via MCP (Claude Desktop, etc.)
94
+
95
+ ## 0.6.0 (2026-02-27)
96
+
97
+ ### Added
98
+
99
+ - **OpenAI provider** — `gpt-image-1` model with generate and edit support
100
+ - Native `fetch` implementation (no `openai` npm dependency)
101
+ - Aspect ratio mapping to OpenAI size strings, resolution mapping to quality parameter
102
+ - Manual multipart/form-data construction for Node 18 compatibility
103
+ - `OPENAI_API_KEY` environment variable support
104
+ - `--provider` flag for `imgx config set api-key` manage API keys per provider
105
+ - `imgx config set api-key <key> --provider openai`
106
+ - `imgx config list` now shows all configured provider keys
107
+
108
+ ### Changed
109
+
110
+ - CLI and MCP server now initialize both Gemini and OpenAI providers at startup
111
+ - `imgx providers` and error messages updated for multi-provider context
112
+ - Help text updated with OpenAI provider info and env var
113
+
114
+ ## 0.5.2 (2026-02-26)
115
+
116
+ ### Fixed
117
+
118
+ - `imgx-mcp` bin: added missing shebang (`#!/usr/bin/env node`) — fixes `npx imgx-mcp` and Claude Desktop MCP integration on all platforms
119
+
120
+ ### Changed
121
+
122
+ - README: add Claude Desktop MCP configuration (Windows `cmd /c` + macOS/Linux)
123
+ - README: switch all MCP config examples from local `node` path to `npx`
124
+ - README: replace "Version updates" with full release checklist (version bump → build → publish → verify)
125
+
126
+ ## 0.5.1 (2026-02-26)
127
+
128
+ ### Added
129
+
130
+ - Published to npm (`npm install -g imgx-cli` / `npx imgx`)
131
+ - `mcpName` field for MCP Registry integration
132
+ - `server.json` for MCP Registry publishing
133
+
134
+ ### Changed
135
+
136
+ - README: added Claude Desktop MCP configuration section with output directory note
137
+ - README: added Google AI Studio link for API key setup, MCP env section note
138
+
139
+ ## 0.5.0 (2026-02-26)
140
+
141
+ ### Added
142
+
143
+ - `edit_last` MCP tool — edit the last generated/edited image via MCP without specifying input path
144
+ - `imgx init` command — create `.imgxrc` project config template in current directory
145
+ - MCP server now tracks last output (shared with CLI `--last` flag)
146
+
147
+ ## 0.4.0 (2026-02-26)
148
+
149
+ ### Added
150
+
151
+ - `--last` (`-l`) flag for `edit` command — use the previous output as input automatically
152
+ - Works with both `generate` and `edit` outputs
153
+ - Enables iterative editing without manually specifying file paths
154
+ - `.imgxrc` project config — place in project directory for project-level defaults
155
+ - Supports `defaults.model`, `defaults.outputDir`, `defaults.aspectRatio`, `defaults.resolution`, `defaults.provider`
156
+ - Shared via Git (no API keys — use `imgx config set api-key` or env vars)
157
+
158
+ ### Changed
159
+
160
+ - Settings resolution expanded to 5 layers: CLI flags env vars `.imgxrc` → user config → provider defaults
161
+
162
+ ## 0.3.0 (2026-02-26)
163
+
164
+ ### Added
165
+
166
+ - `imgx config` command — manage API keys and default settings via config file
167
+ - `config set api-key <key>` save Gemini API key (no more manual environment variable setup)
168
+ - `config set model|provider|output-dir|aspect-ratio|resolution <value>` set defaults
169
+ - `config list` — show all settings
170
+ - `config get <key>` — show a specific setting (API key is masked)
171
+ - `config path` — show config file location
172
+ - Config file at `~/.config/imgx/config.json` (Linux/macOS) or `%APPDATA%\imgx\config.json` (Windows)
173
+ - Settings resolution: CLI flags → environment variables → config file → provider defaults
174
+ - Uninstall instructions in README (plugin, npm, MCP, config cleanup)
175
+
176
+ ### Changed
177
+
178
+ - API key resolution: environment variable → config file (env var still takes precedence)
179
+ - Default model, provider, output-dir, aspect-ratio, resolution are now configurable via `imgx config set`
180
+
181
+ ## 0.2.0 (2026-02-26)
182
+
183
+ ### Added
184
+
185
+ - MCP server (`dist/mcp.bundle.js`) — exposes `generate_image`, `edit_image`, `list_providers` tools via Model Context Protocol stdio transport
186
+ - Works with Gemini CLI, Codex CLI, Antigravity, Cursor, Windsurf, Continue.dev, Cline, Zed, and any MCP-compatible tool
187
+ - `.mcp.json` updated with actual server config for Claude Code plugin auto-registration
188
+ - `imgx-mcp` bin command for direct MCP server execution
189
+
190
+ ## 0.1.0 (2026-02-26)
191
+
192
+ Initial release.
193
+
194
+ ### Features
195
+
196
+ - `generate` command: text-to-image generation
197
+ - `edit` command: image editing with text instructions
198
+ - `providers` command: list available providers
199
+ - `capabilities` command: show provider capabilities
200
+ - Gemini provider with 6 capabilities (generate, edit, aspect ratio, resolution, reference images, person control)
201
+ - Capability-based provider abstraction (model-independent core + model-dependent providers)
202
+ - JSON output for scripting and tool integration
203
+ - Single-file esbuild bundle
204
+
205
+ ### Distribution
206
+
207
+ - Claude Code plugin: `somacoffeekyoto/imgx-cli` marketplace with `image-generation` skill
208
+ - npm package name reserved: `imgx-cli` (publish pending)
package/README.md CHANGED
@@ -403,6 +403,7 @@ MIT — [SOMA COFFEE KYOTO](https://github.com/somacoffeekyoto)
403
403
 
404
404
  ## Links
405
405
 
406
+ - [Official page](https://somacoffee.net/imgx-mcp/)
406
407
  - [GitHub](https://github.com/somacoffeekyoto/imgx-mcp)
407
408
  - [npm](https://www.npmjs.com/package/imgx-mcp)
408
409
  - [MCP Registry](https://registry.modelcontextprotocol.io)