@marlinjai/studio-mcp 0.18.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 +2 -2
- package/dist/cli.js +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/examples/workflow-character-sheet.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -166,8 +166,8 @@ No argument was renamed or removed. What changed is how a run priced by a measur
|
|
|
166
166
|
|
|
167
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:
|
|
168
168
|
|
|
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
|
|
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
|
|
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.
|
|
171
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).
|
|
172
172
|
|
|
173
173
|
### What changed in 0.5.0
|
package/dist/cli.js
CHANGED
|
@@ -5516,7 +5516,7 @@ function turnaroundViewPrompt(view, seedDescription) {
|
|
|
5516
5516
|
].join("\n\n");
|
|
5517
5517
|
}
|
|
5518
5518
|
var CHARACTER_SHEET_NODES = [
|
|
5519
|
-
{ nodeId: "seed", param: "seedPrompt", category: "face", label: "
|
|
5519
|
+
{ nodeId: "seed", param: "seedPrompt", category: "face", label: "Face" },
|
|
5520
5520
|
{ nodeId: "view-three-quarter", param: "threeQuarterPrompt", category: "three-quarter", label: "Three-quarter", view: "three-quarter" },
|
|
5521
5521
|
{ nodeId: "view-profile", param: "profilePrompt", category: "profile", label: "Profile", view: "profile" },
|
|
5522
5522
|
{ nodeId: "view-full-body", param: "fullBodyPrompt", category: "full-body", label: "Full body", view: "full-body" },
|
|
@@ -5552,7 +5552,7 @@ function viewNode(n, aspectRatio) {
|
|
|
5552
5552
|
var CHARACTER_SHEET_DEFINITION = {
|
|
5553
5553
|
version: { schema: 1 },
|
|
5554
5554
|
id: CHARACTER_SHEET_ID,
|
|
5555
|
-
label: "Character Sheet (
|
|
5555
|
+
label: "Character Sheet (face -> turnaround)",
|
|
5556
5556
|
params: CHARACTER_SHEET_NODES.map((n) => ({
|
|
5557
5557
|
name: n.param,
|
|
5558
5558
|
type: "string",
|
|
@@ -7431,7 +7431,7 @@ var studioCreateCharacter = defineTool({
|
|
|
7431
7431
|
});
|
|
7432
7432
|
var studioMintCharacter = defineTool({
|
|
7433
7433
|
name: "studio_mint_character",
|
|
7434
|
-
description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (
|
|
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.",
|
|
7435
7435
|
inputSchema: {
|
|
7436
7436
|
projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
|
|
7437
7437
|
name: z12.string().min(1).describe("Display name."),
|
|
@@ -7741,7 +7741,7 @@ var studioGetSpend = defineTool({
|
|
|
7741
7741
|
});
|
|
7742
7742
|
var studioGetUsage = defineTool({
|
|
7743
7743
|
name: "studio_get_usage",
|
|
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
|
|
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.",
|
|
7745
7745
|
inputSchema: {},
|
|
7746
7746
|
annotations: { readOnlyHint: true },
|
|
7747
7747
|
handler: async (_args, ctx) => {
|
|
@@ -7897,7 +7897,7 @@ function registerTools(server, base) {
|
|
|
7897
7897
|
|
|
7898
7898
|
// src/server.ts
|
|
7899
7899
|
var SERVER_NAME = "lumitra-studio";
|
|
7900
|
-
var SERVER_VERSION = "0.18.
|
|
7900
|
+
var SERVER_VERSION = "0.18.1";
|
|
7901
7901
|
function createStudioMcpServer(opts = {}) {
|
|
7902
7902
|
const config = opts.config ?? resolveConfig(opts.env ?? process.env);
|
|
7903
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
|
|
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.18.
|
|
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
|
@@ -5508,7 +5508,7 @@ function turnaroundViewPrompt(view, seedDescription) {
|
|
|
5508
5508
|
].join("\n\n");
|
|
5509
5509
|
}
|
|
5510
5510
|
var CHARACTER_SHEET_NODES = [
|
|
5511
|
-
{ nodeId: "seed", param: "seedPrompt", category: "face", label: "
|
|
5511
|
+
{ nodeId: "seed", param: "seedPrompt", category: "face", label: "Face" },
|
|
5512
5512
|
{ nodeId: "view-three-quarter", param: "threeQuarterPrompt", category: "three-quarter", label: "Three-quarter", view: "three-quarter" },
|
|
5513
5513
|
{ nodeId: "view-profile", param: "profilePrompt", category: "profile", label: "Profile", view: "profile" },
|
|
5514
5514
|
{ nodeId: "view-full-body", param: "fullBodyPrompt", category: "full-body", label: "Full body", view: "full-body" },
|
|
@@ -5547,7 +5547,7 @@ function viewNode(n, aspectRatio) {
|
|
|
5547
5547
|
var CHARACTER_SHEET_DEFINITION = {
|
|
5548
5548
|
version: { schema: 1 },
|
|
5549
5549
|
id: CHARACTER_SHEET_ID,
|
|
5550
|
-
label: "Character Sheet (
|
|
5550
|
+
label: "Character Sheet (face -> turnaround)",
|
|
5551
5551
|
params: CHARACTER_SHEET_NODES.map((n) => ({
|
|
5552
5552
|
name: n.param,
|
|
5553
5553
|
type: "string",
|
|
@@ -7426,7 +7426,7 @@ var studioCreateCharacter = defineTool({
|
|
|
7426
7426
|
});
|
|
7427
7427
|
var studioMintCharacter = defineTool({
|
|
7428
7428
|
name: "studio_mint_character",
|
|
7429
|
-
description: "Mint a consistent character from a text description: runs the curated character-sheet workflow (
|
|
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.",
|
|
7430
7430
|
inputSchema: {
|
|
7431
7431
|
projectId: z12.string().min(1).describe("Project id from studio_list_projects."),
|
|
7432
7432
|
name: z12.string().min(1).describe("Display name."),
|
|
@@ -7736,7 +7736,7 @@ var studioGetSpend = defineTool({
|
|
|
7736
7736
|
});
|
|
7737
7737
|
var studioGetUsage = defineTool({
|
|
7738
7738
|
name: "studio_get_usage",
|
|
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
|
|
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.",
|
|
7740
7740
|
inputSchema: {},
|
|
7741
7741
|
annotations: { readOnlyHint: true },
|
|
7742
7742
|
handler: async (_args, ctx) => {
|
|
@@ -7892,7 +7892,7 @@ function registerTools(server, base) {
|
|
|
7892
7892
|
|
|
7893
7893
|
// src/server.ts
|
|
7894
7894
|
var SERVER_NAME = "lumitra-studio";
|
|
7895
|
-
var SERVER_VERSION = "0.18.
|
|
7895
|
+
var SERVER_VERSION = "0.18.1";
|
|
7896
7896
|
function createStudioMcpServer(opts = {}) {
|
|
7897
7897
|
const config = opts.config ?? resolveConfig(opts.env ?? process.env);
|
|
7898
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 (
|
|
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": "
|
|
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.18.
|
|
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",
|