imgx-cli 0.5.1 → 0.5.2
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 +12 -0
- package/README.md +45 -7
- package/dist/cli.bundle.js +1 -1
- package/dist/mcp.bundle.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.2 (2026-02-26)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- `imgx-mcp` bin: added missing shebang (`#!/usr/bin/env node`) — fixes `npx imgx-mcp` and Claude Desktop MCP integration on all platforms
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- README: add Claude Desktop MCP configuration (Windows `cmd /c` + macOS/Linux)
|
|
12
|
+
- README: switch all MCP config examples from local `node` path to `npx`
|
|
13
|
+
|
|
3
14
|
## 0.5.1 (2026-02-26)
|
|
4
15
|
|
|
5
16
|
### Added
|
|
@@ -10,6 +21,7 @@
|
|
|
10
21
|
|
|
11
22
|
### Changed
|
|
12
23
|
|
|
24
|
+
- README: added Claude Desktop MCP configuration section with output directory note
|
|
13
25
|
- README: added Google AI Studio link for API key setup, MCP env section note
|
|
14
26
|
|
|
15
27
|
## 0.5.0 (2026-02-26)
|
package/README.md
CHANGED
|
@@ -206,38 +206,76 @@ Add to your tool's MCP config. The `env` section is optional if you have already
|
|
|
206
206
|
{
|
|
207
207
|
"mcpServers": {
|
|
208
208
|
"imgx": {
|
|
209
|
-
"command": "
|
|
210
|
-
"args": ["
|
|
209
|
+
"command": "npx",
|
|
210
|
+
"args": ["--package=imgx-cli", "-y", "imgx-mcp"],
|
|
211
211
|
"env": { "GEMINI_API_KEY": "your-api-key" }
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
+
On Windows, replace `"command": "npx"` with `"command": "cmd"` and prepend `"/c"` to the args array.
|
|
218
|
+
|
|
219
|
+
Or install as a [Claude Code plugin](#install) for automatic MCP registration.
|
|
220
|
+
|
|
217
221
|
**Gemini CLI** (`~/.gemini/settings.json`):
|
|
218
222
|
|
|
219
223
|
```json
|
|
220
224
|
{
|
|
221
225
|
"mcpServers": {
|
|
222
226
|
"imgx": {
|
|
223
|
-
"command": "
|
|
224
|
-
"args": ["
|
|
227
|
+
"command": "npx",
|
|
228
|
+
"args": ["--package=imgx-cli", "-y", "imgx-mcp"],
|
|
229
|
+
"env": { "GEMINI_API_KEY": "your-api-key" }
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Claude Desktop** (`claude_desktop_config.json`):
|
|
236
|
+
|
|
237
|
+
macOS / Linux:
|
|
238
|
+
|
|
239
|
+
```json
|
|
240
|
+
{
|
|
241
|
+
"mcpServers": {
|
|
242
|
+
"imgx": {
|
|
243
|
+
"command": "npx",
|
|
244
|
+
"args": ["--package=imgx-cli", "-y", "imgx-mcp"],
|
|
225
245
|
"env": { "GEMINI_API_KEY": "your-api-key" }
|
|
226
246
|
}
|
|
227
247
|
}
|
|
228
248
|
}
|
|
229
249
|
```
|
|
230
250
|
|
|
251
|
+
Windows:
|
|
252
|
+
|
|
253
|
+
```json
|
|
254
|
+
{
|
|
255
|
+
"mcpServers": {
|
|
256
|
+
"imgx": {
|
|
257
|
+
"command": "cmd",
|
|
258
|
+
"args": ["/c", "npx", "--package=imgx-cli", "-y", "imgx-mcp"],
|
|
259
|
+
"env": { "GEMINI_API_KEY": "your-api-key" }
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Config file location: `%APPDATA%\Claude\claude_desktop_config.json` (Windows) or `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS). After editing, restart Claude Desktop.
|
|
266
|
+
|
|
267
|
+
> **Note:** Claude Desktop runs the MCP server from its own app directory. Images will be saved there by default. To control the output location, add `"IMGX_OUTPUT_DIR": "C:\\Users\\you\\Pictures"` to the `env` section, or run `imgx config set output-dir <path>` beforehand.
|
|
268
|
+
|
|
231
269
|
**Codex CLI** (`.codex/config.toml`):
|
|
232
270
|
|
|
233
271
|
```toml
|
|
234
272
|
[mcp_servers.imgx]
|
|
235
|
-
command = "
|
|
236
|
-
args = ["
|
|
273
|
+
command = "npx"
|
|
274
|
+
args = ["--package=imgx-cli", "-y", "imgx-mcp"]
|
|
237
275
|
env = { GEMINI_API_KEY = "your-api-key" }
|
|
238
276
|
```
|
|
239
277
|
|
|
240
|
-
The same
|
|
278
|
+
The same `npx` pattern works with Cursor, Windsurf, Continue.dev, Cline, Zed, and other MCP-compatible tools. On Windows, use `cmd /c npx` instead of `npx` directly.
|
|
241
279
|
|
|
242
280
|
## Architecture
|
|
243
281
|
|
package/dist/cli.bundle.js
CHANGED
|
@@ -39554,7 +39554,7 @@ function showAll() {
|
|
|
39554
39554
|
}
|
|
39555
39555
|
|
|
39556
39556
|
// build/cli/index.js
|
|
39557
|
-
var VERSION2 = "0.5.
|
|
39557
|
+
var VERSION2 = "0.5.2";
|
|
39558
39558
|
var HELP = `imgx v${VERSION2} \u2014 AI image generation and editing CLI
|
|
39559
39559
|
|
|
39560
39560
|
Commands:
|
package/dist/mcp.bundle.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
@@ -69377,7 +69378,7 @@ function initGemini() {
|
|
|
69377
69378
|
// build/mcp/server.js
|
|
69378
69379
|
var server = new McpServer({
|
|
69379
69380
|
name: "imgx",
|
|
69380
|
-
version: "0.5.
|
|
69381
|
+
version: "0.5.2"
|
|
69381
69382
|
});
|
|
69382
69383
|
initGemini();
|
|
69383
69384
|
function resolveProvider(providerName) {
|