@pixeldojo/mcp 0.4.0 → 0.5.1
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 +27 -13
- package/dist/cli.cjs +64 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +64 -7
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +51 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +51 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1147,7 +1147,7 @@ var init_library = __esm({
|
|
|
1147
1147
|
};
|
|
1148
1148
|
librarySkill = {
|
|
1149
1149
|
name: "pixeldojo:library",
|
|
1150
|
-
description: "Search your
|
|
1150
|
+
description: "Search your media library: saved My Media items (permanent) and recent API/MCP generations (expire after 24h), newest first. Returns asset URLs to reuse as reference inputs. Keep a result forever with pixeldojo:save.",
|
|
1151
1151
|
inputZod: InputSchema12,
|
|
1152
1152
|
inputJsonSchema: InputJsonSchema12,
|
|
1153
1153
|
allowedModels: [],
|
|
@@ -1156,6 +1156,52 @@ var init_library = __esm({
|
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
|
+
async function run13(input, ctx) {
|
|
1160
|
+
const res = await ctx.client.saveMedia({
|
|
1161
|
+
url: input.url,
|
|
1162
|
+
prompt: input.prompt,
|
|
1163
|
+
tool_name: input.tool_name,
|
|
1164
|
+
modality: input.modality,
|
|
1165
|
+
job_id: input.job_id
|
|
1166
|
+
});
|
|
1167
|
+
return {
|
|
1168
|
+
kind: "text",
|
|
1169
|
+
text: `Saved to My Media (permanent): ${res.url}
|
|
1170
|
+
It will appear at https://pixeldojo.ai/my-images and in pixeldojo:library searches.`
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
var InputSchema13, InputJsonSchema13, saveSkill;
|
|
1174
|
+
var init_save = __esm({
|
|
1175
|
+
"src/skills/save.ts"() {
|
|
1176
|
+
InputSchema13 = zod.z.object({
|
|
1177
|
+
url: zod.z.string().url().describe("The asset URL to save (image or video)."),
|
|
1178
|
+
prompt: zod.z.string().optional().describe("The prompt that produced it \u2014 makes it findable in the library later."),
|
|
1179
|
+
tool_name: zod.z.string().optional().describe("Tool/model slug that produced it."),
|
|
1180
|
+
modality: zod.z.enum(["image", "video", "audio"]).optional(),
|
|
1181
|
+
job_id: zod.z.string().optional().describe("The jobId that produced this asset, when known.")
|
|
1182
|
+
});
|
|
1183
|
+
InputJsonSchema13 = {
|
|
1184
|
+
type: "object",
|
|
1185
|
+
properties: {
|
|
1186
|
+
url: { type: "string", format: "uri" },
|
|
1187
|
+
prompt: { type: "string" },
|
|
1188
|
+
tool_name: { type: "string" },
|
|
1189
|
+
modality: { type: "string", enum: ["image", "video", "audio"] },
|
|
1190
|
+
job_id: { type: "string" }
|
|
1191
|
+
},
|
|
1192
|
+
required: ["url"]
|
|
1193
|
+
};
|
|
1194
|
+
saveSkill = {
|
|
1195
|
+
name: "pixeldojo:save",
|
|
1196
|
+
description: "Save a generated image or video into the user's My Media library permanently. Generation outputs otherwise expire after 24 hours \u2014 call this when the user wants to keep a result.",
|
|
1197
|
+
inputZod: InputSchema13,
|
|
1198
|
+
inputJsonSchema: InputJsonSchema13,
|
|
1199
|
+
allowedModels: [],
|
|
1200
|
+
defaultModel: "",
|
|
1201
|
+
run: run13
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1159
1205
|
function substitutePlaceholders(args, inputs, prevUrl) {
|
|
1160
1206
|
const missing = [];
|
|
1161
1207
|
const fill = (value) => {
|
|
@@ -1350,6 +1396,7 @@ __export(skills_exports, {
|
|
|
1350
1396
|
librarySkill: () => librarySkill,
|
|
1351
1397
|
listWorkflowsSkill: () => listWorkflowsSkill,
|
|
1352
1398
|
runWorkflowSkill: () => runWorkflowSkill,
|
|
1399
|
+
saveSkill: () => saveSkill,
|
|
1353
1400
|
saveWorkflowSkill: () => saveWorkflowSkill,
|
|
1354
1401
|
statusSkill: () => statusSkill,
|
|
1355
1402
|
storyboardSkill: () => storyboardSkill,
|
|
@@ -1374,6 +1421,7 @@ var init_skills = __esm({
|
|
|
1374
1421
|
init_upload();
|
|
1375
1422
|
init_audio();
|
|
1376
1423
|
init_library();
|
|
1424
|
+
init_save();
|
|
1377
1425
|
init_workflows();
|
|
1378
1426
|
exports.ALL_SKILLS = [
|
|
1379
1427
|
generateSkill,
|
|
@@ -1383,6 +1431,7 @@ var init_skills = __esm({
|
|
|
1383
1431
|
upscaleSkill,
|
|
1384
1432
|
audioSkill,
|
|
1385
1433
|
librarySkill,
|
|
1434
|
+
saveSkill,
|
|
1386
1435
|
saveWorkflowSkill,
|
|
1387
1436
|
runWorkflowSkill,
|
|
1388
1437
|
listWorkflowsSkill,
|
|
@@ -1445,7 +1494,7 @@ function makeRedactedLogger(target = console) {
|
|
|
1445
1494
|
}
|
|
1446
1495
|
|
|
1447
1496
|
// src/server.ts
|
|
1448
|
-
var PACKAGE_VERSION = "0.1
|
|
1497
|
+
var PACKAGE_VERSION = "0.5.1" ;
|
|
1449
1498
|
function buildServer(options) {
|
|
1450
1499
|
if (!options.apiKey) {
|
|
1451
1500
|
throw new Error(
|