@meterapp/car-image-sdk 1.34.0 → 1.36.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 +12 -10
- package/dist/client.d.ts +6 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -4
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +3 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/mcp/index.d.ts +85 -17
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +58 -23
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/support.d.ts +0 -1
- package/dist/mcp/support.d.ts.map +1 -1
- package/dist/mcp/support.js +1 -1
- package/dist/mcp/support.js.map +1 -1
- package/dist/support.d.ts +2 -6
- package/dist/support.d.ts.map +1 -1
- package/dist/types.d.ts +55 -25
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +8 -9
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/mcp/index.d.ts
CHANGED
|
@@ -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.
|
|
17
|
+
readonly version: "1.36.0";
|
|
18
18
|
readonly websiteUrl: "https://carimage.dev";
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
@@ -49,8 +49,8 @@ export declare const MCP_SERVER_CAPABILITIES: {
|
|
|
49
49
|
* the core tools first: tools/list order is what a host shows.
|
|
50
50
|
*/
|
|
51
51
|
export declare const MCP_TOOLSETS: {
|
|
52
|
-
readonly core: readonly ["resolve_vehicle", "search_vehicles", "decode_vin", "check_vehicles", "get_car_image", "create_car_image_urls", "get_account", "request_feature", "report_issue", "upvote_feedback", "submit_review"];
|
|
53
|
-
readonly all: readonly ["resolve_vehicle", "search_vehicles", "decode_vin", "check_vehicles", "get_car_image", "create_car_image_urls", "get_account", "request_feature", "report_issue", "upvote_feedback", "submit_review", "list_feedback", "get_feedback", "list_my_feedback", "remove_feedback_vote", "comment_on_feedback", "list_reviews", "get_make_logo", "create_3d_model", "get_3d_model", "publish_3d_model", "list_image_options", "describe_api", "get_pricing", "search_help", "create_checkout_link", "get_billing_link", "purchase_plan", "pay_invoice", "checkout_status", "list_members", "list_webhooks", "rate_image", "list_requests", "request_vehicle", "get_request", "upvote_request", "comment_on_request", "share_building", "share_referral"];
|
|
52
|
+
readonly core: readonly ["resolve_vehicle", "search_vehicles", "decode_vin", "check_vehicles", "get_image_availability", "get_car_image", "create_car_image_urls", "get_account", "request_feature", "report_issue", "upvote_feedback", "submit_review"];
|
|
53
|
+
readonly all: readonly ["resolve_vehicle", "search_vehicles", "decode_vin", "check_vehicles", "get_image_availability", "get_car_image", "create_car_image_urls", "get_account", "request_feature", "report_issue", "upvote_feedback", "submit_review", "list_feedback", "get_feedback", "list_my_feedback", "remove_feedback_vote", "comment_on_feedback", "list_reviews", "get_make_logo", "create_3d_model", "get_3d_model", "publish_3d_model", "list_image_options", "describe_api", "get_pricing", "search_help", "create_checkout_link", "get_billing_link", "purchase_plan", "pay_invoice", "checkout_status", "list_members", "list_webhooks", "rate_image", "list_requests", "request_vehicle", "get_request", "upvote_request", "comment_on_request", "share_building", "share_referral"];
|
|
54
54
|
};
|
|
55
55
|
export type McpToolset = keyof typeof MCP_TOOLSETS;
|
|
56
56
|
/**
|
|
@@ -310,6 +310,23 @@ export declare const MCP_TOOL_SCHEMAS: {
|
|
|
310
310
|
year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
311
311
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
312
312
|
}, z.core.$strip>;
|
|
313
|
+
readonly get_image_availability: z.ZodObject<{
|
|
314
|
+
vehicle: z.ZodOptional<z.ZodString>;
|
|
315
|
+
make: z.ZodOptional<z.ZodString>;
|
|
316
|
+
model: z.ZodOptional<z.ZodString>;
|
|
317
|
+
year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
318
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
front: "front";
|
|
320
|
+
"front-3-4": "front-3-4";
|
|
321
|
+
"front-3-4-right": "front-3-4-right";
|
|
322
|
+
rear: "rear";
|
|
323
|
+
"rear-3-4": "rear-3-4";
|
|
324
|
+
"rear-3-4-right": "rear-3-4-right";
|
|
325
|
+
side: "side";
|
|
326
|
+
"side-right": "side-right";
|
|
327
|
+
}>>;
|
|
328
|
+
color: z.ZodDefault<z.ZodString & z.ZodType<import("../types.js").Color, string, z.core.$ZodTypeInternals<import("../types.js").Color, string>>>;
|
|
329
|
+
}, z.core.$strip>;
|
|
313
330
|
readonly check_vehicles: z.ZodObject<{
|
|
314
331
|
vehicles: z.ZodArray<z.ZodObject<{
|
|
315
332
|
vehicle: z.ZodOptional<z.ZodString>;
|
|
@@ -619,10 +636,6 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
619
636
|
used: z.ZodNumber;
|
|
620
637
|
included: z.ZodNullable<z.ZodNumber>;
|
|
621
638
|
}, z.core.$loose>>;
|
|
622
|
-
new_views: z.ZodOptional<z.ZodObject<{
|
|
623
|
-
used: z.ZodNumber;
|
|
624
|
-
included: z.ZodNullable<z.ZodNumber>;
|
|
625
|
-
}, z.core.$loose>>;
|
|
626
639
|
source: z.ZodNullable<z.ZodEnum<{
|
|
627
640
|
cache: "cache";
|
|
628
641
|
generated: "generated";
|
|
@@ -718,10 +731,6 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
718
731
|
used: z.ZodNumber;
|
|
719
732
|
included: z.ZodNullable<z.ZodNumber>;
|
|
720
733
|
}, z.core.$loose>>;
|
|
721
|
-
new_views: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
used: z.ZodNumber;
|
|
723
|
-
included: z.ZodNullable<z.ZodNumber>;
|
|
724
|
-
}, z.core.$loose>>;
|
|
725
734
|
renewal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
726
735
|
window_seconds: z.ZodNumber;
|
|
727
736
|
credits_per_window: z.ZodOptional<z.ZodNumber>;
|
|
@@ -749,6 +758,59 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
749
758
|
}, z.core.$loose>>;
|
|
750
759
|
}, z.core.$loose>;
|
|
751
760
|
}, z.core.$loose>;
|
|
761
|
+
readonly get_image_availability: z.ZodObject<{
|
|
762
|
+
data: z.ZodObject<{
|
|
763
|
+
object: z.ZodLiteral<"image_availability">;
|
|
764
|
+
vehicle: z.ZodObject<{
|
|
765
|
+
id: z.ZodNullable<z.ZodString>;
|
|
766
|
+
make: z.ZodString;
|
|
767
|
+
model: z.ZodString;
|
|
768
|
+
year: z.ZodNumber;
|
|
769
|
+
}, z.core.$loose>;
|
|
770
|
+
color: z.ZodString;
|
|
771
|
+
views: z.ZodArray<z.ZodObject<{
|
|
772
|
+
view: z.ZodEnum<{
|
|
773
|
+
front: "front";
|
|
774
|
+
"front-3-4": "front-3-4";
|
|
775
|
+
"front-3-4-right": "front-3-4-right";
|
|
776
|
+
rear: "rear";
|
|
777
|
+
"rear-3-4": "rear-3-4";
|
|
778
|
+
"rear-3-4-right": "rear-3-4-right";
|
|
779
|
+
side: "side";
|
|
780
|
+
"side-right": "side-right";
|
|
781
|
+
}>;
|
|
782
|
+
cached: z.ZodBoolean;
|
|
783
|
+
quality: z.ZodNullable<z.ZodEnum<{
|
|
784
|
+
enhanced: "enhanced";
|
|
785
|
+
premium: "premium";
|
|
786
|
+
standard: "standard";
|
|
787
|
+
}>>;
|
|
788
|
+
upgradable: z.ZodBoolean;
|
|
789
|
+
upgrade_in_progress: z.ZodBoolean;
|
|
790
|
+
render_eta: z.ZodNullable<z.ZodObject<{
|
|
791
|
+
typical_seconds: z.ZodNumber;
|
|
792
|
+
slow_seconds: z.ZodNumber;
|
|
793
|
+
samples: z.ZodNumber;
|
|
794
|
+
}, z.core.$loose>>;
|
|
795
|
+
upgrade_eta: z.ZodNullable<z.ZodObject<{
|
|
796
|
+
typical_seconds: z.ZodNumber;
|
|
797
|
+
slow_seconds: z.ZodNumber;
|
|
798
|
+
samples: z.ZodNumber;
|
|
799
|
+
}, z.core.$loose>>;
|
|
800
|
+
}, z.core.$loose>>;
|
|
801
|
+
summary: z.ZodObject<{
|
|
802
|
+
cached: z.ZodNumber;
|
|
803
|
+
high_quality: z.ZodNumber;
|
|
804
|
+
upgradable: z.ZodNumber;
|
|
805
|
+
}, z.core.$loose>;
|
|
806
|
+
estimates: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
807
|
+
typical_seconds: z.ZodNumber;
|
|
808
|
+
slow_seconds: z.ZodNumber;
|
|
809
|
+
samples: z.ZodNumber;
|
|
810
|
+
}, z.core.$loose>>;
|
|
811
|
+
}, z.core.$loose>;
|
|
812
|
+
request_id: z.ZodString;
|
|
813
|
+
}, z.core.$loose>;
|
|
752
814
|
readonly check_vehicles: z.ZodObject<{
|
|
753
815
|
data: z.ZodObject<{
|
|
754
816
|
summary: z.ZodObject<{
|
|
@@ -921,7 +983,6 @@ export declare const MCP_TOOL_OUTPUT_SCHEMAS: {
|
|
|
921
983
|
}, z.core.$strip>;
|
|
922
984
|
included: z.ZodObject<{
|
|
923
985
|
vehicle_images_per_month: z.ZodNullable<z.ZodNumber>;
|
|
924
|
-
new_vehicle_views_per_month: z.ZodNullable<z.ZodNumber>;
|
|
925
986
|
credits_per_month: z.ZodNumber;
|
|
926
987
|
credits_once: z.ZodNumber;
|
|
927
988
|
}, z.core.$loose>;
|
|
@@ -2214,10 +2275,6 @@ export interface AccountSummaryInput {
|
|
|
2214
2275
|
used: number;
|
|
2215
2276
|
limit: number | null;
|
|
2216
2277
|
} | null;
|
|
2217
|
-
new_views_this_month?: {
|
|
2218
|
-
used: number;
|
|
2219
|
-
limit: number | null;
|
|
2220
|
-
} | null;
|
|
2221
2278
|
distinct_vehicles_this_month?: {
|
|
2222
2279
|
used: number;
|
|
2223
2280
|
limit: number | null;
|
|
@@ -2255,6 +2312,17 @@ export interface ResolveSummaryInput {
|
|
|
2255
2312
|
export declare function resolveSummary(data: ResolveSummaryInput): string;
|
|
2256
2313
|
/** The one-line summary both servers put above a catalog search. */
|
|
2257
2314
|
export declare function searchSummary(query: string, count: number): string;
|
|
2315
|
+
/** Explain readiness without making an image request. */
|
|
2316
|
+
export declare function imageAvailabilitySummary(data: {
|
|
2317
|
+
views: Array<{
|
|
2318
|
+
view: string;
|
|
2319
|
+
cached: boolean;
|
|
2320
|
+
quality: string | null;
|
|
2321
|
+
render_eta: {
|
|
2322
|
+
typical_seconds: number;
|
|
2323
|
+
} | null;
|
|
2324
|
+
}>;
|
|
2325
|
+
}): string;
|
|
2258
2326
|
/** What {@link checkSummary} reads: the `summary` of check_vehicles on both servers, which is `POST /api/v1/vehicles/check`'s. */
|
|
2259
2327
|
export interface CheckSummaryInput {
|
|
2260
2328
|
total: number;
|
|
@@ -2272,7 +2340,7 @@ export interface ImageUrlsSummaryInput {
|
|
|
2272
2340
|
expires_at: string;
|
|
2273
2341
|
renews_until?: string | null;
|
|
2274
2342
|
}>;
|
|
2275
|
-
/** The credit meter's charge, or the vehicle-image meter's month (`vehicle_images
|
|
2343
|
+
/** The credit meter's charge, or the vehicle-image meter's month (`vehicle_images`). */
|
|
2276
2344
|
billing: {
|
|
2277
2345
|
credits_charged: number;
|
|
2278
2346
|
credits_remaining?: number;
|
package/dist/mcp/index.d.ts.map
CHANGED
|
@@ -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,EA4BL,KAAK,MAAM,EACX,KAAK,aAAa,EACnB,MAAM,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get_image_availability",
|
|
66
67
|
"get_car_image",
|
|
67
68
|
"create_car_image_urls",
|
|
68
69
|
"get_account",
|
|
@@ -76,6 +77,7 @@ export const MCP_TOOLSETS = {
|
|
|
76
77
|
"search_vehicles",
|
|
77
78
|
"decode_vin",
|
|
78
79
|
"check_vehicles",
|
|
80
|
+
"get_image_availability",
|
|
79
81
|
"get_car_image",
|
|
80
82
|
"create_car_image_urls",
|
|
81
83
|
"get_account",
|
|
@@ -182,7 +184,7 @@ export function mcpInstructionsHead(toolset = DEFAULT_MCP_TOOLSET) {
|
|
|
182
184
|
|
|
183
185
|
First look the vehicle up: resolve_vehicle reads a year/make/model phrase and returns params.vehicle_id, view and color; search_vehicles browses; decode_vin reads a VIN; check_vehicles checks a list of up to ${MAX_MCP_CHECK_VEHICLES} at once. All are free. Do this even for a car you picked yourself: catalog names differ from familiar names. Include a year; if the human named none, choose one and say which. Reuse an id already in this conversation.
|
|
184
186
|
|
|
185
|
-
For an image in chat, call
|
|
187
|
+
For an image in chat, call get_car_image with vehicle: "veh_…", view and color (width: 960, height: 600, trim: true, padding: 8, background: "#f4f4f4" suits a chat). The host shows the returned picture inline: name the vehicle, view and color in a line, and do not mint a URL for the same image. In a terminal, or where tool images reach only you, call create_car_image_urls once instead (ttl_seconds: 604800, max_uses: 0) and put its markdown, or its URL as a link, in the reply. Pages, apps, emails and documents use signed URLs (create_car_image_urls); never put keys in client code.
|
|
186
188
|
|
|
187
189
|
If lookup confidence is low or the year differs from the request, ask before making an image. If no match, ${HEAD_MISSING}; never silently substitute a car.
|
|
188
190
|
|
|
@@ -377,6 +379,11 @@ export const MCP_TOOL_SCHEMAS = {
|
|
|
377
379
|
year: z.coerce.number().int().min(MIN_YEAR).max(2100).optional().describe("Restrict results to one model year."),
|
|
378
380
|
limit: z.coerce.number().int().min(1).max(25).default(10).describe("Maximum number of results (1-25)."),
|
|
379
381
|
}),
|
|
382
|
+
get_image_availability: z.object({
|
|
383
|
+
...vehicleFields,
|
|
384
|
+
view: z.enum(VIEWS).optional().describe("Check one camera view; omit to check all eight views."),
|
|
385
|
+
color: colorSchema.default("silver"),
|
|
386
|
+
}).refine(namesOneVehicle, ONE_VEHICLE),
|
|
380
387
|
check_vehicles: z.object({
|
|
381
388
|
vehicles: z
|
|
382
389
|
.array(checkEntrySchema)
|
|
@@ -922,9 +929,8 @@ export const MCP_TOOL_OUTPUT_SCHEMAS = {
|
|
|
922
929
|
credits_charged: z.number().nullable(),
|
|
923
930
|
/** Legacy credit meter only. */
|
|
924
931
|
credits_remaining: z.number().nullable().optional(),
|
|
925
|
-
/** Vehicle-image meter: the month's vehicle images
|
|
932
|
+
/** Vehicle-image meter: the month's vehicle images after this call. */
|
|
926
933
|
vehicle_images: meterCountSchema.optional(),
|
|
927
|
-
new_views: meterCountSchema.optional(),
|
|
928
934
|
source: z.enum(["cache", "generated"]).nullable(),
|
|
929
935
|
width: z.number().int().nullable(),
|
|
930
936
|
height: z.number().int().nullable(),
|
|
@@ -952,9 +958,8 @@ export const MCP_TOOL_OUTPUT_SCHEMAS = {
|
|
|
952
958
|
credits_charged: z.number(),
|
|
953
959
|
/** Legacy credit meter only. */
|
|
954
960
|
credits_remaining: z.number().optional(),
|
|
955
|
-
/** Vehicle-image meter: the month's vehicle images
|
|
961
|
+
/** Vehicle-image meter: the month's vehicle images after this call. */
|
|
956
962
|
vehicle_images: meterCountSchema.optional(),
|
|
957
|
-
new_views: meterCountSchema.optional(),
|
|
958
963
|
renewal: z.looseObject({ window_seconds: z.number(), credits_per_window: z.number().optional(), until: z.string() }).nullable().optional(),
|
|
959
964
|
}),
|
|
960
965
|
request_id: z.string(),
|
|
@@ -964,6 +969,25 @@ export const MCP_TOOL_OUTPUT_SCHEMAS = {
|
|
|
964
969
|
search_vehicles: z.looseObject({
|
|
965
970
|
data: z.looseObject({ query: z.string(), results: z.array(vehicleMatchSchema) }),
|
|
966
971
|
}),
|
|
972
|
+
get_image_availability: z.looseObject({
|
|
973
|
+
data: z.looseObject({
|
|
974
|
+
object: z.literal("image_availability"),
|
|
975
|
+
vehicle: z.looseObject({ id: z.string().nullable(), make: z.string(), model: z.string(), year: z.number().int() }),
|
|
976
|
+
color: z.string(),
|
|
977
|
+
views: z.array(z.looseObject({
|
|
978
|
+
view: z.enum(VIEWS),
|
|
979
|
+
cached: z.boolean(),
|
|
980
|
+
quality: z.enum(["standard", "enhanced", "premium"]).nullable(),
|
|
981
|
+
upgradable: z.boolean(),
|
|
982
|
+
upgrade_in_progress: z.boolean(),
|
|
983
|
+
render_eta: z.looseObject({ typical_seconds: z.number(), slow_seconds: z.number(), samples: z.number().int() }).nullable(),
|
|
984
|
+
upgrade_eta: z.looseObject({ typical_seconds: z.number(), slow_seconds: z.number(), samples: z.number().int() }).nullable(),
|
|
985
|
+
})),
|
|
986
|
+
summary: z.looseObject({ cached: z.number().int(), high_quality: z.number().int(), upgradable: z.number().int() }),
|
|
987
|
+
estimates: z.record(z.string(), z.looseObject({ typical_seconds: z.number(), slow_seconds: z.number(), samples: z.number().int() })),
|
|
988
|
+
}),
|
|
989
|
+
request_id: z.string(),
|
|
990
|
+
}),
|
|
967
991
|
check_vehicles: z.looseObject({
|
|
968
992
|
data: z.looseObject({
|
|
969
993
|
summary: z.looseObject({
|
|
@@ -1250,11 +1274,10 @@ export const LOW_BALANCE_CREDITS = 10;
|
|
|
1250
1274
|
export function accountSummary(data) {
|
|
1251
1275
|
const images = data.limits_usage?.vehicle_images_this_month;
|
|
1252
1276
|
if (data.limits_usage?.meter === "vehicle_images" && images) {
|
|
1253
|
-
const views = data.limits_usage.new_views_this_month;
|
|
1254
1277
|
const of = (usage) => `${usage.used.toLocaleString("en-US")} of ${usage.limit === null ? "unlimited" : usage.limit.toLocaleString("en-US")}`;
|
|
1255
1278
|
const full = (usage) => Boolean(usage && usage.limit !== null && usage.used >= usage.limit);
|
|
1256
|
-
const stop = full(images)
|
|
1257
|
-
return `${data.plan ? `${data.plan.name} plan: ` : ""}${of(images)} vehicle images used this month
|
|
1279
|
+
const stop = full(images) ? " The allowance is used up: images already received this month still serve; ask the human before asking for new ones." : "";
|
|
1280
|
+
return `${data.plan ? `${data.plan.name} plan: ` : ""}${of(images)} vehicle images used this month; every image serves as often as needed in any size.${stop}`;
|
|
1258
1281
|
}
|
|
1259
1282
|
const perDollar = data.pricing?.credits_per_dollar ?? CREDITS_PER_DOLLAR;
|
|
1260
1283
|
const perImage = data.pricing?.credits_per_image ?? CREDITS_PER_IMAGE;
|
|
@@ -1281,7 +1304,7 @@ export function resolveSummary(data) {
|
|
|
1281
1304
|
: "";
|
|
1282
1305
|
const caution = data.confidence === "low" ? " Confidence is low: confirm with the human before making an image." : "";
|
|
1283
1306
|
const id = data.params.vehicle_id;
|
|
1284
|
-
const render = `how it with
|
|
1307
|
+
const render = `how it with get_car_image (in chat; create_car_image_urls for a page, app, email or document, or in a terminal), passing vehicle: "${id}", view: "${data.params.view}" and color: "${data.params.color}".`;
|
|
1285
1308
|
const next = id ? (otherYear || caution ? ` Once they agree, s${render}` : ` S${render}`) : "";
|
|
1286
1309
|
return `Resolved to ${make} ${model} ${data.params.year}, view ${data.params.view}, color ${data.params.color} (confidence ${data.confidence}).${otherYear}${caution}${next}`;
|
|
1287
1310
|
}
|
|
@@ -1291,6 +1314,10 @@ export function searchSummary(query, count) {
|
|
|
1291
1314
|
? `${count} catalog match${count === 1 ? "" : "es"} for "${query}". Pass a model's vehicle id (id, or ids by year) as vehicle to get_car_image, create_car_image_urls or create_3d_model.`
|
|
1292
1315
|
: `No catalog match for "${query}". That is not yet a missing vehicle: try resolve_vehicle with the year, make and model, fewer words, or the manufacturer alone.`;
|
|
1293
1316
|
}
|
|
1317
|
+
/** Explain readiness without making an image request. */
|
|
1318
|
+
export function imageAvailabilitySummary(data) {
|
|
1319
|
+
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("; ") + ".";
|
|
1320
|
+
}
|
|
1294
1321
|
/** The one-line summary both servers put above a vehicle check: the counts, then what to do with each kind of answer. */
|
|
1295
1322
|
export function checkSummary(summary) {
|
|
1296
1323
|
const plural = (count, one, many) => `${count} ${count === 1 ? one : many}`;
|
|
@@ -1342,7 +1369,7 @@ export function imageUrlsSummary(result) {
|
|
|
1342
1369
|
export const MCP_TOOLS = {
|
|
1343
1370
|
get_pricing: {
|
|
1344
1371
|
name: "get_pricing", title: "Get current pricing",
|
|
1345
|
-
description: "Free, no account needed. The pricing document: every plan's monthly and yearly price, its vehicle images
|
|
1372
|
+
description: "Free, no account needed. The pricing document: every plan's monthly and yearly price, its vehicle images a month (a vehicle image is one vehicle in one color from one angle, delivered as often as needed), included credits (for 3D models, make logos and upgrades; credits are not sold), limits per tier and features, the one-time Image Packs (add_ons), the free tier and live 3D model cost. There is no overage. Every plan and pack has a checkout_url that works before signup (sign-in, then Stripe Checkout; nothing is charged until the human pays): hand it to the human with the price. Use before explaining costs or choosing a plan.",
|
|
1346
1373
|
inputSchema: MCP_TOOL_SCHEMAS.get_pricing, outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_pricing,
|
|
1347
1374
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1348
1375
|
},
|
|
@@ -1393,7 +1420,7 @@ export const MCP_TOOLS = {
|
|
|
1393
1420
|
get_car_image: {
|
|
1394
1421
|
name: "get_car_image",
|
|
1395
1422
|
title: "Get car image bytes",
|
|
1396
|
-
description: `
|
|
1423
|
+
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. Eight 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.`,
|
|
1397
1424
|
inputSchema: MCP_TOOL_SCHEMAS.get_car_image,
|
|
1398
1425
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_car_image,
|
|
1399
1426
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
@@ -1401,7 +1428,7 @@ export const MCP_TOOLS = {
|
|
|
1401
1428
|
create_car_image_urls: {
|
|
1402
1429
|
name: "create_car_image_urls",
|
|
1403
1430
|
title: "Create signed car image URLs",
|
|
1404
|
-
description: "
|
|
1431
|
+
description: "Put vehicle images into web pages, apps, emails and documents: create 1-50 key-free signed URLs a browser loads directly (<img src>), each with ready-to-display Markdown. To show a vehicle in chat, use get_car_image instead: the host displays it inline. Use these URLs in chat only where tool images do not reach the person (a terminal) or the human asks for a link: then paste each returned markdown in the final reply, outside code fences (or link the URL where images do not render), with ttl_seconds 604800, max_uses 0 and renewal off unless requested. Reuse unexpired URLs; never mint twice for one image. Each URL counts its vehicle image for the month at creation (1 credit on the legacy credit meter); loads within the TTL add nothing and are publicly cacheable. Each image names its vehicle like get_car_image: look each distinct vehicle up once (resolve_vehicle, search_vehicles or decode_vin, all free) and pass its id as vehicle, or send make, model and year in catalog spelling. Each takes any paint color (a preset or a hex) and the same sizing options (width, height, fit, background, framing, trim, padding, shadow); format auto makes the URL serve webp or png per viewer. For email, CMS pages or documents that outlive a TTL, set renew: true with ttl_seconds 604800: the URL keeps serving past expiry, renewing in each opened week (one more credit per week on the legacy credit meter), for up to renew_days. Pass idempotency_key when the call might be repeated: a retry with the same key and arguments replays the first result instead of billing again. Returns id, url, markdown, expires_at, max_uses, renews_until and the normalized vehicle for each image. Prefer this over get_car_image for HTML, Markdown files, documents, emails and websites. State expiry briefly.",
|
|
1405
1432
|
inputSchema: MCP_TOOL_SCHEMAS.create_car_image_urls,
|
|
1406
1433
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.create_car_image_urls,
|
|
1407
1434
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
@@ -1477,6 +1504,14 @@ export const MCP_TOOLS = {
|
|
|
1477
1504
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.decode_vin,
|
|
1478
1505
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1479
1506
|
},
|
|
1507
|
+
get_image_availability: {
|
|
1508
|
+
name: "get_image_availability",
|
|
1509
|
+
title: "Check prepared images and quality",
|
|
1510
|
+
description: "Free, read-only check before generating an image. Look the vehicle up first and pass its vehicle id. Check one view or omit view for all eight; pass the requested paint as color. cached true means the view is prepared: it serves quickly from storage, without waiting for a new render. Returns each view's quality (standard, enhanced or premium; null when no stored image), upgrade state, and render_eta for views not cached. It renders nothing, queues nothing and counts no image usage. This does not authorize a render or a quality upgrade. Unlike a public preview, this checks what an authenticated image request would serve, including the requested color.",
|
|
1511
|
+
inputSchema: MCP_TOOL_SCHEMAS.get_image_availability,
|
|
1512
|
+
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.get_image_availability,
|
|
1513
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1514
|
+
},
|
|
1480
1515
|
check_vehicles: {
|
|
1481
1516
|
name: "check_vehicles",
|
|
1482
1517
|
title: "Check which vehicles the catalog carries",
|
|
@@ -1592,10 +1627,10 @@ export const MCP_TOOLS = {
|
|
|
1592
1627
|
submit_review: {
|
|
1593
1628
|
name: "submit_review",
|
|
1594
1629
|
title: "Review Car Image",
|
|
1595
|
-
description: "Free. Post or edit the human's public review of Car Image (one per account, 1-5 stars, their own words; never invent or nudge a rating). Shown on the reviews page with the team's answer once it passes a quick check. Set marketing_consent only when they agree to be quoted. One edit an hour; the first post gets a thank-you email.",
|
|
1630
|
+
description: "Free. Post or edit the human's public review of Car Image (one per account, 1-5 stars, their own words; never invent or nudge a rating). Shown on the reviews page with the team's answer once it passes a quick check. Set marketing_consent only when they agree to be quoted. Editing replaces the displayed public review; confirm the replacement text with the human. One edit an hour; the first post gets a thank-you email.",
|
|
1596
1631
|
inputSchema: MCP_TOOL_SCHEMAS.submit_review,
|
|
1597
1632
|
outputSchema: MCP_TOOL_OUTPUT_SCHEMAS.submit_review,
|
|
1598
|
-
annotations: { readOnlyHint: false, destructiveHint:
|
|
1633
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
1599
1634
|
},
|
|
1600
1635
|
list_reviews: {
|
|
1601
1636
|
name: "list_reviews",
|
|
@@ -1657,7 +1692,7 @@ export const API_REFERENCE = [
|
|
|
1657
1692
|
cli: "car-image logo --make Toyota --width 256 --out toyota-logo.png",
|
|
1658
1693
|
returns: "Image bytes with X-Credits-Charged, X-Credits-Remaining, X-Image-Source, X-Image-Width, X-Image-Height, ETag and X-Request-Id. Failed delivery refunds the credit. No signed URL or 304 mode.",
|
|
1659
1694
|
},
|
|
1660
|
-
{ method: "GET", path: "/api/v1/pricing", summary: "The pricing document: plans (price, vehicle images
|
|
1695
|
+
{ method: "GET", path: "/api/v1/pricing", summary: "The pricing document: plans (price, vehicle images a month, included credits, limits, features, checkout_url), the one-time Image Packs (add_ons), free tier, live 3D cost and how to buy. No overage; credits are not sold.", auth: "public", credits: "free", notes: "Every checkout_url works before signup: sign-in, then Stripe Checkout; nothing is charged until the human pays.", sdk: "client.pricing()", cli: "car-image pricing [--json]" },
|
|
1661
1696
|
{ method: "POST", path: "/api/v1/help", summary: "Source-linked product help and private query recording.", auth: "bearer", credits: "free (account:read)", params: ["query (2-1000 characters, no secrets or personal information)", "report_gap (optional boolean: flag missing context)"], notes: "Related articles are not an answer to every clause. Cite relevant sources; escalate unknowns to support. Queries are recorded privately.", sdk: "client.searchHelp(question, {reportGap: true})", cli: "car-image support question --report-gap" },
|
|
1662
1697
|
{ method: "POST", path: "/api/v1/billing/link", summary: "Link-only checkout or billing settings; never charges or switches a plan.", auth: "bearer", credits: "free (account:read; owner billing:write for Stripe links)", params: ["plan (pro|business) + optional interval (month|year); {} for settings. Credits are not sold"], notes: "Connected apps and keys without billing:write get a checkout link that signs the human in first; existing subscriptions use the signed-in dashboard. A human completes payment in the browser.", sdk: "client.createCheckoutLink({plan: 'pro'}) / client.getBillingLink()", cli: "car-image upgrade --plan pro --no-browser (works before sign-in)" },
|
|
1663
1698
|
{
|
|
@@ -1682,8 +1717,8 @@ export const API_REFERENCE = [
|
|
|
1682
1717
|
"shadow (1 adds a soft ground shadow under the car, from its cut-out; same image, nothing extra)",
|
|
1683
1718
|
`format (${FORMATS.join("|")}|auto; default png; auto negotiates webp/png from Accept)`,
|
|
1684
1719
|
],
|
|
1685
|
-
returns: "image bytes; headers X-Credits-Charged (0 on a plan), X-Vehicle-Images-Used, X-Vehicle-Images-Included
|
|
1686
|
-
errors: ["400 invalid params (also vehicle together with make/model/year)", "401 missing/invalid key", "402 plan_image_limit
|
|
1720
|
+
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}",
|
|
1721
|
+
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)"],
|
|
1687
1722
|
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.",
|
|
1688
1723
|
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(...)",
|
|
1689
1724
|
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",
|
|
@@ -1695,8 +1730,8 @@ export const API_REFERENCE = [
|
|
|
1695
1730
|
auth: "bearer",
|
|
1696
1731
|
credits: "0 on a plan: each URL counts its vehicle image for the month at creation; loads and renewals add nothing. Legacy credit meter: 1 per URL at creation, 1 per renewed window",
|
|
1697
1732
|
params: ["images: [{make, model, year | vehicle, view?, color? (preset or hex), size?, width?, height?, fit?, background?, framing?, trim?, padding?, shadow?, format?}] (or a single image object)", "ttl_seconds (60-604800; default 3600)", "max_uses (0-1000; 0 = unlimited; default 0)", "renew (auto-renew past the TTL; requires max_uses 0)", "renew_days (1-365; default 365)", "header Idempotency-Key (optional; a retry with the same key and body replays the first response instead of billing again)"],
|
|
1698
|
-
returns: "201 {data:[{id,url,expires_at,max_uses,renews_until,vehicle:{vehicle_id,…}}], billing:{charged_on:'creation',credits_charged:0,vehicle_images:{used,included},
|
|
1699
|
-
errors: ["400 invalid body or batch > 50", "401", "402 plan_image_limit
|
|
1733
|
+
returns: "201 {data:[{id,url,expires_at,max_uses,renews_until,vehicle:{vehicle_id,…}}], billing:{charged_on:'creation',credits_charged:0,vehicle_images:{used,included},renewal?} (credit meter: credits_charged,credits_remaining,credits_per_url), request_id}; a replay carries Idempotent-Replayed: true",
|
|
1734
|
+
errors: ["400 invalid body or batch > 50", "401", "402 plan_image_limit (nothing counted)", "404 vehicle not in catalog", "409 same Idempotency-Key still in flight", "422 same Idempotency-Key with a different body", "429"],
|
|
1700
1735
|
sdk: "client.createImageUrls([{ make, model, year, ...sizing }, { vehicle: 'veh_…' }], { ttlSeconds, maxUses, renew, renewDays, idempotencyKey })",
|
|
1701
1736
|
cli: "car-image url --make BMW --model M3 --year 2022 --ttl 86400 [--renew] [--idempotency-key <key>]",
|
|
1702
1737
|
},
|
|
@@ -1707,7 +1742,7 @@ export const API_REFERENCE = [
|
|
|
1707
1742
|
auth: "bearer",
|
|
1708
1743
|
credits: "free",
|
|
1709
1744
|
params: ["images: [{vehicle | make, model, year, view?, color?, …}] (1-200 image objects, as POST /api/v1/image-urls takes)"],
|
|
1710
|
-
returns: "200 {data:{object:'image_availability_check', images:[{index,prepared,
|
|
1745
|
+
returns: "200 {data:{object:'image_availability_check', images:[{index,prepared,counts_image,vehicle:{id,make,model,year},view,color}], summary:{items,prepared,not_prepared}, allowance:{period:{month_start}, vehicle_images:{used,included,would_add,fits}}|null}, request_id}",
|
|
1711
1746
|
errors: ["400 invalid_body or invalid_params (index)", "401", "404 vehicle_not_found (index)"],
|
|
1712
1747
|
sdk: "client.checkAvailability([{ vehicle: 'veh_…', view: 'front', color: 'red' }])",
|
|
1713
1748
|
},
|
|
@@ -1865,7 +1900,7 @@ export const API_REFERENCE = [
|
|
|
1865
1900
|
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.",
|
|
1866
1901
|
auth: "bearer",
|
|
1867
1902
|
credits: "free",
|
|
1868
|
-
returns: "{data:{credits, auto_reload, has_payment_method, plan:{…, meter, limits:{images_per_month
|
|
1903
|
+
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}",
|
|
1869
1904
|
sdk: "client.account()",
|
|
1870
1905
|
cli: "car-image whoami (alias: account)",
|
|
1871
1906
|
},
|
|
@@ -1939,7 +1974,7 @@ export function formatApiReference(filter) {
|
|
|
1939
1974
|
const header = [
|
|
1940
1975
|
`Car Image API — base URL ${DEFAULT_BASE_URL}`,
|
|
1941
1976
|
`Auth: Authorization: Bearer cimg_… (never in URLs). Errors: application/problem+json {type,title,status,detail,request_id}.`,
|
|
1942
|
-
`Pricing: plans meter vehicle images (one vehicle in one color from one angle, counted once a UTC month, delivered as often as needed at any size
|
|
1977
|
+
`Pricing: plans meter vehicle images (one vehicle in one color from one angle, counted once a UTC month, delivered as often as needed at any size, stored or prepared first); images cost no credits. Free: ${PLAN_ALLOWANCES.free.vehicleImages} vehicle images a month, ${FREE_CREDITS} credits once, evaluation and personal projects. Pro $${PLAN_ALLOWANCES.pro.monthlyUsd}/month: ${PLAN_ALLOWANCES.pro.vehicleImages.toLocaleString("en-US")} images, ${PLAN_ALLOWANCES.pro.creditsPerMonth.toLocaleString("en-US")} credits a month, commercial license while subscribed. Business $${PLAN_ALLOWANCES.business.monthlyUsd}/month: ${PLAN_ALLOWANCES.business.vehicleImages.toLocaleString("en-US")} images, ${PLAN_ALLOWANCES.business.creditsPerMonth.toLocaleString("en-US")} credits. No overage: past an allowance new images answer 402 until the 1st (UTC). Credits are not sold and pay for 3D models (${MODEL_3D_PRICE.split(" (")[0]}), make logos (1) and upgrades (20). Image Packs are one-time and self-hosted for good. GET /api/v1/pricing has live prices.`,
|
|
1943
1978
|
`Vehicles: make + model + year, or vehicle=<stable id such as veh_395yw8tn73ff8> (from /api/v1/vehicles, /api/v1/vin or resolve), never both. Colors: ${COLORS.length} presets or any hex paint (URLs: color=1a2b3c bare; JSON: "#1a2b3c" or "1a2b3c"; responses echo #1a2b3c).`,
|
|
1944
1979
|
"",
|
|
1945
1980
|
];
|
|
@@ -1989,7 +2024,7 @@ export function nextStepFor(status) {
|
|
|
1989
2024
|
case 401:
|
|
1990
2025
|
return "The API key is missing or invalid. Set CAR_IMAGE_API_KEY (or run `car-image login`); never paste keys into prompts.";
|
|
1991
2026
|
case 402:
|
|
1992
|
-
return `Payment required; nothing was charged. Stop. With code plan_image_limit
|
|
2027
|
+
return `Payment required; nothing was charged. Stop. With code plan_image_limit the month's allowance is used (images already received keep serving; it resets at resets_at): give the human checkout_url (a higher plan) with its price, or pack_url (Image Packs). With code subscription_required_for_credits the account lacks credits for a 3D model, logo or upgrade; credits are not sold, so give checkout_url (a plan, which includes credits every month). Buy only when the human asks or a spending mandate they set covers it.`;
|
|
1993
2028
|
case 403:
|
|
1994
2029
|
return "This key lacks the required scope. Ask the human to create a key with the right scopes in the dashboard.";
|
|
1995
2030
|
case 404:
|