@wavespeed/mcp 1.1.0 → 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/dist/lib/media-models.js +4 -4
- package/dist/server.js +2 -2
- package/package.json +1 -1
package/dist/lib/media-models.js
CHANGED
|
@@ -76,16 +76,16 @@ export function videoModelForEndpoint(modelId) {
|
|
|
76
76
|
return VIDEO_MODEL_KEYS.map((k) => VIDEO_MODELS[k]).find((m) => m.turbo === turbo && modelId.startsWith(`${m.base}/`));
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* A model's endpoints.
|
|
80
|
-
* reference-to-video endpoint
|
|
81
|
-
* endpoints have no extend.
|
|
79
|
+
* A model's endpoints. Every family takes references on a dedicated
|
|
80
|
+
* reference-to-video endpoint. Seedance has turbo ones; the others do not.
|
|
81
|
+
* Turbo endpoints have no extend.
|
|
82
82
|
*/
|
|
83
83
|
export function videoEndpoints(m) {
|
|
84
84
|
const suffix = m.turbo ? '-turbo' : '';
|
|
85
85
|
return {
|
|
86
86
|
text: `${m.base}/text-to-video${suffix}`,
|
|
87
87
|
image: `${m.base}/image-to-video${suffix}`,
|
|
88
|
-
|
|
88
|
+
reference: `${m.base}/reference-to-video${m.family === 'seedance-2.5' || m.family === 'seedance-2.0' ? suffix : ''}`,
|
|
89
89
|
edit: `${m.base}/video-edit${suffix}`,
|
|
90
90
|
...(m.modes.includes('extend') ? { extend: `${m.base}/video-extend` } : {}),
|
|
91
91
|
};
|
package/dist/server.js
CHANGED
|
@@ -295,7 +295,7 @@ export function createServer() {
|
|
|
295
295
|
const imageShape = {
|
|
296
296
|
prompt: z.string().min(1).describe('Complete visual prompt: subject, composition, style, lighting, mood.'),
|
|
297
297
|
model: z.enum(IMAGE_MODEL_KEYS).optional().describe('Only when the user names a model; default is the first (Seedream 5 Pro).'),
|
|
298
|
-
aspect_ratio: z.string().optional().describe('e.g. 1:1, 16:9, 9:16, 4:3, 3:4; snapped to what the model supports.'),
|
|
298
|
+
aspect_ratio: z.string().optional().describe('e.g. 1:1, 16:9, 9:16, 4:3, 3:4; snapped to what the model supports. If omitted: text-to-image is 1:1; with input images it is determined automatically from the input image.'),
|
|
299
299
|
resolution: z.enum(['1k', '2k', '4k']).optional().describe('Only when the user asks for a size.'),
|
|
300
300
|
wait_seconds: waitSchema,
|
|
301
301
|
estimate_only: estimateSchema,
|
|
@@ -331,7 +331,7 @@ export function createServer() {
|
|
|
331
331
|
reference_audios: mediaList('Optional audio for voice, music or sound to use').optional(),
|
|
332
332
|
duration: durationSchema,
|
|
333
333
|
resolution: resolutionSchema,
|
|
334
|
-
aspect_ratio: z.enum(['16:9', '9:16', '1:1', '4:3', '3:4', '21:9']).optional(),
|
|
334
|
+
aspect_ratio: z.enum(['16:9', '9:16', '1:1', '4:3', '3:4', '21:9']).optional().describe("If omitted, the model's default ratio is used; with first_frame the video follows that image's shape and this is ignored."),
|
|
335
335
|
wait_seconds: waitSchema,
|
|
336
336
|
estimate_only: estimateSchema,
|
|
337
337
|
}, shortcutAnnotations, async (raw, extra) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavespeed/mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "WaveSpeed MCP server — run any model on the live WaveSpeed catalog (image, video, audio, 3D) with schema introspection, local-file upload, and price quotes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|