@meterapp/car-image-sdk 1.38.0 → 1.39.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @meterapp/car-image-sdk
2
2
 
3
- TypeScript SDK for the **Car Image API** by Meter — studio-quality, transparent-background renders of any vehicle in the open [`@meterapp/vehicle-db`](https://github.com/MeterApp/vehicle-db) catalog (1,608 makes, 42,312 models, model years 1990–2027, each with a page at [carimage.dev/cars](https://carimage.dev/cars?ref=npm-sdk)), in nine camera views and any paint color; plus stable vehicle ids, free VIN decoding and textured 3D models.
3
+ TypeScript SDK for the **Car Image API** by Meter — studio-quality, transparent-background renders of any vehicle in the open [`@meterapp/vehicle-db`](https://github.com/MeterApp/vehicle-db) catalog (1,608 makes, 42,334 models, model years 1990–2027, each with a page at [carimage.dev/cars](https://carimage.dev/cars?ref=npm-sdk)), in nine camera views and any paint color; plus stable vehicle ids, free VIN decoding and textured 3D models.
4
4
 
5
5
  - Zero runtime dependencies. Works in Node 20+, Vercel/Cloudflare edge runtimes, Deno, Bun and browsers.
6
6
  - Typed parameters and responses for every endpoint.
@@ -38,7 +38,7 @@ const image = await client.getImage({
38
38
  year: 2024,
39
39
  view: "front-3-4", // front | front-3-4 | side | rear-3-4 | rear | rear-3-4-right | side-right | front-3-4-right | top
40
40
  color: "red", // 15 presets (white black gray silver blue red green brown beige tan orange yellow gold burgundy purple) or any hex: "#1a2b3c"
41
- size: "medium", // thumb=256 small=512 medium=768 large=1024 — or width/height, delivered up to 1024 px
41
+ size: "medium", // thumb=256 small=512 medium=768 large=1024 — or width/height, delivered up to the stored image's own size
42
42
  format: "png", // png | webp | jpg | auto (auto negotiates WebP or PNG from the Accept header)
43
43
  });
44
44
 
@@ -122,7 +122,7 @@ if (data.vehicle) {
122
122
 
123
123
  `getImageAvailability({ vehicle, view, color })` checks one vehicle's prepared/cached views, quality (`standard`, `enhanced`, `premium`, or null), upgrade state and render estimates through free `GET /api/v1/images/availability`. Omit `view` for all nine. Prepared means ready to serve quickly from storage without waiting for a new render. The equivalent MCP tool is `get_image_availability`, available in both core and all toolsets. Neither call generates, queues or counts image usage.
124
124
 
125
- `checkAvailability(images)` checks up to 200 images at once before you ask for them, free and read-only (`POST /api/v1/images/availability`): whether each vehicle view is prepared, whether it would count a vehicle image or a new vehicle view this month, and whether the whole list fits the plan:
125
+ `checkAvailability(images)` checks up to 200 images at once before you ask for them, free and read-only (`POST /api/v1/images/availability`): whether each vehicle view is prepared, whether it would count a vehicle image this month (a view not prepared yet counts as one like any other), and whether the whole list fits the plan:
126
126
 
127
127
  ```ts
128
128
  const { data } = await client.checkAvailability(rows.map((row) => ({ vehicle: row.id, view: "front-3-4", color: row.paint })));
@@ -208,7 +208,7 @@ await client.unpublish3dModel(model.id); // the links stop worki
208
208
 
209
209
  ## Sizing, backgrounds and trimming
210
210
 
211
- Nine views, any paint color, PNG/WebP/JPG up to 1024 px — delivered at whatever box your layout needs.
211
+ Nine views, any paint color, PNG/WebP/JPG up to 2560 px (1024 px for renders from before 2026-11) — delivered at whatever box your layout needs.
212
212
 
213
213
  ```ts
214
214
  await client.getImage({
@@ -226,7 +226,9 @@ await client.getImage({
226
226
  | --- | --- | --- |
227
227
  | `color` | one of `COLORS` · a CSS color name · hex as `#rrggbb`, `rrggbb`, `#rgb` or `rgb` | The paint. Defaults to `silver`; echoed back as the preset name or `#rrggbb`. |
228
228
  | `size` | `thumb` 256 · `small` 512 · `medium` 768 · `large` 1024 | Square presets; shorthand for `width`. |
229
- | `width`, `height` | px, delivered up to 1024 | One dimension keeps the aspect ratio. Both together give exactly `width`×`height` (see `fit`). Nothing is upscaled past 1024, and a larger size is clamped by the server, not refused: a box keeps its shape (1920×1080 comes back 1024×576) and `ImageResult.width`/`height` report what was served. |
229
+ | `aspectRatio` | `1:1` · `4:3` · `3:2` · `16:9` · `natural` | A preset for the box; `natural` is the car's own trimmed shape. With `width` or `height` it completes the other; both together win. Not with `size`. |
230
+ | `resolution` | `small` 640 · `medium` 1280 · `hd` 1920 · `2k` 2560 | A preset for the box's longer side, delivered up to the stored image's own size. `width` or `height` win. Not with `size`. |
231
+ | `width`, `height` | px, delivered up to the stored image's own size | One dimension keeps the aspect ratio. Both together give exactly `width`×`height` (see `fit`). Nothing is upscaled, and a larger size is clamped by the server, not refused: a box keeps its shape (1920×1080 of a 1024 px image comes back 1024×576) and `ImageResult.width`/`height` report what was served. |
230
232
  | `fit` | `contain` (default) · `cover` · `inside` | Only matters with both dimensions. `contain` returns exactly the box with the whole car and transparent (or `background`) padding; `cover` fills the box and centre-crops; `inside` keeps the car within the box and may return a smaller image — the old behaviour. |
231
233
  | `background` | `transparent` (default) · a CSS color name (`white`, `whitesmoke`) · hex as `rrggbb`, `#rrggbb`, `rgb` or `#rgb` | A solid background flattens PNG and WebP too. `jpg` cannot be transparent and defaults to white. |
232
234
  | `framing` | `consistent` (default), `tight`, `balanced` | A preset in place of `trim`/`padding`: `tight` is `trim: true, padding: 0` (the car fills the box), `balanced` is `trim: true, padding: 6` (even catalog margins), `consistent` keeps the camera scale all nine views of a vehicle share (galleries, spinners, 3D previews). Same image, cache entry and credit as the spelled-out form; never together with `trim` or `padding`. |
@@ -235,7 +237,7 @@ await client.getImage({
235
237
  | `shadow` | `true` | A soft, neutral ground shadow under the car, drawn from its own cut-out at delivery: semi-transparent on a transparent image, grey on a `background`. Same vehicle image, nothing extra; car images only, not `getMakeLogo`. |
236
238
  | `format` | `png` (default) · `webp` · `jpg` · `auto` | `auto` picks WebP for clients whose `Accept` header lists it and PNG otherwise (`Vary: Accept`); a signed URL created with `auto` negotiates on every load. |
237
239
 
238
- The same parameters apply to `getImageUrl` and to every entry of `createImageUrls`; the returned `vehicle` echoes `vehicle_id`, `color`, `fit`, `background`, `trim`, `padding` and `shadow` back. `assertImageParams` (and therefore every call) rejects a `padding` without `trim`, a `framing` beside `trim` or `padding`, a dimension that is not a whole number of pixels from 1, a color that is neither a preset, a CSS color name nor a hex, and a request that names neither a vehicle id nor all of make, model and year, before anything is sent. A size above 1024 is sent as given, for the server to clamp.
240
+ The same parameters apply to `getImageUrl` and to every entry of `createImageUrls`; the returned `vehicle` echoes `vehicle_id`, `color`, `fit`, `background`, `trim`, `padding` and `shadow` back. `assertImageParams` (and therefore every call) rejects a `size` beside `aspectRatio` or `resolution`, a `framing` beside `trim` or `padding`, a dimension that is not a whole number of pixels from 1, a color that is neither a preset, a CSS color name nor a hex, and a request that names neither a vehicle id nor all of make, model and year, before anything is sent. A size above 1024 is sent as given, for the server to clamp.
239
241
 
240
242
  The SDK always sends the documented query names. Code that writes or forwards image URLs itself can read `IMAGE_QUERY_ALIASES`: every name an image URL may carry, each with the other names the server reads it under (`angle` for `view`, `paint` or `hex` for `color`, `bg` for `background`, `width` for `w`). Beyond those, the server ignores only tracking tags and cache busters (`utm_*`, `gclid`, `ref`, `v`, `t`, `_`…, named in `X-Ignored-Parameters`); any other name is a free `400` whose problem names it in `parameter` and lists the names the endpoint reads in `allowed`.
241
243
 
package/dist/client.d.ts CHANGED
@@ -130,8 +130,8 @@ export declare class CarImageClient {
130
130
  * counts nothing). For up to 200 images (the image objects
131
131
  * `createImageUrls` takes), whether each vehicle view is prepared (so every
132
132
  * color of it serves now), whether asking for it would count a vehicle
133
- * image or a new vehicle view this month, and whether the whole list fits
134
- * the plan's allowances. Check a catalog here before importing it.
133
+ * image this month (a view not prepared yet counts as one like any other),
134
+ * and whether the whole list fits the plan's allowance. Check a catalog here before importing it.
135
135
  */
136
136
  checkAvailability(images: ImageParams | ImageParams[], options?: RequestOptions): Promise<AvailabilityCheckResponse>;
137
137
  /** GET /api/v1/images/options — public; views, colors, sizes, formats, pricing, catalog. */
package/dist/client.js CHANGED
@@ -266,8 +266,8 @@ export class CarImageClient {
266
266
  * counts nothing). For up to 200 images (the image objects
267
267
  * `createImageUrls` takes), whether each vehicle view is prepared (so every
268
268
  * color of it serves now), whether asking for it would count a vehicle
269
- * image or a new vehicle view this month, and whether the whole list fits
270
- * the plan's allowances. Check a catalog here before importing it.
269
+ * image this month (a view not prepared yet counts as one like any other),
270
+ * and whether the whole list fits the plan's allowance. Check a catalog here before importing it.
271
271
  */
272
272
  async checkAvailability(images, options = {}) {
273
273
  const list = Array.isArray(images) ? images : [images];
@@ -14,7 +14,7 @@ import { type Format, type RequestFormat } from "../types.js";
14
14
  export declare const MCP_SERVER_INFO: {
15
15
  readonly name: "car-image-api";
16
16
  readonly title: "Car Image API";
17
- readonly version: "1.38.0";
17
+ readonly version: "1.39.0";
18
18
  readonly websiteUrl: "https://carimage.dev";
19
19
  };
20
20
  /**
@@ -126,6 +126,19 @@ export declare const imageInputSchema: z.ZodObject<{
126
126
  }>>;
127
127
  width: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
128
128
  height: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
129
+ aspect_ratio: z.ZodOptional<z.ZodEnum<{
130
+ "16:9": "16:9";
131
+ "1:1": "1:1";
132
+ "3:2": "3:2";
133
+ "4:3": "4:3";
134
+ natural: "natural";
135
+ }>>;
136
+ resolution: z.ZodOptional<z.ZodEnum<{
137
+ "2k": "2k";
138
+ hd: "hd";
139
+ medium: "medium";
140
+ small: "small";
141
+ }>>;
129
142
  fit: z.ZodOptional<z.ZodEnum<{
130
143
  contain: "contain";
131
144
  cover: "cover";
@@ -209,6 +222,19 @@ export declare const MCP_TOOL_SCHEMAS: {
209
222
  }>>;
210
223
  width: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
211
224
  height: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
225
+ aspect_ratio: z.ZodOptional<z.ZodEnum<{
226
+ "16:9": "16:9";
227
+ "1:1": "1:1";
228
+ "3:2": "3:2";
229
+ "4:3": "4:3";
230
+ natural: "natural";
231
+ }>>;
232
+ resolution: z.ZodOptional<z.ZodEnum<{
233
+ "2k": "2k";
234
+ hd: "hd";
235
+ medium: "medium";
236
+ small: "small";
237
+ }>>;
212
238
  fit: z.ZodOptional<z.ZodEnum<{
213
239
  contain: "contain";
214
240
  cover: "cover";
@@ -281,6 +307,19 @@ export declare const MCP_TOOL_SCHEMAS: {
281
307
  }>>;
282
308
  width: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
283
309
  height: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
310
+ aspect_ratio: z.ZodOptional<z.ZodEnum<{
311
+ "16:9": "16:9";
312
+ "1:1": "1:1";
313
+ "3:2": "3:2";
314
+ "4:3": "4:3";
315
+ natural: "natural";
316
+ }>>;
317
+ resolution: z.ZodOptional<z.ZodEnum<{
318
+ "2k": "2k";
319
+ hd: "hd";
320
+ medium: "medium";
321
+ small: "small";
322
+ }>>;
284
323
  fit: z.ZodOptional<z.ZodEnum<{
285
324
  contain: "contain";
286
325
  cover: "cover";
@@ -2350,8 +2389,12 @@ export interface CheckSummaryInput {
2350
2389
  /** Present when the check read views. */
2351
2390
  views_complete?: number;
2352
2391
  }
2353
- /** The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer. */
2354
- export declare function checkSummary(summary: CheckSummaryInput): string;
2392
+ /**
2393
+ * The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer.
2394
+ * A miss also names the requests page (on `origin`, the hosted server's own), where the human asks for a missing
2395
+ * vehicle and gets an email when it is added: `request_vehicle` is not in the core toolset.
2396
+ */
2397
+ export declare function checkSummary(summary: CheckSummaryInput, origin?: string): string;
2355
2398
  /** What {@link imageUrlsSummary} reads: create_car_image_urls' result on both servers, which is `POST /api/v1/image-urls`'s body. */
2356
2399
  export interface ImageUrlsSummaryInput {
2357
2400
  data: ReadonlyArray<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EA6BL,KAAK,MAAM,EACX,KAAK,aAAa,EACnB,MAAM,aAAa,CA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E,eAAe,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EA+BL,KAAK,MAAM,EACX,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAkBrB,eAAO,MAAM,eAAe;aAC1B,IAAI,EAAE,eAAe;aACrB,KAAK,EAAE,eAAe;aACtB,OAAO;aACP,UAAU;CACF,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;aAAK,KAAK;iBAAI,WAAW;;CAAoB,CAAC;AAElF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;aACvB,IAAI,YACF,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,eAAe;aAEjB,GAAG,YACD,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB;CAEV,CAAC;AACX,MAAM,MAAM,UAAU,GAAG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MAAM,EAAE,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,aAAa,CAMnG;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAmBrE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CASxE;AAED,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
package/dist/mcp/index.js CHANGED
@@ -12,9 +12,12 @@ import { checkoutLinkToolSchema, checkoutStatusResultSchema, checkoutStatusSchem
12
12
  */
13
13
  import * as z from "zod";
14
14
  import { isColor } from "../params.js";
15
- import { CATALOG, CHECK_STATUSES, COLORS, CREDITS_PER_3D_MODEL, CREDITS_PER_DOLLAR, CREDITS_PER_IMAGE, DEFAULT_BASE_URL, FITS, FORMATS, FRAMINGS, FREE_CREDITS, FREE_VEHICLE_IMAGES, PLAN_ALLOWANCES, IDEMPOTENCY_KEY_PATTERN, MAX_CHECK_VEHICLES, MAX_CHECK_VIEWS_VEHICLES, MAX_DIMENSION, MAX_PADDING_PERCENT, MIN_YEAR, MODEL_3D_FILE_KINDS, REFERRAL_SOURCES, REQUEST_FORMATS, REQUEST_KINDS, REQUEST_SORTS, REQUEST_STATUSES, SIZES, VEHICLE_ID_PATTERN, VIEWS, } from "../types.js";
15
+ import { CATALOG, CHECK_STATUSES, COLORS, CREDITS_PER_3D_MODEL, CREDITS_PER_DOLLAR, CREDITS_PER_IMAGE, DEFAULT_BASE_URL, FITS, FORMATS, FRAMINGS, FREE_CREDITS, FREE_VEHICLE_IMAGES, PLAN_ALLOWANCES, IDEMPOTENCY_KEY_PATTERN, MAX_CHECK_VEHICLES, MAX_CHECK_VIEWS_VEHICLES, ASPECT_RATIOS, RESOLUTIONS, MAX_PADDING_PERCENT, MIN_YEAR, MODEL_3D_FILE_KINDS, REFERRAL_SOURCES, REQUEST_FORMATS, REQUEST_KINDS, REQUEST_SORTS, REQUEST_STATUSES, SIZES, VEHICLE_ID_PATTERN, VIEWS, } from "../types.js";
16
16
  import { SDK_VERSION } from "../version.js";
17
17
  /** The 3D price as agents read it: "100 credits ($1.00)". */
18
+ const RESOLUTION_NAMES = Object.keys(RESOLUTIONS);
19
+ /** What an image's own size is, wherever the tools state a size limit. */
20
+ const STORED_SIZE_NOTE = "1024 px square for older renders, up to 2560 px for new ones";
18
21
  const MODEL_3D_PRICE = `${CREDITS_PER_3D_MODEL.toLocaleString("en-US")} credits ($${(CREDITS_PER_3D_MODEL / CREDITS_PER_DOLLAR).toFixed(2)})`;
19
22
  /**
20
23
  * Catalog size as agents read it in the instructions and tool descriptions.
@@ -273,9 +276,17 @@ export const imageInputSchema = z
273
276
  size: z
274
277
  .enum(["thumb", "small", "medium", "large"])
275
278
  .optional()
276
- .describe(`Square size preset: thumb=${SIZES.thumb}, small=${SIZES.small}, medium=${SIZES.medium}, large=${SIZES.large} px. Omit for ${MAX_DIMENSION} px.`),
277
- width: z.coerce.number().int().min(1).optional().describe(`Explicit width in px, up to ${MAX_DIMENSION}; overrides size. With height too, the output is exactly width x height. A larger size is clamped: the box shrinks to ${MAX_DIMENSION} on its longer side and keeps its shape (1920 x 1080 is delivered as ${MAX_DIMENSION} x 576).`),
278
- height: z.coerce.number().int().min(1).optional().describe(`Explicit height in px, up to ${MAX_DIMENSION} (a larger size is clamped, see width).`),
279
+ .describe(`Square size preset: thumb=${SIZES.thumb}, small=${SIZES.small}, medium=${SIZES.medium}, large=${SIZES.large} px. Omit for the stored image's full size.`),
280
+ width: z.coerce.number().int().min(1).optional().describe(`Explicit width in px; overrides size. With height too, the output is exactly width x height. Delivered up to the stored image's own size, ${STORED_SIZE_NOTE}: a larger size is clamped, a box shrinking whole and keeping its shape (1920 x 1080 of a 1024 px image is delivered as 1024 x 576).`),
281
+ height: z.coerce.number().int().min(1).optional().describe("Explicit height in px (a size above the stored image's own is clamped, see width)."),
282
+ aspect_ratio: z
283
+ .enum(ASPECT_RATIOS)
284
+ .optional()
285
+ .describe("A preset for the box: 1:1, 4:3, 3:2 or 16:9, at the resolution you name or the largest the image allows; natural = the car's own trimmed shape. With width or height it completes the other; both together win. Never with size."),
286
+ resolution: z
287
+ .enum(RESOLUTION_NAMES)
288
+ .optional()
289
+ .describe(`A preset for the longer side of the box: small=${RESOLUTIONS.small}, medium=${RESOLUTIONS.medium}, hd=${RESOLUTIONS.hd}, 2k=${RESOLUTIONS["2k"]} px, delivered up to the stored image's own size. width or height win. Never with size.`),
279
290
  fit: z
280
291
  .enum(FITS)
281
292
  .optional()
@@ -288,15 +299,15 @@ export const imageInputSchema = z
288
299
  framing: z
289
300
  .enum(FRAMINGS)
290
301
  .optional()
291
- .describe("Composition preset, instead of trim/padding (never with them): consistent (default) keeps the camera scale every view of the vehicle shares, for galleries and spinners; tight = trim with no margin, the car fills the box; balanced = trim with a 6% margin, for catalog grids and listings."),
292
- trim: z.boolean().optional().describe("Crop to the car's own bounds before sizing, so it fills the box instead of floating in the square source frame."),
302
+ .describe("Composition preset, instead of trim/padding (never with them): consistent (default) keeps one apparent scale across the vehicle's views, for galleries and spinners; tight = trim with no margin, the car fills the box; balanced = trim with a 6% margin, for catalog grids and listings."),
303
+ trim: z.boolean().optional().describe("Crop to the car's own bounds before sizing, so it fills the box instead of floating in the frame."),
293
304
  padding: z.coerce
294
305
  .number()
295
306
  .int()
296
307
  .min(0)
297
308
  .max(MAX_PADDING_PERCENT)
298
309
  .optional()
299
- .describe(`Margin around a trimmed car, percent of its longer side (0-${MAX_PADDING_PERCENT}). Only with trim.`),
310
+ .describe(`Margin around the image, percent of its longer side (0-${MAX_PADDING_PERCENT}): around the car with trim, around the stored frame without it.`),
300
311
  shadow: z
301
312
  .boolean()
302
313
  .optional()
@@ -1326,8 +1337,12 @@ export function searchSummary(query, count) {
1326
1337
  export function imageAvailabilitySummary(data) {
1327
1338
  return "Free availability check; nothing rendered or queued. " + data.views.map((view) => `${view.view}: ${view.cached ? `prepared (cached), ${view.quality ?? "quality unknown"}, serves quickly from storage` : `not prepared; first render ${view.render_eta ? `about ${view.render_eta.typical_seconds} seconds` : "time unavailable"}`}`).join("; ") + ".";
1328
1339
  }
1329
- /** The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer. */
1330
- export function checkSummary(summary) {
1340
+ /**
1341
+ * The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer.
1342
+ * A miss also names the requests page (on `origin`, the hosted server's own), where the human asks for a missing
1343
+ * vehicle and gets an email when it is added: `request_vehicle` is not in the core toolset.
1344
+ */
1345
+ export function checkSummary(summary, origin = DEFAULT_BASE_URL) {
1331
1346
  const plural = (count, one, many) => `${count} ${count === 1 ? one : many}`;
1332
1347
  const counts = [
1333
1348
  plural(summary.match, "match", "matches"),
@@ -1341,7 +1356,9 @@ export function checkSummary(summary) {
1341
1356
  ? `${summary.views_complete} of ${summary.distinct_vehicles} have all nine views prepared; views.missing names the views of the others that are not prepared yet.`
1342
1357
  : "",
1343
1358
  summary.suggestion ? "Each suggestion names other vehicles than the one listed: ask the human before using one." : "",
1344
- summary.miss ? "Skip each miss in every view and color." : "",
1359
+ summary.miss
1360
+ ? `Skip each miss in every view and color; the human can request a missing vehicle at ${origin}/requests?ref=mcp and gets an email when it is added.`
1361
+ : "",
1345
1362
  summary.invalid ? "Fix the invalid entries (error) and check them again." : "",
1346
1363
  ].filter(Boolean);
1347
1364
  return [`Checked ${plural(summary.total, "vehicle", "vehicles")}: ${counts}.`, ...next].join(" ");
@@ -1431,7 +1448,7 @@ export const MCP_TOOLS = {
1431
1448
  get_car_image: {
1432
1449
  name: "get_car_image",
1433
1450
  title: "Get car image bytes",
1434
- description: `Show a vehicle in chat: returns the image as an MCP image the host displays inline with the result, and the bytes for a file. Name the vehicle, view and color in the reply; do not also mint a signed URL for the same image. Where the person cannot see tool images (a terminal), use create_car_image_urls instead. Counts one vehicle image (vehicle, color, angle) for the month on the account's plan, prepared yet or not; the same image again this month adds nothing. Legacy credit-meter accounts: COSTS ${CREDITS_PER_IMAGE} CREDIT per call, cached or generated. Call resolve_vehicle first (or search_vehicles, or decode_vin for a VIN) and pass the id it returns as \`vehicle\`: the lookup is free, and the catalog files cars under its own names (a Mazda "MX-5 Miata" is mx-5), so a make and model typed from memory can answer 404 for a car the catalog carries. Make, model and year are for callers that already hold catalog spellings. Nine camera angles, any paint color (fifteen named presets or any hex such as #1a2b3c), any width and height up to ${MAX_DIMENSION} px (fit contain|cover|inside), transparent or on a solid background, optionally trimmed to the car and with a soft ground shadow (shadow: true). Returns the image (PNG/WebP/JPG; format auto delivers PNG here) plus usage metadata (credits_charged, vehicle_images used this month, or credits_remaining on the credit meter; source cache|generated, request_id, the vehicle with its vehicle_id). Use create_car_image_urls for web pages, apps, emails and documents, and in a terminal. Do not call both paid tools for one image.`,
1451
+ description: `Show a vehicle in chat: returns the image as an MCP image the host displays inline with the result, and the bytes for a file. Name the vehicle, view and color in the reply; do not also mint a signed URL for the same image. Where the person cannot see tool images (a terminal), use create_car_image_urls instead. Counts one vehicle image (vehicle, color, angle) for the month on the account's plan, prepared yet or not; the same image again this month adds nothing. Legacy credit-meter accounts: COSTS ${CREDITS_PER_IMAGE} CREDIT per call, cached or generated. Call resolve_vehicle first (or search_vehicles, or decode_vin for a VIN) and pass the id it returns as \`vehicle\`: the lookup is free, and the catalog files cars under its own names (a Mazda "MX-5 Miata" is mx-5), so a make and model typed from memory can answer 404 for a car the catalog carries. Make, model and year are for callers that already hold catalog spellings. Nine camera angles, any paint color (fifteen named presets or any hex such as #1a2b3c), any width and height up to the stored image's own size, ${STORED_SIZE_NOTE} (fit contain|cover|inside), transparent or on a solid background, optionally trimmed to the car and with a soft ground shadow (shadow: true). Returns the image (PNG/WebP/JPG; format auto delivers PNG here) plus usage metadata (credits_charged, vehicle_images used this month, or credits_remaining on the credit meter; source cache|generated, request_id, the vehicle with its vehicle_id). Use create_car_image_urls for web pages, apps, emails and documents, and in a terminal. Do not call both paid tools for one image.`,
1435
1452
  inputSchema: MCP_TOOL_SCHEMAS.get_car_image,
1436
1453
  outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_car_image,
1437
1454
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
@@ -1471,7 +1488,7 @@ export const MCP_TOOLS = {
1471
1488
  get_account: {
1472
1489
  name: "get_account",
1473
1490
  title: "Get account",
1474
- description: `Free. Show the organization this connection acts for (data.organization, with the caller's role), usage this month (limits_usage: vehicle images and new vehicle views used and included, keys, request rates) and the key's scopes. Every new account includes ${FREE_VEHICLE_IMAGES} free vehicle images a month. Check this before large batches.`,
1491
+ description: `Free. Show the organization this connection acts for (data.organization, with the caller's role), usage this month (limits_usage: vehicle images used and included, keys, request rates) and the key's scopes. Every new account includes ${FREE_VEHICLE_IMAGES} free vehicle images a month. Check this before large batches.`,
1475
1492
  inputSchema: MCP_TOOL_SCHEMAS.get_account,
1476
1493
  outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_account,
1477
1494
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
@@ -1711,7 +1728,7 @@ export const API_REFERENCE = [
1711
1728
  path: "/api/v1/images/car",
1712
1729
  summary: "Get a vehicle image (bytes, or a signed URL with Accept: application/json).",
1713
1730
  auth: "bearer",
1714
- credits: "0 on a plan: counts one vehicle image (vehicle, color, angle) for the UTC month, and a new vehicle view when the angle is not prepared yet; the same image again this month adds nothing. Legacy credit meter: 1 per call (cached or generated)",
1731
+ credits: "0 on a plan: counts one vehicle image (vehicle, color, angle) for the UTC month, prepared yet or not; the same image again this month adds nothing. Legacy credit meter: 1 per call (cached or generated)",
1715
1732
  params: [
1716
1733
  "make (required unless vehicle is given)",
1717
1734
  "model (required unless vehicle is given)",
@@ -1720,18 +1737,20 @@ export const API_REFERENCE = [
1720
1737
  `view (${VIEWS.join("|")}; default front-3-4)`,
1721
1738
  `color (${COLORS.join("|")}, or any hex paint written bare in URLs such as 1a2b3c; default silver; JSON echoes a hex as #1a2b3c)`,
1722
1739
  "size (thumb=256|small=512|medium=768|large=1024)",
1723
- `w, h (1-${MAX_DIMENSION} px; both -> the output is exactly w x h)`,
1740
+ `w, h (1 or more px, delivered up to the stored image's own size, ${STORED_SIZE_NOTE}; both -> the output is exactly w x h)`,
1741
+ `aspect_ratio (${ASPECT_RATIOS.join("|")}; a preset for the box, natural = the car's trimmed shape; w or h complete it, both win; never with size)`,
1742
+ `resolution (${RESOLUTION_NAMES.join("|")}: longer side ${Object.values(RESOLUTIONS).join("/")} px, clamped to the stored image; w or h win; never with size)`,
1724
1743
  `fit (${FITS.join("|")}; default contain; only matters with both w and h)`,
1725
1744
  "background (transparent default; white|black|hex such as f4f4f4; jpg defaults to white)",
1726
- `framing (${FRAMINGS.join("|")}; a preset, never with trim or padding: tight = trim=1, balanced = trim=1&padding=6, consistent = neither, the default)`,
1727
- `trim (1 crops to the car's alpha bounds before sizing), padding (0-${MAX_PADDING_PERCENT} percent, only with trim)`,
1745
+ `framing (${FRAMINGS.join("|")}; a preset, never with trim or padding: tight = trim=1, balanced = trim=1&padding=6, consistent = one apparent scale across the vehicle's views, the default)`,
1746
+ `trim (1 crops to the car's alpha bounds before sizing), padding (0-${MAX_PADDING_PERCENT} percent of the longer side: around the car with trim, around the stored frame without it)`,
1728
1747
  "shadow (1 adds a soft ground shadow under the car, from its cut-out; same image, nothing extra)",
1729
1748
  `format (${FORMATS.join("|")}|auto; default png; auto negotiates webp/png from Accept)`,
1730
1749
  ],
1731
1750
  returns: "image bytes; headers X-Credits-Charged (0 on a plan), X-Vehicle-Images-Used, X-Vehicle-Images-Included (a number or unlimited; X-Credits-Remaining instead on the legacy credit meter), X-Image-Source (cache|generated), X-Image-Width, X-Image-Height, ETag, X-Request-Id (Vary: Accept with format=auto). With Accept: application/json: {data:{url,expires_at,vehicle:{vehicle_id,make,model,year,view,color,…},width,height,format}, billing:{credits_charged:0, vehicle_images:{used,included}} (credit meter: {credits_charged,credits_remaining}), request_id}",
1732
1751
  errors: ["400 invalid params (also vehicle together with make/model/year)", "401 missing/invalid key", "402 plan_image_limit (used, included, requested, resets_at, pack_url, checkout_url; nothing charged; legacy credit meter: insufficient credits)", "404 vehicle not in catalog or unknown vehicle id", "429 rate limited (Retry-After)", "502 render failed (refunded)", "503 generation_at_capacity: new renders resume at reset_at (Retry-After; nothing charged)"],
1733
1752
  notes: "On 402 stop: images already received this month keep serving; hand the human checkout_url (a higher plan) with the price, or pack_url (Image Packs); buy only when they ask or a spending mandate they set covers it. Respect Retry-After on 429.",
1734
- sdk: "client.getImage({ make, model, year, view, color, size, width, height, fit, background, framing, trim, padding, shadow, format }) / client.getImage({ vehicle: 'veh_…', color: '#1a2b3c' }) / client.getImageUrl(...)",
1753
+ sdk: "client.getImage({ make, model, year, view, color, size, width, height, aspectRatio, resolution, fit, background, framing, trim, padding, shadow, format }) / client.getImage({ vehicle: 'veh_…', color: '#1a2b3c' }) / client.getImageUrl(...)",
1735
1754
  cli: "car-image get --make Porsche --model 911 --year 2024 --view side --color red --out car.png · car-image get --vehicle veh_395yw8tn73ff8 --color 1a2b3c",
1736
1755
  },
1737
1756
  {
@@ -1749,7 +1768,7 @@ export const API_REFERENCE = [
1749
1768
  {
1750
1769
  method: "POST",
1751
1770
  path: "/api/v1/images/availability",
1752
- summary: "Check up to 200 images before asking for them: whether each vehicle view is prepared (every color of it serves now), whether it would count a vehicle image or a new vehicle view this month, and whether the list fits the plan. Read-only: renders, queues and counts nothing. GET with one vehicle's query lists its views, their quality and how long the rest take.",
1771
+ summary: "Check up to 200 images before asking for them: whether each vehicle view is prepared (every color of it serves now), whether it would count a vehicle image this month (a view not prepared yet counts as one like any other), and whether the list fits the plan. Read-only: renders, queues and counts nothing. GET with one vehicle's query lists its views, their quality and how long the rest take.",
1753
1772
  auth: "bearer",
1754
1773
  credits: "free",
1755
1774
  params: ["images: [{vehicle | make, model, year, view?, color?, …}] (1-200 image objects, as POST /api/v1/image-urls takes)"],
@@ -1911,7 +1930,7 @@ export const API_REFERENCE = [
1911
1930
  {
1912
1931
  method: "GET",
1913
1932
  path: "/api/v1/account",
1914
- summary: "Plan and renewal (plan.meter: vehicle_images, or credits for accounts that paid before 2026-10-25), this month's vehicle images and new vehicle views against the plan, credits (for 3D models, logos and upgrades), the next plan with its checkout link, payment method, 30-day usage, key scopes.",
1933
+ summary: "Plan and renewal (plan.meter: vehicle_images, or credits for accounts that paid before 2026-10-25), this month's vehicle images against the plan, credits (for 3D models, logos and upgrades), the next plan with its checkout link, payment method, 30-day usage, key scopes.",
1915
1934
  auth: "bearer",
1916
1935
  credits: "free",
1917
1936
  returns: "{data:{credits, auto_reload, has_payment_method, plan:{…, meter, limits:{images_per_month,…}}, pricing, usage_30d:{requests,images,cache_hit_rate}, limits_usage:{period, meter, vehicle_images_this_month:{used,limit,remaining}|null, distinct_vehicles_this_month:{used,limit,remaining}|null (credit meter), api_keys:{used,limit,remaining}, requests_per_minute_per_key, requests_per_minute_per_account}, renews_at, next_plan:{id,name,price,adds,checkout_url}, key:{prefix,scopes}}, links, request_id}",