Files
bdj 46199d1ce5 feat(image): pass --model and --aspect-ratio through to image MCP server; bump @atxp/client to ^0.11.7
The `atxp image` command was dropping any model/aspect-ratio the user wanted
to pin — `imageCommand(prompt)` only forwarded the prompt to
`image_create_image_async`. That left the server-side default in charge
which, for direct MCP callers (no atxp-pics wrapping), recently caused a
production incident where the default `gpt-4o-mini` path produced unfaithful
outputs until the env var was switched to `gpt-image-2`.

This adds:
- `--model <model>` — forwarded as the tool's `model` arg (gpt-image-2,
  gpt-4o, dall-e-3, gemini-3-pro-image-preview, etc.)
- `--aspect-ratio <ratio>` (also accepts `--aspectRatio` for parity with the
  underlying tool parameter name) — forwarded as `aspectRatio`

Empty/unset options are not added to the args object so server defaults
still kick in when nothing is specified.

Also bumps `@atxp/client` from `^0.10.5` to `^0.11.7` to match what
production MCP servers (image, music) are running. The 0.10.x series
predates the middleware-settlement work and several payment-protocol
fixes that landed in 0.11.x; the API surface used here (`atxpClient`,
`ATXPAccount`) is unchanged. `npm install` regenerated `package-lock.json`.

Help text + README usage examples updated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 09:32:38 -07:00
..
2025-09-09 12:38:36 -04:00