@dynamic-mockups/mcp 1.1.1 → 1.1.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/package.json +1 -1
- package/src/index.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1149,7 +1149,7 @@ Use cases:
|
|
|
1149
1149
|
|
|
1150
1150
|
PREREQUISITES: Call get_mockups first - it returns both mockup_uuid AND smart_object uuids for all templates.
|
|
1151
1151
|
|
|
1152
|
-
RETURNS: {total_renders, successful_renders, failed_renders, renders[]} where each render has {status, export_path, export_label, mockup_uuid}.`,
|
|
1152
|
+
RETURNS: {total_renders, successful_renders, failed_renders, renders[]} where each render has {status, export_path, export_label, mockup_uuid, mockup_type}.`,
|
|
1153
1153
|
inputSchema: {
|
|
1154
1154
|
type: "object",
|
|
1155
1155
|
properties: {
|
|
@@ -1644,6 +1644,7 @@ async function handleCreateRender(args, extra) {
|
|
|
1644
1644
|
if (args.text_layers) payload.text_layers = args.text_layers;
|
|
1645
1645
|
|
|
1646
1646
|
const response = await createApiClient(apiKey, "create_render").post("/renders", payload);
|
|
1647
|
+
if (response.data?.data) response.data = response.data.data;
|
|
1647
1648
|
return ResponseFormatter.fromApiResponse(response, "Render created (1 credit used)");
|
|
1648
1649
|
} catch (err) {
|
|
1649
1650
|
return ResponseFormatter.fromError(err, "Failed to create render");
|
|
@@ -1660,6 +1661,7 @@ async function handleCreateBatchRender(args, extra) {
|
|
|
1660
1661
|
if (args.export_options) payload.export_options = args.export_options;
|
|
1661
1662
|
|
|
1662
1663
|
const response = await createApiClient(apiKey, "create_batch_render").post("/renders/batch", payload);
|
|
1664
|
+
if (response.data?.data) response.data = response.data.data;
|
|
1663
1665
|
const count = args.renders?.length || 0;
|
|
1664
1666
|
return ResponseFormatter.fromApiResponse(response, `Batch render complete (${count} credits used)`);
|
|
1665
1667
|
} catch (err) {
|