@kolbo/mcp 1.55.1 → 1.56.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolbo/mcp",
3
- "version": "1.55.1",
3
+ "version": "1.56.0",
4
4
  "description": "Kolbo AI MCP Server - Generate images, videos, music, speech, and sound effects from Claude Code",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -767,9 +767,13 @@ function registerGenerateTools(server, client, options = {}) {
767
767
  enhance_prompt: z.boolean().optional().describe('Enhance the prompt. Default: false — only pass true if the user explicitly asks to enhance/improve the prompt.'),
768
768
  visual_dna_ids: z.array(z.string()).optional().describe('Array of Visual DNA profile IDs to apply for character/style consistency across outputs. **Cap: pass at most `max_visual_dna` IDs from list_models for the chosen model.**'),
769
769
  resolution: z.string().optional().describe('Video resolution tier (vertical pixels): "720p" / "1080p" / "1440p" / "2160p". Model-dependent — call list_models and read supported_resolutions.'),
770
+ keyframes: z.array(z.object({
771
+ image_url: z.string().describe('Public URL of the keyframe image'),
772
+ timestamp_seconds: z.number().describe('Moment on the OUTPUT timeline (seconds, 0 = first frame) where this image is pinned')
773
+ })).optional().describe('Timeline-pinned keyframes for multi-keyframe models (e.g. "flux-3-keyframes", "luma-ray-3-2-storyboard"): the model generates the motion BETWEEN the pinned images. Only models with `supports_keyframes: true` in list_models accept this; cap = `max_keyframes` (FLUX 3: 10). Requires an explicit `duration` — timestamps beyond it are clamped. Ignored by ordinary elements models. OPTIONAL for flux-3-keyframes: if omitted, pass the images via reference_images instead — they are played through IN ORDER, timed from timing language in the prompt or spaced evenly. Pass explicit keyframes only when you need exact control.'),
770
774
  project_id: projectIdField
771
775
  },
772
- async ({ prompt, model, reference_images, reference_videos, reference_audio_urls, audio_url, files, duration, aspect_ratio, motion, preset_id, enhance_prompt = false, visual_dna_ids, resolution, project_id }) => {
776
+ async ({ prompt, model, reference_images, reference_videos, reference_audio_urls, audio_url, files, duration, aspect_ratio, motion, preset_id, enhance_prompt = false, visual_dna_ids, resolution, keyframes, project_id }) => {
773
777
  model = await canonicalModelId(client, model); // lenient id resolution ("z-image" → "z-image/turbo")
774
778
  if (!prompt) throw new Error('prompt is required');
775
779
 
@@ -791,6 +795,7 @@ function registerGenerateTools(server, client, options = {}) {
791
795
  if (reference_audio_urls) form.append('reference_audio_urls', JSON.stringify(reference_audio_urls));
792
796
  if (audio_url) form.append('audio_url', audio_url);
793
797
  if (resolution) form.append('resolution', resolution);
798
+ if (keyframes) form.append('keyframes', JSON.stringify(keyframes));
794
799
  if (project_id) form.append('project_id', project_id);
795
800
  for (const f of resolved) {
796
801
  form.append('files', f.buffer, { filename: f.filename, contentType: f.contentType });
@@ -799,7 +804,7 @@ function registerGenerateTools(server, client, options = {}) {
799
804
  } else {
800
805
  // URL-only mode: plain JSON.
801
806
  startResponse = await client.post('/v1/generate/elements', {
802
- prompt, model, reference_images, reference_videos, reference_audio_urls, audio_url, duration, aspect_ratio, motion, preset_id, enhance_prompt, visual_dna_ids, resolution, project_id
807
+ prompt, model, reference_images, reference_videos, reference_audio_urls, audio_url, duration, aspect_ratio, motion, preset_id, enhance_prompt, visual_dna_ids, resolution, keyframes, project_id
803
808
  });
804
809
  }
805
810