@productmaker/mcp 0.13.0 → 0.14.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/dist/http.js +7 -7
- package/dist/stdio.js +7 -7
- package/package.json +1 -1
package/dist/http.js
CHANGED
|
@@ -479,7 +479,7 @@ var VideoTierEnum = z.enum([
|
|
|
479
479
|
]);
|
|
480
480
|
function resolveVideoTier(tier) {
|
|
481
481
|
if (!tier) return void 0;
|
|
482
|
-
return tier === "basic" ? "
|
|
482
|
+
return tier === "basic" ? "single_call" : "standard";
|
|
483
483
|
}
|
|
484
484
|
__name(resolveVideoTier, "resolveVideoTier");
|
|
485
485
|
var VideoResolutionEnum = z.enum([
|
|
@@ -1260,11 +1260,11 @@ function registerTaskTools(server, api, { proxyBaseUrl = null, transport = "http
|
|
|
1260
1260
|
"options.videoStyle": resolved?.videoStyle,
|
|
1261
1261
|
"options.narrativeStyle": resolved?.narrativeStyle,
|
|
1262
1262
|
"options.videoTier": wireTier,
|
|
1263
|
-
// Resolution is meaningful ONLY for the basic/
|
|
1264
|
-
// other tier the backend derives it. Forward it ONLY for
|
|
1265
|
-
// MCP never presents a "user choice where there is none" (the web
|
|
1266
|
-
// no resolution knob for standard) — for non-
|
|
1267
|
-
"options.videoResolution": wireTier === "
|
|
1263
|
+
// Resolution is meaningful ONLY for the basic/single_call tier; for every
|
|
1264
|
+
// other tier the backend derives it. Forward it ONLY for single_call so
|
|
1265
|
+
// the MCP never presents a "user choice where there is none" (the web
|
|
1266
|
+
// has no resolution knob for standard) — for non-single_call it's dropped.
|
|
1267
|
+
"options.videoResolution": wireTier === "single_call" ? input.videoResolution : void 0,
|
|
1268
1268
|
"options.multiAngleVideos": input.multiAngleVideos,
|
|
1269
1269
|
"options.angleNarratives": input.angleNarratives,
|
|
1270
1270
|
"options.selectedOutputs": input.outputs,
|
|
@@ -1491,7 +1491,7 @@ function registerCreativeTools(server, api, { transport = "http" } = {}) {
|
|
|
1491
1491
|
wirePayload.narrativeStyle = resolved.narrativeStyle;
|
|
1492
1492
|
}
|
|
1493
1493
|
if (wireTier !== void 0) wirePayload.videoTier = wireTier;
|
|
1494
|
-
if (wireTier === "
|
|
1494
|
+
if (wireTier === "single_call" && input.videoResolution) wirePayload.videoResolution = input.videoResolution;
|
|
1495
1495
|
return await submitCreative(api, {
|
|
1496
1496
|
path: "/v1/creatives/videos",
|
|
1497
1497
|
estimatedSeconds: 300,
|
package/dist/stdio.js
CHANGED
|
@@ -476,7 +476,7 @@ var VideoTierEnum = z.enum([
|
|
|
476
476
|
]);
|
|
477
477
|
function resolveVideoTier(tier) {
|
|
478
478
|
if (!tier) return void 0;
|
|
479
|
-
return tier === "basic" ? "
|
|
479
|
+
return tier === "basic" ? "single_call" : "standard";
|
|
480
480
|
}
|
|
481
481
|
__name(resolveVideoTier, "resolveVideoTier");
|
|
482
482
|
var VideoResolutionEnum = z.enum([
|
|
@@ -1216,11 +1216,11 @@ function registerTaskTools(server, api, { proxyBaseUrl = null, transport = "http
|
|
|
1216
1216
|
"options.videoStyle": resolved?.videoStyle,
|
|
1217
1217
|
"options.narrativeStyle": resolved?.narrativeStyle,
|
|
1218
1218
|
"options.videoTier": wireTier,
|
|
1219
|
-
// Resolution is meaningful ONLY for the basic/
|
|
1220
|
-
// other tier the backend derives it. Forward it ONLY for
|
|
1221
|
-
// MCP never presents a "user choice where there is none" (the web
|
|
1222
|
-
// no resolution knob for standard) — for non-
|
|
1223
|
-
"options.videoResolution": wireTier === "
|
|
1219
|
+
// Resolution is meaningful ONLY for the basic/single_call tier; for every
|
|
1220
|
+
// other tier the backend derives it. Forward it ONLY for single_call so
|
|
1221
|
+
// the MCP never presents a "user choice where there is none" (the web
|
|
1222
|
+
// has no resolution knob for standard) — for non-single_call it's dropped.
|
|
1223
|
+
"options.videoResolution": wireTier === "single_call" ? input.videoResolution : void 0,
|
|
1224
1224
|
"options.multiAngleVideos": input.multiAngleVideos,
|
|
1225
1225
|
"options.angleNarratives": input.angleNarratives,
|
|
1226
1226
|
"options.selectedOutputs": input.outputs,
|
|
@@ -1447,7 +1447,7 @@ function registerCreativeTools(server, api, { transport = "http" } = {}) {
|
|
|
1447
1447
|
wirePayload.narrativeStyle = resolved.narrativeStyle;
|
|
1448
1448
|
}
|
|
1449
1449
|
if (wireTier !== void 0) wirePayload.videoTier = wireTier;
|
|
1450
|
-
if (wireTier === "
|
|
1450
|
+
if (wireTier === "single_call" && input.videoResolution) wirePayload.videoResolution = input.videoResolution;
|
|
1451
1451
|
return await submitCreative(api, {
|
|
1452
1452
|
path: "/v1/creatives/videos",
|
|
1453
1453
|
estimatedSeconds: 300,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@productmaker/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Product Maker MCP server — connect Claude Desktop, Claude Code, ChatGPT, or Gemini to Product Maker AI to generate dropshipping landing pages, UGC videos, and ad creatives, and publish to Shopify and Meta Ads from your AI assistant.",
|