@marlinjai/studio-mcp 0.17.0 → 0.18.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 CHANGED
@@ -154,12 +154,20 @@ 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:
160
168
 
161
- - **`costUsd` is what the job cost your company.** For a company on prepaid credits it is the amount that left its balance for the job (the same figure the estimate before a run shows), on `studio_generate_image`, `studio_generate_3d`, `studio_rig_3d`, `studio_get_job`, `studio_get_run`, `studio_run_workflow`, `studio_run_published`, `studio_mint_character` and `studio_replace_character_in_video`. A program that added a factor of its own to `costUsd` to predict the balance must stop: the balance falls by `costUsd`. For a company held to a monthly cap arranged with the Lumitra operator nothing changes.
162
- - **`studio_get_spend` and `studio_get_usage` report what was paid.** For a company on prepaid credits the totals of `studio_get_spend` equal what left the balance for the jobs of each window, and `usedUsd`, `realizedUsd`, `inFlightEstimatedUsd` and `byModel` of `studio_get_usage` are in the same dollars as `credits.balanceUsd`. `capUsd` is always `null` on credits; the new `credits.operatorMonthlyLimit` says whether the Lumitra operator set a monthly limit on top, and a `monthly_cap_reached` refusal of such a company carries `resetsAt` and no amounts.
169
+ - **`costUsd` is what the job cost your company.** For a company on prepaid credits it is the amount that left its balance for the job (the same figure the estimate before a run shows), on `studio_generate_image`, `studio_generate_3d`, `studio_rig_3d`, `studio_get_job`, `studio_get_run`, `studio_run_workflow`, `studio_run_published`, `studio_mint_character` and `studio_replace_character_in_video`. A program that added a factor of its own to `costUsd` to predict the balance must stop: the balance falls by `costUsd`. For a company held to a monthly cap arranged with the Lumitra team nothing changes.
170
+ - **`studio_get_spend` and `studio_get_usage` report what was paid.** For a company on prepaid credits the totals of `studio_get_spend` equal what left the balance for the jobs of each window, and `usedUsd`, `realizedUsd`, `inFlightEstimatedUsd` and `byModel` of `studio_get_usage` are in the same dollars as `credits.balanceUsd`. `capUsd` is always `null` on credits; the new `credits.operatorMonthlyLimit` says whether the Lumitra team set a monthly limit on top, and a `monthly_cap_reached` refusal of such a company carries `resetsAt` and no amounts.
163
171
  - **The typical prices in the descriptions are prices.** The figures in the tool descriptions and the skill are Studio's prices for a company on prepaid credits without a subscription (a character mint is about 0.84 USD, where the text used to say about 0.30 USD).
164
172
 
165
173
  ### What changed in 0.5.0
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",
@@ -5499,7 +5516,7 @@ function turnaroundViewPrompt(view, seedDescription) {
5499
5516
  ].join("\n\n");
5500
5517
  }
5501
5518
  var CHARACTER_SHEET_NODES = [
5502
- { nodeId: "seed", param: "seedPrompt", category: "face", label: "Seed face" },
5519
+ { nodeId: "seed", param: "seedPrompt", category: "face", label: "Face" },
5503
5520
  { nodeId: "view-three-quarter", param: "threeQuarterPrompt", category: "three-quarter", label: "Three-quarter", view: "three-quarter" },
5504
5521
  { nodeId: "view-profile", param: "profilePrompt", category: "profile", label: "Profile", view: "profile" },
5505
5522
  { nodeId: "view-full-body", param: "fullBodyPrompt", category: "full-body", label: "Full body", view: "full-body" },
@@ -5535,7 +5552,7 @@ function viewNode(n, aspectRatio) {
5535
5552
  var CHARACTER_SHEET_DEFINITION = {
5536
5553
  version: { schema: 1 },
5537
5554
  id: CHARACTER_SHEET_ID,
5538
- label: "Character Sheet (seed face -> turnaround)",
5555
+ label: "Character Sheet (face -> turnaround)",
5539
5556
  params: CHARACTER_SHEET_NODES.map((n) => ({
5540
5557
  name: n.param,
5541
5558
  type: "string",
@@ -7414,7 +7431,7 @@ var studioCreateCharacter = defineTool({
7414
7431
  });
7415
7432
  var studioMintCharacter = defineTool({
7416
7433
  name: "studio_mint_character",
7417
- description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (seed face with fal/nano-banana-2, then six identity-pinned edits with fal/nano-banana-2-edit: three-quarter, profile, full-body, close-up, warm lighting, cool lighting), waits for it, creates the character, and uploads the 7 views as frozen references with the right categories. Returns the slug, reference count, per-view URLs, the runId and total cost (about $0.30). The description should cover face, hair, age, build and distinguishing features; wardrobe is standardized to a plain gray tee. Takes 2 to 5 minutes. Requires likenessRightsConfirmed: true, which you may only pass after the human you act for confirmed it for this character; without it the tool refuses before the run starts, so nothing is spent.",
7434
+ description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (a face with fal/nano-banana-2, then six identity-pinned edits with fal/nano-banana-2-edit: three-quarter, profile, full-body, close-up, warm lighting, cool lighting), waits for it, creates the character, and uploads the 7 views as frozen references with the right categories. Returns the slug, reference count, per-view URLs, the runId and total cost (about $0.30). The description should cover face, hair, age, build and distinguishing features; wardrobe is standardized to a plain gray tee. Takes 2 to 5 minutes. Requires likenessRightsConfirmed: true, which you may only pass after the human you act for confirmed it for this character; without it the tool refuses before the run starts, so nothing is spent.",
7418
7435
  inputSchema: {
7419
7436
  projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
7420
7437
  name: z12.string().min(1).describe("Display name."),
@@ -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.'
@@ -7724,7 +7741,7 @@ var studioGetSpend = defineTool({
7724
7741
  });
7725
7742
  var studioGetUsage = defineTool({
7726
7743
  name: "studio_get_usage",
7727
- description: "Read what limits the company this key belongs to, and what it has used: month-to-date spend (usedUsd, realizedUsd, inFlightEstimatedUsd) and job count in what the company paid, the monthly cap (capUsd) and requests-per-minute limit (rpm), null meaning none, and a per-model breakdown, most expensive first. A company on prepaid credits (every new company; a company the Studio already knew keeps the caps it had) has no monthly cap unless the Lumitra operator set one; `credits` says what limits it instead: `balanceUsd` (the prepaid balance), `dailyLimitUsd` (null: none), `usedTodayUsd` (what left the balance today, running jobs included), `dailyResetsAt` (midnight UTC) and `operatorMonthlyLimit` (true when the Lumitra operator set a monthly limit on top; its amount is not reported, and capUsd is null on credits). Each finished generation is paid from the balance at Studio's price for it, the same amount the job reports as costUsd, so every figure here is in the dollars the balance is in. balanceUsd does not yet subtract what is reserved for requests that are still starting or running, so the room for a new request can be smaller than balanceUsd. A company not on credits has `credits` null and is held to its monthly cap (20 USD by default, capSource \"default\", unless the Lumitra operator set a plan). Call this before a large batch to check remaining room, or after a 402 or 429 to see what tripped. The refusal's own error text says which limit it was and what to do, so relay it as written; it also names the code: `credits_exhausted` (the balance does not cover the request: add credits on the Billing page, or wait a few seconds when part of the balance is only reserved), `daily_cap_reached` (on credits a company owner or admin raises the daily limit on the Billing page; it resets at midnight UTC), `monthly_cap_reached` (only the Lumitra operator can raise it) or `velocity_limit_reached` (too many paid requests in a short time: wait as long as the text says). usedUsd includes in-flight (not yet settled) job estimates, so it can go DOWN as well as up: a job that later fails releases its estimate.",
7744
+ description: "Read what limits the company this key belongs to, and what it has used: month-to-date spend (usedUsd, realizedUsd, inFlightEstimatedUsd) and job count in what the company paid, the monthly cap (capUsd) and requests-per-minute limit (rpm), null meaning none, and a per-model breakdown, most expensive first. A company on prepaid credits (every new company; a company the Studio already knew keeps the caps it had) has no monthly cap unless the Lumitra team set one; `credits` says what limits it instead: `balanceUsd` (the prepaid balance), `dailyLimitUsd` (null: none), `usedTodayUsd` (what left the balance today, running jobs included), `dailyResetsAt` (midnight UTC) and `operatorMonthlyLimit` (true when the Lumitra team set a monthly limit on top; its amount is not reported, and capUsd is null on credits). Each finished generation is paid from the balance at Studio's price for it, the same amount the job reports as costUsd, so every figure here is in the dollars the balance is in. balanceUsd does not yet subtract what is reserved for requests that are still starting or running, so the room for a new request can be smaller than balanceUsd. A company not on credits has `credits` null and is held to its monthly cap (20 USD by default, capSource \"default\", unless the Lumitra team set a plan). Call this before a large batch to check remaining room, or after a 402 or 429 to see what tripped. The refusal's own error text says which limit it was and what to do, so relay it as written; it also names the code: `credits_exhausted` (the balance does not cover the request: add credits on the Billing page, or wait a few seconds when part of the balance is only reserved), `daily_cap_reached` (on credits a company owner or admin raises the daily limit on the Billing page; it resets at midnight UTC), `monthly_cap_reached` (only the Lumitra team can raise it) or `velocity_limit_reached` (too many paid requests in a short time: wait as long as the text says). usedUsd includes in-flight (not yet settled) job estimates, so it can go DOWN as well as up: a job that later fails releases its estimate.",
7728
7745
  inputSchema: {},
7729
7746
  annotations: { readOnlyHint: true },
7730
7747
  handler: async (_args, ctx) => {
@@ -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.1";
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
@@ -1518,7 +1518,7 @@ interface TenantUsageResponse {
1518
1518
  * credits since 2026-10-11. */
1519
1519
  capUsd: number | null;
1520
1520
  /** A company on prepaid credits: its balance, its daily limit (null: none),
1521
- * what left the balance today, and whether the Lumitra operator set a
1521
+ * what left the balance today, and whether the Lumitra team set a
1522
1522
  * monthly limit on top (`operatorMonthlyLimit`, absent from a Studio older
1523
1523
  * than 2026-10-11; its amount is not reported). Null for a company not on
1524
1524
  * credits; absent from a Studio older than 2026-10-10. */
@@ -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.1";
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",
@@ -5491,7 +5508,7 @@ function turnaroundViewPrompt(view, seedDescription) {
5491
5508
  ].join("\n\n");
5492
5509
  }
5493
5510
  var CHARACTER_SHEET_NODES = [
5494
- { nodeId: "seed", param: "seedPrompt", category: "face", label: "Seed face" },
5511
+ { nodeId: "seed", param: "seedPrompt", category: "face", label: "Face" },
5495
5512
  { nodeId: "view-three-quarter", param: "threeQuarterPrompt", category: "three-quarter", label: "Three-quarter", view: "three-quarter" },
5496
5513
  { nodeId: "view-profile", param: "profilePrompt", category: "profile", label: "Profile", view: "profile" },
5497
5514
  { nodeId: "view-full-body", param: "fullBodyPrompt", category: "full-body", label: "Full body", view: "full-body" },
@@ -5530,7 +5547,7 @@ function viewNode(n, aspectRatio) {
5530
5547
  var CHARACTER_SHEET_DEFINITION = {
5531
5548
  version: { schema: 1 },
5532
5549
  id: CHARACTER_SHEET_ID,
5533
- label: "Character Sheet (seed face -> turnaround)",
5550
+ label: "Character Sheet (face -> turnaround)",
5534
5551
  params: CHARACTER_SHEET_NODES.map((n) => ({
5535
5552
  name: n.param,
5536
5553
  type: "string",
@@ -7409,7 +7426,7 @@ var studioCreateCharacter = defineTool({
7409
7426
  });
7410
7427
  var studioMintCharacter = defineTool({
7411
7428
  name: "studio_mint_character",
7412
- description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (seed face with fal/nano-banana-2, then six identity-pinned edits with fal/nano-banana-2-edit: three-quarter, profile, full-body, close-up, warm lighting, cool lighting), waits for it, creates the character, and uploads the 7 views as frozen references with the right categories. Returns the slug, reference count, per-view URLs, the runId and total cost (about $0.30). The description should cover face, hair, age, build and distinguishing features; wardrobe is standardized to a plain gray tee. Takes 2 to 5 minutes. Requires likenessRightsConfirmed: true, which you may only pass after the human you act for confirmed it for this character; without it the tool refuses before the run starts, so nothing is spent.",
7429
+ description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (a face with fal/nano-banana-2, then six identity-pinned edits with fal/nano-banana-2-edit: three-quarter, profile, full-body, close-up, warm lighting, cool lighting), waits for it, creates the character, and uploads the 7 views as frozen references with the right categories. Returns the slug, reference count, per-view URLs, the runId and total cost (about $0.30). The description should cover face, hair, age, build and distinguishing features; wardrobe is standardized to a plain gray tee. Takes 2 to 5 minutes. Requires likenessRightsConfirmed: true, which you may only pass after the human you act for confirmed it for this character; without it the tool refuses before the run starts, so nothing is spent.",
7413
7430
  inputSchema: {
7414
7431
  projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
7415
7432
  name: z12.string().min(1).describe("Display name."),
@@ -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.'
@@ -7719,7 +7736,7 @@ var studioGetSpend = defineTool({
7719
7736
  });
7720
7737
  var studioGetUsage = defineTool({
7721
7738
  name: "studio_get_usage",
7722
- description: "Read what limits the company this key belongs to, and what it has used: month-to-date spend (usedUsd, realizedUsd, inFlightEstimatedUsd) and job count in what the company paid, the monthly cap (capUsd) and requests-per-minute limit (rpm), null meaning none, and a per-model breakdown, most expensive first. A company on prepaid credits (every new company; a company the Studio already knew keeps the caps it had) has no monthly cap unless the Lumitra operator set one; `credits` says what limits it instead: `balanceUsd` (the prepaid balance), `dailyLimitUsd` (null: none), `usedTodayUsd` (what left the balance today, running jobs included), `dailyResetsAt` (midnight UTC) and `operatorMonthlyLimit` (true when the Lumitra operator set a monthly limit on top; its amount is not reported, and capUsd is null on credits). Each finished generation is paid from the balance at Studio's price for it, the same amount the job reports as costUsd, so every figure here is in the dollars the balance is in. balanceUsd does not yet subtract what is reserved for requests that are still starting or running, so the room for a new request can be smaller than balanceUsd. A company not on credits has `credits` null and is held to its monthly cap (20 USD by default, capSource \"default\", unless the Lumitra operator set a plan). Call this before a large batch to check remaining room, or after a 402 or 429 to see what tripped. The refusal's own error text says which limit it was and what to do, so relay it as written; it also names the code: `credits_exhausted` (the balance does not cover the request: add credits on the Billing page, or wait a few seconds when part of the balance is only reserved), `daily_cap_reached` (on credits a company owner or admin raises the daily limit on the Billing page; it resets at midnight UTC), `monthly_cap_reached` (only the Lumitra operator can raise it) or `velocity_limit_reached` (too many paid requests in a short time: wait as long as the text says). usedUsd includes in-flight (not yet settled) job estimates, so it can go DOWN as well as up: a job that later fails releases its estimate.",
7739
+ description: "Read what limits the company this key belongs to, and what it has used: month-to-date spend (usedUsd, realizedUsd, inFlightEstimatedUsd) and job count in what the company paid, the monthly cap (capUsd) and requests-per-minute limit (rpm), null meaning none, and a per-model breakdown, most expensive first. A company on prepaid credits (every new company; a company the Studio already knew keeps the caps it had) has no monthly cap unless the Lumitra team set one; `credits` says what limits it instead: `balanceUsd` (the prepaid balance), `dailyLimitUsd` (null: none), `usedTodayUsd` (what left the balance today, running jobs included), `dailyResetsAt` (midnight UTC) and `operatorMonthlyLimit` (true when the Lumitra team set a monthly limit on top; its amount is not reported, and capUsd is null on credits). Each finished generation is paid from the balance at Studio's price for it, the same amount the job reports as costUsd, so every figure here is in the dollars the balance is in. balanceUsd does not yet subtract what is reserved for requests that are still starting or running, so the room for a new request can be smaller than balanceUsd. A company not on credits has `credits` null and is held to its monthly cap (20 USD by default, capSource \"default\", unless the Lumitra team set a plan). Call this before a large batch to check remaining room, or after a 402 or 429 to see what tripped. The refusal's own error text says which limit it was and what to do, so relay it as written; it also names the code: `credits_exhausted` (the balance does not cover the request: add credits on the Billing page, or wait a few seconds when part of the balance is only reserved), `daily_cap_reached` (on credits a company owner or admin raises the daily limit on the Billing page; it resets at midnight UTC), `monthly_cap_reached` (only the Lumitra team can raise it) or `velocity_limit_reached` (too many paid requests in a short time: wait as long as the text says). usedUsd includes in-flight (not yet settled) job estimates, so it can go DOWN as well as up: a job that later fails releases its estimate.",
7723
7740
  inputSchema: {},
7724
7741
  annotations: { readOnlyHint: true },
7725
7742
  handler: async (_args, ctx) => {
@@ -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.1";
7879
7896
  function createStudioMcpServer(opts = {}) {
7880
7897
  const config = opts.config ?? resolveConfig(opts.env ?? process.env);
7881
7898
  const client = new StudioClient(config, {
@@ -4,13 +4,13 @@
4
4
  "schema": 1
5
5
  },
6
6
  "id": "character-sheet",
7
- "label": "Character Sheet (seed face -> turnaround)",
7
+ "label": "Character Sheet (face -> turnaround)",
8
8
  "params": [
9
9
  {
10
10
  "name": "seedPrompt",
11
11
  "type": "string",
12
12
  "required": true,
13
- "label": "Seed face prompt"
13
+ "label": "Face prompt"
14
14
  },
15
15
  {
16
16
  "name": "threeQuarterPrompt",
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.1",
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",