@simpligen/mcp 0.9.1 → 0.10.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
@@ -22,11 +22,11 @@ The easiest path is in the SimpliGen app: **Settings -> Connect an agent**, pick
22
22
 
23
23
  `list_capabilities`, `get_status`, `list_projects`, `create_project`, `upload_file`, `generate`, `get_job`, `wait_for_result`, `list_jobs`, `cancel_job`, `prepare_preset`, `get_result_image`, `wait_for_approval`, `get_app_context`, `fill_generate_form`, `open_screen`, `accept_character_base`.
24
24
 
25
- **Approval flow (SimpliGen's in-app Assistant).** A token the app issues for its own Assistant panel is flagged `approvalRequired`. With it, any call that queues a generation, renders or exports a film, runs a recipe, or deletes a character or product does not run. It returns `awaiting_approval` with a `proposalId`, and the user sees an approval card in the app. Call `wait_for_approval(proposalId)` (it long-polls in short rounds, like `wait_for_result`). It returns the real result once the user clicks Approve, or `declined` with the user's optional reason so you can adjust and propose again. For `regenerate_character_base`, the approved result carries a base job id: wait on it with `wait_for_result`, then call `accept_character_base`. Normal pairing tokens (Claude Desktop and other clients) never see this flow.
25
+ **Approval flow (SimpliGen's in-app Assistant).** A token the app issues for its own Assistant panel is flagged `approvalRequired`. With it, any call that queues a generation, renders or exports a film, runs a recipe, or deletes a character, product or outfit does not run. It returns `awaiting_approval` with a `proposalId`, and the user sees an approval card in the app. Call `wait_for_approval(proposalId)` (it long-polls in short rounds, like `wait_for_result`). It returns the real result once the user clicks Approve, or `declined` with the user's optional reason so you can adjust and propose again. For `regenerate_character_base`, the approved result carries a base job id: wait on it with `wait_for_result`, then call `accept_character_base`. Normal pairing tokens (Claude Desktop and other clients) never see this flow.
26
26
 
27
27
  **Screen tools.** `get_app_context` returns what the user is looking at. `fill_generate_form` fills the visible Generate form and never presses Generate. `open_screen` navigates the app. They work for outside MCP clients too.
28
28
 
29
- **Video Studio** (connector 0.5.0 or newer): `list_films`, `create_film`, `get_film`, `update_film_settings`, `add_track`, `move_track`, `detect_tempo`, `add_clip`, `import_clip` (0.8.1), `update_clip`, `move_clip`, `trim_clip`, `remove_clip`, `apply_film_plan`, `set_fades`, `add_marker`, `set_export_range`, `render_clips`, `wait_for_renders`, `list_takes`, `use_take`, `export_film`, `list_locations`, `create_location`. An agent can build a whole music video: a song, its tempo, clips on the bars, shots, renders and the export. With the film open in the Video Studio every change shows live and undoes with Ctrl+Z. They need the Video Studio in SimpliGen (SimpliGen 1.75 or newer). Since connector 0.8.0 they are always listed; without the studio each one answers `studio_not_installed`.
29
+ **Video Studio** (connector 0.5.0 or newer): `list_films`, `create_film`, `get_film`, `update_film_settings`, `add_track`, `move_track`, `detect_tempo`, `add_clip`, `import_clip` (0.8.1), `update_clip`, `move_clip`, `trim_clip`, `remove_clip`, `apply_film_plan`, `set_fades`, `add_marker`, `set_export_range`, `render_clips`, `wait_for_renders`, `list_takes`, `use_take`, `export_film`, `list_locations`, `create_location`, and the Wardrobe (0.10.0): `list_wardrobe`, `create_outfit`, `remove_outfit`. An agent can build a whole music video: a song, its tempo, clips on the bars, shots, renders and the export. With the film open in the Video Studio every change shows live and undoes with Ctrl+Z. They need the Video Studio in SimpliGen (SimpliGen 1.75 or newer). Since connector 0.8.0 they are always listed; without the studio each one answers `studio_not_installed`.
30
30
 
31
31
  `get_result_image` returns a completed job's result image inline (a viewable image block) so the agent can display it in chat. Claude clients cap a tool result at ~1MB and only render base64 image blocks, so large renders are re-encoded to a **full-resolution WebP** preview (same dimensions; quality steps down, and only very large images are resized) that fits the cap. The uncompressed original file path is always included in the caption, so the agent keeps the full-quality artifact. Video results return the file path instead.
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpligen/mcp",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "MCP server for SimpliGen -- drive local/cloud AI image & video generation from an agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/client.js CHANGED
@@ -161,6 +161,9 @@ export class ControlApiClient {
161
161
  exportFilm(filmId) { return this.#longReq('POST', this.#film(filmId, '/export'), {}); }
162
162
  listLocations() { return this.#req('GET', '/locations'); }
163
163
  createLocation(args) { return this.#req('POST', '/locations', args); }
164
+ listWardrobe() { return this.#req('GET', '/wardrobe'); }
165
+ createOutfit(args) { return this.#req('POST', '/wardrobe', args); }
166
+ removeOutfit(id) { return this.#req('DELETE', `/wardrobe/${encodeURIComponent(id)}`); }
164
167
 
165
168
  async uploadFile(filePath) {
166
169
  let buf;
package/src/tools.js CHANGED
@@ -21,6 +21,7 @@ export const TOOL_NAMES = [
21
21
  'list_films', 'create_film', 'get_film', 'update_film_settings', 'add_track', 'move_track', 'detect_tempo',
22
22
  'add_clip', 'import_clip', 'update_clip', 'move_clip', 'trim_clip', 'remove_clip', 'apply_film_plan', 'set_fades', 'add_marker',
23
23
  'set_export_range', 'render_clips', 'wait_for_renders', 'list_takes', 'use_take', 'export_film', 'list_locations', 'create_location',
24
+ 'list_wardrobe', 'create_outfit', 'remove_outfit',
24
25
  ];
25
26
 
26
27
  // The tools that need the Video Studio. Always listed: without the studio each call answers
@@ -261,8 +262,8 @@ export function registerTools(server, client, { now = Date.now, sleep = (ms) =>
261
262
  wrap((a) => client.fillGenerateForm(a)));
262
263
 
263
264
  server.registerTool('open_screen',
264
- { title: 'Open a screen', description: 'Take the user to a screen in SimpliGen. id selects a character when screen is "character".', inputSchema: {
265
- screen: z.enum(['generate', 'gallery', 'characters', 'character', 'video-studio', 'prompt-library', 'settings']),
265
+ { title: 'Open a screen', description: 'Take the user to a screen in SimpliGen. id selects a character when screen is "character". "wardrobe" is the Library\'s outfits.', inputSchema: {
266
+ screen: z.enum(['generate', 'gallery', 'characters', 'character', 'video-studio', 'prompt-library', 'settings', 'wardrobe']),
266
267
  id: z.string().optional(),
267
268
  } },
268
269
  wrap((a) => client.openScreen(a)));
@@ -574,7 +575,7 @@ export function registerTools(server, client, { now = Date.now, sleep = (ms) =>
574
575
  // --- Products + subjects: what a recipe's `subject` inputs take ---
575
576
 
576
577
  server.registerTool('list_subjects',
577
- { title: 'List subjects', description: 'Every subject a recipe\'s `subject` input can take: characters and products (id, type, name). Use a character id from list_characters or a product id from list_products / create_product.', inputSchema: {} },
578
+ { title: 'List subjects', description: 'Every saved subject (id, type, name): characters, products, locations and outfits (type "wardrobe"). A recipe\'s `subject` input takes a character (list_characters) or a product (list_products / create_product); locations and outfits are for the Video Studio (list_locations, list_wardrobe).', inputSchema: {} },
578
579
  wrap(() => client.listSubjects()));
579
580
 
580
581
  server.registerTool('list_products',
@@ -770,6 +771,25 @@ export function registerTools(server, client, { now = Date.now, sleep = (ms) =>
770
771
  } },
771
772
  wrap((a) => client.createLocation(a)));
772
773
 
774
+ // An outfit is not cast by itself: a character is dressed in it through a look, made on
775
+ // the character's Looks page, and the Video Studio casts the character in that look.
776
+ server.registerTool('list_wardrobe',
777
+ { title: 'List the wardrobe', description: 'The Library\'s outfits (the Wardrobe): id, name, description, category, whether it has a garment picture.', inputSchema: {} },
778
+ wrap(() => client.listWardrobe()));
779
+
780
+ server.registerTool('create_outfit',
781
+ { title: 'Create an outfit', description: 'Save an outfit to the Wardrobe. The description is what a character\'s look in this outfit is generated from, so describe every garment: its cut, colour, material and fit. image is optional: the upload_file handle of a picture of the clothes on their own. An outfit is not cast by itself: to put a character in it, the user makes a look from it on the character\'s Looks page (open_screen "character" with the character\'s id), and the Video Studio casts the character in that look.', inputSchema: {
782
+ name: z.string().describe('Outfit name shown in the Wardrobe, e.g. "Navy suit"'),
783
+ description: z.string().describe('Every garment, its cut, colour, material and fit, e.g. "a navy two-piece wool suit, slim fit, white shirt, no tie, brown leather shoes"'),
784
+ category: z.string().optional().describe('e.g. formal | casual | sportswear'),
785
+ image: z.string().optional().describe('upload_file handle of a garment picture (the clothes on their own, no person)'),
786
+ } },
787
+ wrap((a) => client.createOutfit(a)));
788
+
789
+ server.registerTool('remove_outfit',
790
+ { title: 'Remove an outfit', description: 'Delete an outfit and its garment picture from the Wardrobe. Looks already made from it keep their pictures but lose its words, so a film that casts one of them sends less about the clothes.' + APPROVAL_NOTE, inputSchema: { id: z.string() } },
791
+ wrap(({ id }) => client.removeOutfit(id)));
792
+
773
793
  server.registerTool('cancel_recipe_run',
774
794
  { title: 'Cancel a recipe run', description: 'Stop a running recipe: no further steps start; a local in-flight step is interrupted (a cloud step already running finishes server-side and is saved).', inputSchema: { runId: z.string() } },
775
795
  wrap(({ runId }) => client.cancelRecipeRun(runId)));