@marlinjai/studio-mcp 0.17.0 → 0.18.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/README.md CHANGED
@@ -154,6 +154,14 @@ studio_replace_character_in_video
154
154
 
155
155
  Reference categories written by the mint: `face`, `three-quarter`, `profile`, `full-body`, `close-up`, `lighting-warm`, `lighting-cool` (the Studio's canonical names, the same ones its in-app mint flow and try-on ranker use).
156
156
 
157
+ ### What changed in 0.18.0
158
+
159
+ No argument was renamed or removed. What changed is how a run priced by a measured clip length is confirmed, and what a company can be charged:
160
+
161
+ - **A new `confirmation_required` reason, `measured_length`.** A run (`studio_run_workflow`) or recipe (`studio_run_published`) with a video-to-video or enhance node is priced by a clip length the Studio measures on the server, a figure no page could show before the request. Such a run refuses with `{ code: "confirmation_required", reason: "measured_length", estimate }` at any amount, not only at the $10 threshold. Show the person `estimate.totalUsd` and resend the same request with `confirm: true` only after they agree. The threshold refusal now carries `reason: "threshold"`. A client that treats every `confirmation_required` the same way (show the estimate, ask, resend with `confirm: true`) needs no change.
162
+ - **A source clip the Studio cannot measure is refused before anything is spent**, with `422` and `{ code: "source_length_unknown", nodeId }`, never priced at a guessed length.
163
+ - **A charge never exceeds the price shown and held.** Every job is debited at most the price it was admitted at; Studio absorbs anything a provider bills above it. Text calls (Improve, shot descriptions, campaign shot ideas) are held at the upper bound of their price, computed from what they send and the most they may write, and a text model is quoted (`/api/v1/prices`) at the most any call of it can be held at.
164
+
157
165
  ### What changed in 0.6.0
158
166
 
159
167
  No argument and no result field was renamed or removed. What changed is the meaning of the amounts the Studio returns to a company on prepaid credits, since 2026-10-11, and the text of the tools that describe them:
package/dist/cli.js CHANGED
@@ -2044,7 +2044,24 @@ var VIDEO_PINNED_DEFAULT_SECONDS = {
2044
2044
  // LTX-2.5 defaults to "auto", a length nobody can price up front; 6 s is its
2045
2045
  // shortest clip on both tiers.
2046
2046
  [LTX_25_FAST_I2V_ENDPOINT]: 6,
2047
- [LTX_25_PRO_I2V_ENDPOINT]: 6
2047
+ [LTX_25_PRO_I2V_ENDPOINT]: 6,
2048
+ // fal's own default is 5 s on these (schemas read 2026-10-25); sent so the
2049
+ // bill cannot drift from the clip if fal ever changes it.
2050
+ "fal-ai/kling-video/v2.5-turbo/pro/image-to-video": 5,
2051
+ "fal-ai/bytedance/seedance/v1/pro/image-to-video": 5,
2052
+ "fal-ai/bytedance/seedance/v1/pro/text-to-video": 5,
2053
+ "blackforestlabs/flux-3/first-last-frame-to-video": 5,
2054
+ "blackforestlabs/flux-3/first-last-frame-to-video/draft": 5,
2055
+ "blackforestlabs/flux-3/keyframes-to-video": 5,
2056
+ "blackforestlabs/flux-3/keyframes-to-video/draft": 5,
2057
+ // `auto` by default on these (fal schemas, 2026-10-25): the model would pick
2058
+ // a length nobody can price. 5 s is the shortest FLUX.3 renders and the clip
2059
+ // the Seedance anchors were priced at.
2060
+ "bytedance/seedance-2.0/image-to-video": 5,
2061
+ "bytedance/seedance-2.5/image-to-video": 5,
2062
+ "bytedance/seedance-2.5/text-to-video": 5,
2063
+ "blackforestlabs/flux-3/image-to-video": 5,
2064
+ "blackforestlabs/flux-3/image-to-video/draft": 5
2048
2065
  };
2049
2066
  var VIDEO_DEFAULT_RESOLUTION = {
2050
2067
  "blackforestlabs/flux-3/keyframes-to-video": "720p",
@@ -7531,7 +7548,7 @@ var workflowDefinitionSchema = WorkflowDefinitionSchema.describe(
7531
7548
  );
7532
7549
  var studioRunWorkflow = defineTool({
7533
7550
  name: "studio_run_workflow",
7534
- description: `Run a generation workflow DAG. Pass an inline definition (nodes of provider calls wired by ref bindings; this is what the hosted Studio accepts) or the savedId of a workflow saved in the Studio (the Studio runs that workflow's current document, exactly what the canvas would run). Params fill {kind:"param"} bindings. Returns the runId plus per-node status, URLs and cost; with wait=true (default) it blocks until the run is terminal (succeeded, failed, partial, cancelled). Each node becomes a paid job. Use an inline definition ONLY for the first batch of a new deliverable (one workflow, a node per item, a stable label); a follow-up on an existing item belongs in that saved workflow as a new node (studio_workflow_apply: addNode plus connect from the node it refines) run here with savedId and nodeIds, because every listed inline run is saved as its own workflow. A clip with both a start and an end frame is checked for continuity before it is paid for (see acknowledgeContinuity).`,
7551
+ description: `Run a generation workflow DAG. Pass an inline definition (nodes of provider calls wired by ref bindings; this is what the hosted Studio accepts) or the savedId of a workflow saved in the Studio (the Studio runs that workflow's current document, exactly what the canvas would run). Params fill {kind:"param"} bindings. Returns the runId plus per-node status, URLs and cost; with wait=true (default) it blocks until the run is terminal (succeeded, failed, partial, cancelled). Each node becomes a paid job. Use an inline definition ONLY for the first batch of a new deliverable (one workflow, a node per item, a stable label); a follow-up on an existing item belongs in that saved workflow as a new node (studio_workflow_apply: addNode plus connect from the node it refines) run here with savedId and nodeIds, because every listed inline run is saved as its own workflow. A clip with both a start and an end frame is checked for continuity before it is paid for (see acknowledgeContinuity). A video-to-video node is priced by its source clip's length, which the Studio measures before admission; a source it cannot measure (or one whose length is not known before the run) refuses with 422 { code: "source_length_unknown", nodeId } before anything is spent.`,
7535
7552
  inputSchema: {
7536
7553
  projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
7537
7554
  definition: workflowDefinitionSchema.optional(),
@@ -7547,7 +7564,7 @@ var studioRunWorkflow = defineTool({
7547
7564
  'S6b: hard cap on the estimated cost, verified server-side before anything is created. An unverifiable estimate (a credits-only or unpriced executing node) refuses too, never proceeds silently. Refusal: { code: "budget_exceeded", estimate }. For `runs`>1 this is the AGGREGATE cap across every iteration.'
7548
7565
  ),
7549
7566
  confirm: z12.boolean().optional().describe(
7550
- 'S6b: bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", estimate }.'
7567
+ 'S6b: bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", reason: "threshold", estimate }. A run with a video-to-video or enhance node is priced by a clip length the server measures, so it refuses with { code: "confirmation_required", reason: "measured_length", estimate } at any figure: show the person estimate.totalUsd and resend with confirm: true only after they agree.'
7551
7568
  ),
7552
7569
  acknowledgeContinuity: z12.boolean().optional().describe(
7553
7570
  'Run despite the continuity check. Before a run executes an image-to-video node with BOTH a start frame (inputImageUrl) and an end frame (endImageUrl), the Studio compares the two frames with a vision model (one small paid check per new pair of frames, remembered for your company, so an unchanged pair is never charged twice): a person or a held object in one frame and not the other makes the video model invent or erase it mid-clip. Frames that disagree refuse with { code: "continuity_mismatch", nodes: [{ nodeId, differences }] }; a check that could not run refuses with { code: "continuity_unchecked", nodes: [{ nodeId, reason }] }. Nothing is spent on either. Show the differences to the person you act for and fix the frames; pass true only when they decide to run anyway.'
@@ -7761,7 +7778,7 @@ var studioRunPublished = defineTool({
7761
7778
  'Hard cap on the estimated cost, verified server-side before anything is created. An unverifiable estimate (a credits-only or unpriced executing node) refuses too. Refusal: { code: "budget_exceeded", estimate }.'
7762
7779
  ),
7763
7780
  confirm: z12.boolean().optional().describe(
7764
- 'Bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", estimate }.'
7781
+ 'Bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", reason: "threshold", estimate }. A recipe with a video-to-video or enhance node is priced by a clip length the server measures, so it refuses with { code: "confirmation_required", reason: "measured_length", estimate } at any figure: show the person estimate.totalUsd and resend with confirm: true only after they agree.'
7765
7782
  ),
7766
7783
  likenessRightsConfirmed: z12.literal(true).optional().describe(`Required when the recipe creates a character; ignored otherwise. ${likenessConfirmationToolDescription()}`),
7767
7784
  acknowledgeContinuity: z12.boolean().optional().describe(
@@ -7880,7 +7897,7 @@ function registerTools(server, base) {
7880
7897
 
7881
7898
  // src/server.ts
7882
7899
  var SERVER_NAME = "lumitra-studio";
7883
- var SERVER_VERSION = "0.17.0";
7900
+ var SERVER_VERSION = "0.18.0";
7884
7901
  function createStudioMcpServer(opts = {}) {
7885
7902
  const config = opts.config ?? resolveConfig(opts.env ?? process.env);
7886
7903
  const client = new StudioClient(config, {
package/dist/index.d.ts CHANGED
@@ -2182,7 +2182,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
2182
2182
  */
2183
2183
 
2184
2184
  declare const SERVER_NAME = "lumitra-studio";
2185
- declare const SERVER_VERSION = "0.17.0";
2185
+ declare const SERVER_VERSION = "0.18.0";
2186
2186
  interface CreateServerOptions {
2187
2187
  config?: StudioConfig;
2188
2188
  env?: NodeJS.ProcessEnv;
package/dist/index.js CHANGED
@@ -2036,7 +2036,24 @@ var VIDEO_PINNED_DEFAULT_SECONDS = {
2036
2036
  // LTX-2.5 defaults to "auto", a length nobody can price up front; 6 s is its
2037
2037
  // shortest clip on both tiers.
2038
2038
  [LTX_25_FAST_I2V_ENDPOINT]: 6,
2039
- [LTX_25_PRO_I2V_ENDPOINT]: 6
2039
+ [LTX_25_PRO_I2V_ENDPOINT]: 6,
2040
+ // fal's own default is 5 s on these (schemas read 2026-10-25); sent so the
2041
+ // bill cannot drift from the clip if fal ever changes it.
2042
+ "fal-ai/kling-video/v2.5-turbo/pro/image-to-video": 5,
2043
+ "fal-ai/bytedance/seedance/v1/pro/image-to-video": 5,
2044
+ "fal-ai/bytedance/seedance/v1/pro/text-to-video": 5,
2045
+ "blackforestlabs/flux-3/first-last-frame-to-video": 5,
2046
+ "blackforestlabs/flux-3/first-last-frame-to-video/draft": 5,
2047
+ "blackforestlabs/flux-3/keyframes-to-video": 5,
2048
+ "blackforestlabs/flux-3/keyframes-to-video/draft": 5,
2049
+ // `auto` by default on these (fal schemas, 2026-10-25): the model would pick
2050
+ // a length nobody can price. 5 s is the shortest FLUX.3 renders and the clip
2051
+ // the Seedance anchors were priced at.
2052
+ "bytedance/seedance-2.0/image-to-video": 5,
2053
+ "bytedance/seedance-2.5/image-to-video": 5,
2054
+ "bytedance/seedance-2.5/text-to-video": 5,
2055
+ "blackforestlabs/flux-3/image-to-video": 5,
2056
+ "blackforestlabs/flux-3/image-to-video/draft": 5
2040
2057
  };
2041
2058
  var VIDEO_DEFAULT_RESOLUTION = {
2042
2059
  "blackforestlabs/flux-3/keyframes-to-video": "720p",
@@ -7526,7 +7543,7 @@ var workflowDefinitionSchema = WorkflowDefinitionSchema.describe(
7526
7543
  );
7527
7544
  var studioRunWorkflow = defineTool({
7528
7545
  name: "studio_run_workflow",
7529
- description: `Run a generation workflow DAG. Pass an inline definition (nodes of provider calls wired by ref bindings; this is what the hosted Studio accepts) or the savedId of a workflow saved in the Studio (the Studio runs that workflow's current document, exactly what the canvas would run). Params fill {kind:"param"} bindings. Returns the runId plus per-node status, URLs and cost; with wait=true (default) it blocks until the run is terminal (succeeded, failed, partial, cancelled). Each node becomes a paid job. Use an inline definition ONLY for the first batch of a new deliverable (one workflow, a node per item, a stable label); a follow-up on an existing item belongs in that saved workflow as a new node (studio_workflow_apply: addNode plus connect from the node it refines) run here with savedId and nodeIds, because every listed inline run is saved as its own workflow. A clip with both a start and an end frame is checked for continuity before it is paid for (see acknowledgeContinuity).`,
7546
+ description: `Run a generation workflow DAG. Pass an inline definition (nodes of provider calls wired by ref bindings; this is what the hosted Studio accepts) or the savedId of a workflow saved in the Studio (the Studio runs that workflow's current document, exactly what the canvas would run). Params fill {kind:"param"} bindings. Returns the runId plus per-node status, URLs and cost; with wait=true (default) it blocks until the run is terminal (succeeded, failed, partial, cancelled). Each node becomes a paid job. Use an inline definition ONLY for the first batch of a new deliverable (one workflow, a node per item, a stable label); a follow-up on an existing item belongs in that saved workflow as a new node (studio_workflow_apply: addNode plus connect from the node it refines) run here with savedId and nodeIds, because every listed inline run is saved as its own workflow. A clip with both a start and an end frame is checked for continuity before it is paid for (see acknowledgeContinuity). A video-to-video node is priced by its source clip's length, which the Studio measures before admission; a source it cannot measure (or one whose length is not known before the run) refuses with 422 { code: "source_length_unknown", nodeId } before anything is spent.`,
7530
7547
  inputSchema: {
7531
7548
  projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
7532
7549
  definition: workflowDefinitionSchema.optional(),
@@ -7542,7 +7559,7 @@ var studioRunWorkflow = defineTool({
7542
7559
  'S6b: hard cap on the estimated cost, verified server-side before anything is created. An unverifiable estimate (a credits-only or unpriced executing node) refuses too, never proceeds silently. Refusal: { code: "budget_exceeded", estimate }. For `runs`>1 this is the AGGREGATE cap across every iteration.'
7543
7560
  ),
7544
7561
  confirm: z12.boolean().optional().describe(
7545
- 'S6b: bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", estimate }.'
7562
+ 'S6b: bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", reason: "threshold", estimate }. A run with a video-to-video or enhance node is priced by a clip length the server measures, so it refuses with { code: "confirmation_required", reason: "measured_length", estimate } at any figure: show the person estimate.totalUsd and resend with confirm: true only after they agree.'
7546
7563
  ),
7547
7564
  acknowledgeContinuity: z12.boolean().optional().describe(
7548
7565
  'Run despite the continuity check. Before a run executes an image-to-video node with BOTH a start frame (inputImageUrl) and an end frame (endImageUrl), the Studio compares the two frames with a vision model (one small paid check per new pair of frames, remembered for your company, so an unchanged pair is never charged twice): a person or a held object in one frame and not the other makes the video model invent or erase it mid-clip. Frames that disagree refuse with { code: "continuity_mismatch", nodes: [{ nodeId, differences }] }; a check that could not run refuses with { code: "continuity_unchecked", nodes: [{ nodeId, reason }] }. Nothing is spent on either. Show the differences to the person you act for and fix the frames; pass true only when they decide to run anyway.'
@@ -7756,7 +7773,7 @@ var studioRunPublished = defineTool({
7756
7773
  'Hard cap on the estimated cost, verified server-side before anything is created. An unverifiable estimate (a credits-only or unpriced executing node) refuses too. Refusal: { code: "budget_exceeded", estimate }.'
7757
7774
  ),
7758
7775
  confirm: z12.boolean().optional().describe(
7759
- 'Bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", estimate }.'
7776
+ 'Bypasses the confirmation threshold for this one request (a flat $10 today) when the estimate meets or exceeds it. Without this, such a run refuses with { code: "confirmation_required", reason: "threshold", estimate }. A recipe with a video-to-video or enhance node is priced by a clip length the server measures, so it refuses with { code: "confirmation_required", reason: "measured_length", estimate } at any figure: show the person estimate.totalUsd and resend with confirm: true only after they agree.'
7760
7777
  ),
7761
7778
  likenessRightsConfirmed: z12.literal(true).optional().describe(`Required when the recipe creates a character; ignored otherwise. ${likenessConfirmationToolDescription()}`),
7762
7779
  acknowledgeContinuity: z12.boolean().optional().describe(
@@ -7875,7 +7892,7 @@ function registerTools(server, base) {
7875
7892
 
7876
7893
  // src/server.ts
7877
7894
  var SERVER_NAME = "lumitra-studio";
7878
- var SERVER_VERSION = "0.17.0";
7895
+ var SERVER_VERSION = "0.18.0";
7879
7896
  function createStudioMcpServer(opts = {}) {
7880
7897
  const config = opts.config ?? resolveConfig(opts.env ?? process.env);
7881
7898
  const client = new StudioClient(config, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marlinjai/studio-mcp",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "private": false,
5
5
  "description": "Model Context Protocol (MCP) server over the Lumitra Studio HTTP API: generate images, mint characters, run workflows, swap characters into video.",
6
6
  "license": "MIT",