@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.d.cts
CHANGED
|
@@ -142,7 +142,7 @@ interface SkillModule<TInput = unknown> {
|
|
|
142
142
|
* payloads (never raw stack traces).
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
declare const PACKAGE_VERSION
|
|
145
|
+
declare const PACKAGE_VERSION: string;
|
|
146
146
|
interface ServerOptions {
|
|
147
147
|
apiKey: string;
|
|
148
148
|
baseUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ interface SkillModule<TInput = unknown> {
|
|
|
142
142
|
* payloads (never raw stack traces).
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
declare const PACKAGE_VERSION
|
|
145
|
+
declare const PACKAGE_VERSION: string;
|
|
146
146
|
interface ServerOptions {
|
|
147
147
|
apiKey: string;
|
|
148
148
|
baseUrl?: string;
|
package/dist/index.js
CHANGED
|
@@ -1145,7 +1145,7 @@ var init_library = __esm({
|
|
|
1145
1145
|
};
|
|
1146
1146
|
librarySkill = {
|
|
1147
1147
|
name: "pixeldojo:library",
|
|
1148
|
-
description: "Search your
|
|
1148
|
+
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.",
|
|
1149
1149
|
inputZod: InputSchema12,
|
|
1150
1150
|
inputJsonSchema: InputJsonSchema12,
|
|
1151
1151
|
allowedModels: [],
|
|
@@ -1154,6 +1154,52 @@ var init_library = __esm({
|
|
|
1154
1154
|
};
|
|
1155
1155
|
}
|
|
1156
1156
|
});
|
|
1157
|
+
async function run13(input, ctx) {
|
|
1158
|
+
const res = await ctx.client.saveMedia({
|
|
1159
|
+
url: input.url,
|
|
1160
|
+
prompt: input.prompt,
|
|
1161
|
+
tool_name: input.tool_name,
|
|
1162
|
+
modality: input.modality,
|
|
1163
|
+
job_id: input.job_id
|
|
1164
|
+
});
|
|
1165
|
+
return {
|
|
1166
|
+
kind: "text",
|
|
1167
|
+
text: `Saved to My Media (permanent): ${res.url}
|
|
1168
|
+
It will appear at https://pixeldojo.ai/my-images and in pixeldojo:library searches.`
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
var InputSchema13, InputJsonSchema13, saveSkill;
|
|
1172
|
+
var init_save = __esm({
|
|
1173
|
+
"src/skills/save.ts"() {
|
|
1174
|
+
InputSchema13 = z.object({
|
|
1175
|
+
url: z.string().url().describe("The asset URL to save (image or video)."),
|
|
1176
|
+
prompt: z.string().optional().describe("The prompt that produced it \u2014 makes it findable in the library later."),
|
|
1177
|
+
tool_name: z.string().optional().describe("Tool/model slug that produced it."),
|
|
1178
|
+
modality: z.enum(["image", "video", "audio"]).optional(),
|
|
1179
|
+
job_id: z.string().optional().describe("The jobId that produced this asset, when known.")
|
|
1180
|
+
});
|
|
1181
|
+
InputJsonSchema13 = {
|
|
1182
|
+
type: "object",
|
|
1183
|
+
properties: {
|
|
1184
|
+
url: { type: "string", format: "uri" },
|
|
1185
|
+
prompt: { type: "string" },
|
|
1186
|
+
tool_name: { type: "string" },
|
|
1187
|
+
modality: { type: "string", enum: ["image", "video", "audio"] },
|
|
1188
|
+
job_id: { type: "string" }
|
|
1189
|
+
},
|
|
1190
|
+
required: ["url"]
|
|
1191
|
+
};
|
|
1192
|
+
saveSkill = {
|
|
1193
|
+
name: "pixeldojo:save",
|
|
1194
|
+
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.",
|
|
1195
|
+
inputZod: InputSchema13,
|
|
1196
|
+
inputJsonSchema: InputJsonSchema13,
|
|
1197
|
+
allowedModels: [],
|
|
1198
|
+
defaultModel: "",
|
|
1199
|
+
run: run13
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1157
1203
|
function substitutePlaceholders(args, inputs, prevUrl) {
|
|
1158
1204
|
const missing = [];
|
|
1159
1205
|
const fill = (value) => {
|
|
@@ -1348,6 +1394,7 @@ __export(skills_exports, {
|
|
|
1348
1394
|
librarySkill: () => librarySkill,
|
|
1349
1395
|
listWorkflowsSkill: () => listWorkflowsSkill,
|
|
1350
1396
|
runWorkflowSkill: () => runWorkflowSkill,
|
|
1397
|
+
saveSkill: () => saveSkill,
|
|
1351
1398
|
saveWorkflowSkill: () => saveWorkflowSkill,
|
|
1352
1399
|
statusSkill: () => statusSkill,
|
|
1353
1400
|
storyboardSkill: () => storyboardSkill,
|
|
@@ -1372,6 +1419,7 @@ var init_skills = __esm({
|
|
|
1372
1419
|
init_upload();
|
|
1373
1420
|
init_audio();
|
|
1374
1421
|
init_library();
|
|
1422
|
+
init_save();
|
|
1375
1423
|
init_workflows();
|
|
1376
1424
|
ALL_SKILLS = [
|
|
1377
1425
|
generateSkill,
|
|
@@ -1381,6 +1429,7 @@ var init_skills = __esm({
|
|
|
1381
1429
|
upscaleSkill,
|
|
1382
1430
|
audioSkill,
|
|
1383
1431
|
librarySkill,
|
|
1432
|
+
saveSkill,
|
|
1384
1433
|
saveWorkflowSkill,
|
|
1385
1434
|
runWorkflowSkill,
|
|
1386
1435
|
listWorkflowsSkill,
|
|
@@ -1443,7 +1492,7 @@ function makeRedactedLogger(target = console) {
|
|
|
1443
1492
|
}
|
|
1444
1493
|
|
|
1445
1494
|
// src/server.ts
|
|
1446
|
-
var PACKAGE_VERSION = "0.1
|
|
1495
|
+
var PACKAGE_VERSION = "0.5.1" ;
|
|
1447
1496
|
function buildServer(options) {
|
|
1448
1497
|
if (!options.apiKey) {
|
|
1449
1498
|
throw new Error(
|