@marlinjai/studio-mcp 0.18.1 → 0.22.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 +23 -3
- package/dist/cli.js +1696 -198
- package/dist/index.d.ts +87 -53
- package/dist/index.js +1696 -198
- package/examples/workflow-character-sheet.json +75 -34
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ The token is held in memory only. It is never logged, never serialized into a re
|
|
|
93
93
|
| `studio_get_character` | One character with its frozen reference images (category + URL). For a character the company owns the URL is a direct image URL; for one another company shared (`owned: false`) it is a Studio address that works unchanged as an image input to any Studio tool, is not a public image URL, and stops working when the owner stops sharing. |
|
|
94
94
|
| `studio_prompt_enhance` | Rewrite a short prompt into a richer one for an image or video model (subject, setting, light, lens, composition; for video the camera movement), in the prompt's language, without changing what it asks for. Mentions travel as tokens (`@[character:<slug>]`, `@[product:<slug>]`, `@[location:<slug>]`) listed in `mentions`, and the rewrite keeps each exactly once. Free for the company, limited per key and per company per day (`429` with the wait in the error text). Generates nothing. |
|
|
95
95
|
| `studio_create_character` | Create an empty character record (for your own references). Requires `likenessRightsConfirmed: true`. |
|
|
96
|
-
| `studio_mint_character` | Run the curated character-sheet workflow inline, wait, create the character, upload the 7 views as references
|
|
96
|
+
| `studio_mint_character` | Run the curated character-sheet workflow inline, wait, create the character, upload the 7 views as references and the overview picture under `overview`. Requires `likenessRightsConfirmed: true` and refuses before the run starts without it. Returns `slug`, `referenceCount`, `costUsd`, `runId`. |
|
|
97
97
|
| `studio_create_brand` | Create a brand (style prefix + context). |
|
|
98
98
|
| `studio_upload_brand_reference` | Upload a reference image to a brand library from a local path or URL. The `brandSlug` must name a brand of the key's company (anything else is a `404`). |
|
|
99
99
|
| `studio_run_workflow` | Run an inline workflow DAG (or a saved one by `savedId`), with params, node subsets, repeat count and `visibility`; waits by default. A clip with both a start and an end frame is checked for continuity first: frames that disagree refuse with `continuity_mismatch` and the differences per node, a check that could not run with `continuity_unchecked`; `acknowledgeContinuity: true` runs anyway (also on `studio_run_published`). |
|
|
@@ -152,13 +152,33 @@ studio_replace_character_in_video
|
|
|
152
152
|
characterReferenceCategory, stillNodeId: "edit", videoNodeId: "video" }
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
Reference categories written by the mint: `face`, `three-quarter`, `profile`, `
|
|
155
|
+
Reference categories written by the mint: `face`, `full-body`, `three-quarter-left`, `profile-left`, `profile-right`, `three-quarter-right`, `back`, plus `overview` for the six-angle picture (the Studio's canonical names, the same ones its in-app mint flow and try-on ranker use). "Left" and "right" are the sides of the image. Characters minted before 0.19.0 keep `three-quarter`, `profile`, `full-body`, `close-up`, `lighting-warm`, `lighting-cool`.
|
|
156
|
+
|
|
157
|
+
### What changed in 0.21.1
|
|
158
|
+
|
|
159
|
+
Nothing was renamed or removed. This is the security release: it requires `@modelcontextprotocol/sdk` `^1.32.2` (0.18.1 allowed `^1.30.0`) and `zod` `^4.6.7` (it allowed `^4.4.1`), and the HTTP mode answers through the patched `@hono/node-server` 2.1.x that the SDK now resolves. Tool inputs that take a list reject an oversized list instead of validating it.
|
|
160
|
+
|
|
161
|
+
### What changed in 0.21.0
|
|
162
|
+
|
|
163
|
+
`studio_generate_image` takes `variety`. With `candidateCount` above 1, `"varied"` gives each candidate its own pose and camera line, chosen by the Studio from a curated list of editorial poses and lenses, so the candidates are different pictures instead of near-identical ones; `"same"` stays the default. Varied applies on fal models with no attached image to edit, at the same price.
|
|
164
|
+
|
|
165
|
+
### What changed in 0.20.0
|
|
166
|
+
|
|
167
|
+
Nothing was renamed or removed. `studio_prompt_enhance` takes two optional switches: `startFrame` (video: the clip starts from an image, so the rewrite describes only the motion) and `imageAttached` (image: you will send an image, so a request to change it is written as one edit instruction that keeps everything else). A model that always edits its first image (Ideogram 4.5 Edit) always gets an edit instruction. The rewrite also follows new realism, depth, phone-photo, product and camera-move rules. `studio_mint_character` asks the seed and every view for natural, unretouched skin.
|
|
168
|
+
|
|
169
|
+
### What changed in 0.19.0
|
|
170
|
+
|
|
171
|
+
The character sheet's views changed. `studio_mint_character` now makes the front full body, a 45 degree turn and a strict profile to each side, and the back (edited from the face and the front full body), instead of three-quarter, profile, close-up and two lighting views, plus one overview picture of all six angles at 4K. Every turned view says which side of the image it faces, so a profile no longer lands on a random side. The result lists the overview among `references` with category `overview` (never used as a reference) and reports `overview.made`; `referenceCount` counts the seven identity images. A mint costs about one 4K image more. `studio_replace_character_in_video` never picks the back view or the overview automatically. Existing characters keep their categories and keep working.
|
|
172
|
+
|
|
173
|
+
### What changed in 0.18.2
|
|
174
|
+
|
|
175
|
+
Nothing was renamed or removed. A text overlay of a carousel or reel (`studio_composition_create`, `studio_composition_apply`) may now name `fontRole: "studio-default"`: Studio's own font (Inter, weights 400 and 700, no italic), for a brand whose kit has no font yet. Before, text on such a brand was refused with `not_in_kit`. Once the brand has a font, use its role (`primary` or `secondary`) as before.
|
|
156
176
|
|
|
157
177
|
### What changed in 0.18.0
|
|
158
178
|
|
|
159
179
|
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
180
|
|
|
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.
|
|
181
|
+
- **A new `confirmation_required` reason, `measured_length`.** A run (`studio_run_workflow`) or recipe (`studio_run_published`) with a video-to-video, lip sync 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
182
|
- **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
183
|
- **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
184
|
|