@simpligen/mcp 0.11.0 → 0.11.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.
Files changed (3) hide show
  1. package/package.json +37 -37
  2. package/src/bin.js +1 -1
  3. package/src/tools.js +6 -5
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@simpligen/mcp",
3
- "version": "0.11.0",
4
- "description": "MCP server for SimpliGen -- drive local/cloud AI image & video generation from an agent.",
5
- "type": "module",
6
- "license": "MIT",
7
- "homepage": "https://simpligen.io",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/RaynoldVanHeyningen/SimpliGen.git",
11
- "directory": "packages/mcp-server"
12
- },
13
- "bin": {
14
- "simpligen-mcp": "src/bin.js"
15
- },
16
- "main": "src/index.js",
17
- "files": [
18
- "src",
19
- "README.md",
20
- "LICENSE"
21
- ],
22
- "engines": {
23
- "node": ">=18"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "scripts": {
29
- "test": "node --test src/*.test.js",
30
- "prepublishOnly": "node --test src/*.test.js"
31
- },
32
- "dependencies": {
33
- "@modelcontextprotocol/sdk": "^1",
34
- "sharp": ">=0.34.5 <0.36",
35
- "zod": "^3"
36
- }
37
- }
1
+ {
2
+ "name": "@simpligen/mcp",
3
+ "version": "0.11.1",
4
+ "description": "MCP server for SimpliGen -- drive local/cloud AI image & video generation from an agent.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "homepage": "https://simpligen.io",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/RaynoldVanHeyningen/SimpliGen.git",
11
+ "directory": "packages/mcp-server"
12
+ },
13
+ "bin": {
14
+ "simpligen-mcp": "src/bin.js"
15
+ },
16
+ "main": "src/index.js",
17
+ "files": [
18
+ "src",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "test": "node --test src/*.test.js",
30
+ "prepublishOnly": "node --test src/*.test.js"
31
+ },
32
+ "dependencies": {
33
+ "@modelcontextprotocol/sdk": "^1",
34
+ "sharp": ">=0.34.5 <0.36",
35
+ "zod": "^3"
36
+ }
37
+ }
package/src/bin.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  // packages/mcp-server/src/bin.js
3
3
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
4
  import { ControlApiClient } from './client.js';
package/src/tools.js CHANGED
@@ -305,22 +305,23 @@ export function registerTools(server, client, { now = Date.now, sleep = (ms) =>
305
305
  name: z.string().describe('Display name for the character'),
306
306
  gender: z.enum(['woman', 'man', 'nonbinary']),
307
307
  mode: z.enum(['generate', 'upload']).describe('generate: build base portrait from description; upload: use a provided image as base'),
308
- identity: z.record(z.string()).optional().describe('An object of featureId to optionId pairs chosen from list_character_features (e.g. { hairColor: "black", eyeColor: "green" }). Do not include gender here; pass gender separately.'),
308
+ identity: z.record(z.string()).optional().describe('An object of featureId to optionId pairs chosen from list_character_features (e.g. { hairColor: "black", eyeColor: "green" }). Where a feature has allowCustom, the value may instead be your own words (e.g. { accessories: "a scarf over a parka" }). Do not include gender here; pass gender separately.'),
309
309
  baseFilePath: z.string().optional().describe('Absolute local image path; required for mode "upload"'),
310
+ basePresetId: z.string().optional().describe('Base-generation preset id from list_character_presets (the base list). Without it the first installed base model is used.'),
310
311
  timeoutSeconds: z.number().optional().describe('Max seconds to wait for base portrait generation (default 300, mode generate only)'),
311
312
  pollMs: z.number().optional().describe('Poll interval in milliseconds (default 2000, mode generate only)'),
312
313
  },
313
314
  },
314
- async ({ name, gender, mode, identity, baseFilePath, timeoutSeconds, pollMs }) => {
315
+ async ({ name, gender, mode, identity, baseFilePath, basePresetId, timeoutSeconds, pollMs }) => {
315
316
  try {
316
317
  if (mode === 'upload') {
317
318
  const up = await client.uploadFile(baseFilePath);
318
- const char = await client.createCharacter({ name, gender, mode: 'upload', identity, baseHandle: up.handle });
319
+ const char = await client.createCharacter({ name, gender, mode: 'upload', identity, baseHandle: up.handle, basePresetId });
319
320
  if (char?.status === 'awaiting_approval') return ok({ ...char, resume: RESUME_CREATE });
320
321
  return ok({ ...char, ready: true });
321
322
  }
322
323
  // mode === 'generate': create then poll until base_image_url is set
323
- const c = await client.createCharacter({ name, gender, mode: 'generate', identity });
324
+ const c = await client.createCharacter({ name, gender, mode: 'generate', identity, basePresetId });
324
325
  if (c?.status === 'awaiting_approval') return ok({ ...c, resume: RESUME_CREATE });
325
326
  const { characterId } = c;
326
327
  const deadline = Date.now() + (timeoutSeconds ?? 300) * 1000;
@@ -638,7 +639,7 @@ export function registerTools(server, client, { now = Date.now, sleep = (ms) =>
638
639
  wrap(({ projectId }) => client.listFilms(projectId)));
639
640
 
640
641
  server.registerTool('create_film',
641
- { title: 'Create a film', description: 'Create an empty Video Studio film and answer its timeline. Shape 16:9, 9:16 or 1:1; resolution 480p, 720p or 1080p; renders on this PC (local) or in the cloud. Presets per kind of shot default to the studio\'s own choice.', inputSchema: {
642
+ { title: 'Create a film', description: 'Create an empty Video Studio film and answer its timeline. Shape 16:9, 9:16 or 1:1; resolution 480p, 720p or 1080p; renders on this PC (local) or in the cloud. Pick the preset per kind of shot (t2v, i2v, r2v) here or later with update_film_settings; render_clips holds every clip whose kind of shot has no preset.', inputSchema: {
642
643
  name: z.string(), projectId: projectArg('The project (Gallery) the film belongs to'),
643
644
  aspect: z.enum(['16:9', '9:16', '1:1']).optional(), quality: z.enum(['480p', '720p', '1080p']).optional(),
644
645
  renderOn: z.enum(['local', 'cloud']).optional(),