@clipwright/mcp-server 0.15.0 → 0.17.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/CHANGELOG.md CHANGED
@@ -16,6 +16,95 @@ a customer reading it should not miss what appeared in the product. Like *Server
16
16
  they are live from the day the web app was deployed, not from the package release they are
17
17
  listed under.
18
18
 
19
+ ## [0.17.0] - 2026-09-16
20
+
21
+ Everything here came out of the second dry run by a tester who had not seen the
22
+ product before.
23
+
24
+ ### Added
25
+
26
+ - The MCP server reports money. `make_ugc` carries `credits_reserved` and
27
+ `get_run` carries `credits_charged`, in every state, so an agent no longer has
28
+ to call `get_account` before and after and subtract. The field names come from
29
+ the run schema, so REST and MCP cannot drift apart. (clipwright#209)
30
+ - *Server-side:* in `GET /v1/voices`, each entry of `models` carries
31
+ `vendor_verifies_voices` — whether the vendor's library listing marks any voice
32
+ as verified for that model. It is `false` for `eleven_v3` (measured: none of
33
+ 303 live catalog voices), so an empty `verified_models` on that model says
34
+ nothing about the voice. (clipwright#208)
35
+ - *Server-side:* a voice whose gender differs from the actor's is named in
36
+ `warnings`, in the quote and in the run. The combination still runs as asked —
37
+ voicing a man with a female voice is sometimes deliberate — but it is no longer
38
+ silent. (clipwright#210)
39
+ - *Server-side:* an `image` smaller than the output on its short side gets a
40
+ warning that the source is upscaled, with both sizes and the size to send
41
+ instead. The default actor is silent: its size is a property of our own image,
42
+ stated once in the docs. (clipwright#211)
43
+
44
+ ### Fixed
45
+
46
+ - *Server-side:* a request body that is not valid JSON answers 400
47
+ `malformed_body`, not 500. A 500 says the failure is ours, so an agent retries
48
+ bytes that will never parse; the new message says both what to fix and that a
49
+ retry fails the same way. (clipwright#212)
50
+ - *Server-side:* a source we cannot use — private or loopback host, http,
51
+ unreachable, redirecting, over 10 MB, or not PNG/JPEG/WebP — is refused with
52
+ 400 `unusable_source` before any charge, in the quote and in the run alike.
53
+ It used to be priced: a loopback url answered 200 and an estimate, while the
54
+ tool description promised a refusal. (clipwright#213)
55
+ - *Server-side:* refusals on `script`, `voice`, `voice_id` and `image` are
56
+ written in the product's words instead of the schema library's, and the
57
+ description of `script` no longer names a field the API rejects.
58
+ (clipwright#212)
59
+ - *Dashboard:* the root of the cabinet host sends a signed-in visitor to their
60
+ dashboard instead of showing the landing page with a "Sign in" button.
61
+ (clipwright#214)
62
+ - *Dashboard:* every tile on `/videos` prints its `run_id` and links to the
63
+ support form with it. The id used to live only in the preview image's alt
64
+ text, so tiles without a preview had none at all. (clipwright#215)
65
+ - *Dashboard:* the REST example on `/quickstart` runs unchanged in any shell: one
66
+ line, no backslash continuations and no shell substitution. (clipwright#211)
67
+
68
+ ## [0.16.0] - 2026-09-16
69
+
70
+ ### Added
71
+
72
+ - *Server-side:* a new skill, `create_actor`, builds a personal actor for the
73
+ account from a description of a fictional adult: a 9:16 portrait with exactly
74
+ one face, plus the other requested formats edited from it. `POST
75
+ /v1/skills/create_actor/quote` and `/run` take the description, `gender`,
76
+ `approximate_age`, `name`, `quality` and `aspect_ratios`; the run reports
77
+ `created_actor` when it succeeds, and the returned `actor_id` goes to
78
+ `make_ugc` in the same field a catalog actor does. `GET /v1/actors` lists the
79
+ account's own actors after the catalog, and `DELETE /v1/actors/{id}` takes one
80
+ out of the choice. The skill appears in `GET /v1/public/skills` only while
81
+ generation is switched on; until then quote and run answer 503
82
+ `actor_generation_disabled` and no run is created. (clipwright#120)
83
+ - *Server-side:* runs have a new state, `generating`, which only `create_actor`
84
+ enters. The set of terminal states is unchanged: `succeeded` and `failed`, and
85
+ nothing else. (clipwright#120)
86
+ - Personal actors reached the clients. The SDK gained `quoteActor`,
87
+ `createActor` and `deleteActor`; the CLI gained `quote-actor`, `create-actor`
88
+ and `delete-actor`; the MCP server gained `quote_actor`, `create_actor` and
89
+ `delete_actor`, so `tools/list` now returns ten tools instead of seven. The
90
+ idempotency key of an actor run is built from the actor's own schema: two
91
+ different descriptions are two different keys, and a repeated call with the
92
+ same description returns the run already paid for. (clipwright#120)
93
+ - *Dashboard:* `/actors` shows the account's personal actors next to the
94
+ catalog and deletes one on confirmation. A deleted actor stops being offered
95
+ at once; its images are removed by a daily cleanup. (clipwright#120)
96
+
97
+ ### Changed
98
+
99
+ - *Server-side:* a request with `person` and generation switched on gets a
100
+ warning that points at `create_actor` instead of only saying the field is not
101
+ honored. (clipwright#120)
102
+ - *Server-side:* `create_actor` is charged per published image, not per second:
103
+ the portrait and each extra format cost what the quote showed, a partial
104
+ result charges only what was published and names the rest in `warnings`, and a
105
+ failed run costs nothing at all. Refused descriptions and unusable portraits
106
+ are free. (clipwright#120)
107
+
19
108
  ## [0.15.0] - 2026-09-14
20
109
 
21
110
  ### Changed
package/README.md CHANGED
@@ -38,6 +38,13 @@ Any MCP host works — the server speaks JSON-RPC over stdio.
38
38
  - `get_run` — status of a run. Free; poll it every few seconds.
39
39
  - `upload_image` — a local PNG/JPEG → signed https url to pass as `image`. Free;
40
40
  20 per day, the url lives 24 hours. Set `aspect_ratio` explicitly afterwards.
41
+ - `quote_actor` — price of a personal actor before creating one. Free.
42
+ - `create_actor` — **creates a personal actor from a description; this costs
43
+ money.** Each requested format is a separate charged image. Returns a `run_id`
44
+ immediately; poll `get_run` until `succeeded`, then pass `created_actor.actor_id`
45
+ to `make_ugc` as `actor_id`.
46
+ - `delete_actor` — removes a personal actor of this account. Videos already made
47
+ with it stay as they are. Free.
41
48
 
42
49
  Call `quote_ugc` before `make_ugc`: the quote is where the contract tells you
43
50
  what it will and will not honor. Anything the API cannot deliver comes back in
package/SKILL.md CHANGED
@@ -164,7 +164,8 @@ Environment variables:
164
164
  | `CLIPWRIGHT_CLIENT_ID` | YES (see section 2) | Unique identifier of this INSTALLATION. |
165
165
 
166
166
  After connecting, restart or reopen the MCP host and confirm that `tools/list`
167
- returns seven tools: `make_ugc`, `get_run`, `quote_ugc`, `list_actors`, `list_voices`, `upload_image`, `get_account`.
167
+ returns ten tools: `make_ugc`, `get_run`, `quote_ugc`, `list_actors`, `list_voices`, `upload_image`, `get_account`,
168
+ `create_actor`, `quote_actor`, `delete_actor`.
168
169
 
169
170
  ## 2. `CLIPWRIGHT_CLIENT_ID` — required, and WHY
170
171
 
package/dist/format.js CHANGED
@@ -1,4 +1,4 @@
1
- import { FAILED_STATE, isTerminal } from "@clipwright/core";
1
+ import { FAILED_STATE, isTerminal, runMoney, VIDEO_URL_CHECK } from "@clipwright/core";
2
2
  import { ClipwrightApiError } from "@clipwright/sdk";
3
3
  /**
4
4
  * ОТКАЗ API, РАЗВЁРНУТЫЙ ДЛЯ АГЕНТА (US-622).
@@ -72,6 +72,7 @@ export function formatGetRun(run) {
72
72
  status: "FAILED",
73
73
  run_id: run.run_id,
74
74
  state: run.state,
75
+ ...runMoney(run),
75
76
  // Правило проекта №3: расхождения никогда не молчат — warnings
76
77
  // пробрасываются в КАЖДУЮ ветку get_run (US-512).
77
78
  warnings: run.warnings,
@@ -89,7 +90,9 @@ export function formatGetRun(run) {
89
90
  status: "SUCCEEDED",
90
91
  run_id: run.run_id,
91
92
  state: run.state,
93
+ ...runMoney(run),
92
94
  video_url: run.final_output?.video_url ?? null,
95
+ video_url_check: VIDEO_URL_CHECK,
93
96
  duration_seconds: run.final_output?.duration_seconds ?? null,
94
97
  warnings: run.warnings,
95
98
  }),
@@ -107,6 +110,7 @@ export function formatGetRun(run) {
107
110
  status: "IN_PROGRESS",
108
111
  run_id: run.run_id,
109
112
  state: run.state,
113
+ ...runMoney(run),
110
114
  video_url: null,
111
115
  warnings: run.warnings,
112
116
  next_action: "Video is NOT ready. Call get_run with run_id=" +
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAgB,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAYrD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,aAAa,CAAC,KAAc;IA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AAI,IAAI;wBAC5D,QAAQ,EAAE,GAAG,CAAC,QAAQ;qBACvB,CAAC;iBACH;aACF;SACF,CAAC;IACJ,CAAC;IACD,+EAA+E;IAC/E,gDAAgD;IAChD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;oBACnB,MAAM,EAAE,aAAa;oBACrB,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,GAAG,QAAQ,CAAC,GAAG,CAAC;oBAChB,SAAS,EAAE,IAAI;oBACf,QAAQ,EAAE,GAAG,CAAC,QAAQ;oBACtB,WAAW,EACT,+CAA+C;wBAC/C,GAAG,CAAC,MAAM;wBACV,mFAAmF;wBACnF,wDAAwD;iBAC3D,CAAC;aACH;SACF;KACF,CAAC;AACJ,CAAC"}
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@ import { z } from "zod";
8
8
  // `rejected` не должны предлагаться вызывателю, которого мы за их использование
9
9
  // накажем четырёхсотым (блокер B4). Множество выводится из реестра диспозиций,
10
10
  // поэтому смена решения по полю переносит его между поверхностями одной строкой.
11
- import { offeredUgcInputShape, CATALOG_LANGUAGES, SCRIPT_LENGTH_DESCRIPTION, voicesQueryShape, agentRetryShape, runId, MAKE_UGC_DESCRIPTION, MAKE_UGC_AGENT_PROTOCOL, UPLOAD_IMAGE_DESCRIPTION, UPLOAD_MAX_BYTES, sniffUploadMediaType, } from "@clipwright/core";
11
+ import { offeredUgcInputShape, CATALOG_LANGUAGES, CREATE_ACTOR_DESCRIPTION, createActorInputShape, SCRIPT_LENGTH_DESCRIPTION, voicesQueryShape, agentRetryShape, runId, MAKE_UGC_DESCRIPTION, MAKE_UGC_AGENT_PROTOCOL, UPLOAD_IMAGE_DESCRIPTION, UPLOAD_MAX_BYTES, sniffUploadMediaType, } from "@clipwright/core";
12
12
  import { formatGetRun, withFailureReport } from "./format.js";
13
13
  // Версия — из манифеста: литерал расходился с ним молча, а импорт JSON не проходит `rootDir`.
14
14
  const packageVersion = () => createRequire(import.meta.url)("../package.json").version;
@@ -119,6 +119,31 @@ export function createServer(client) {
119
119
  }, async () => withFailureReport(async () => ({
120
120
  content: [{ type: "text", text: JSON.stringify({ actors: await client.listActors() }) }],
121
121
  })));
122
+ // Личный актёр аккаунта (clipwright#120). Схема — та же, что проверяет сервер,
123
+ // поэтому предлагаемое и принимаемое разойтись не могут.
124
+ server.registerTool("create_actor", { description: CREATE_ACTOR_DESCRIPTION, inputSchema: { ...createActorInputShape, ...agentRetryShape } }, async (args) => withFailureReport(async () => {
125
+ // `attempt` живёт в opts SDK: внутри `input` схема срезала бы его молча,
126
+ // и повтор агента возвращал бы первый ран вместо нового.
127
+ const { attempt, ...input } = args;
128
+ const run = await client.createActor(input, { attempt });
129
+ return formatGetRun(run);
130
+ }));
131
+ server.registerTool("quote_actor", {
132
+ description: "Estimate the credit cost of create_actor WITHOUT spending credits. Call this first and show the " +
133
+ "price before create_actor: each requested format is a separate charged image.",
134
+ inputSchema: createActorInputShape,
135
+ }, async (args) => withFailureReport(async () => ({
136
+ content: [{ type: "text", text: JSON.stringify(await client.quoteActor(args)) }],
137
+ })));
138
+ server.registerTool("delete_actor", {
139
+ description: "Delete a personal actor of this account by actor_id. Videos already made with it stay as they are, " +
140
+ "and new runs can no longer use it. An actor used by a run that has not finished is refused until that " +
141
+ "run ends. Catalog actors belong to Clipwright and are not deletable.",
142
+ inputSchema: { actor_id: z.string().min(1).describe("Personal actor id from list_actors.") },
143
+ }, async ({ actor_id }) => withFailureReport(async () => {
144
+ await client.deleteActor(actor_id);
145
+ return { content: [{ type: "text", text: JSON.stringify({ deleted: actor_id }) }] };
146
+ }));
122
147
  // Остаток счёта без траты попытки: иначе его узнают только отказом 402 (clipwright#135).
123
148
  server.registerTool("get_account", {
124
149
  description: "Read this account's credits. Free, spends nothing. debt_credits above zero means make_ugc " +
@@ -1 +1 @@
1
- {"version":3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AAC,CACL,CAAC;IAEF,yFAAyF;IACzF,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE;QACjC,WAAW,EACT,4FAA4F;YAC5F,yFAAyF;YACzF,4FAA4F;YAC5F,4FAA4F;YAC5F,gGAAgG;QAClG,WAAW,EAAE,EAAE;KAChB,EAAE,KAAK,IAAI,EAAE,CAAC,iBAAiB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAC5C,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC;KAC7E,CAAC,CAAC,CAAC,CAAC;IAEL,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipwright/mcp-server",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "MCP server for Clipwright: generate UGC videos from your coding agent",
5
5
  "keywords": [
6
6
  "mcp",
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@modelcontextprotocol/sdk": "^1.29.0",
31
31
  "zod": "^4.4.3",
32
- "@clipwright/core": "0.15.0",
33
- "@clipwright/sdk": "0.15.0"
32
+ "@clipwright/core": "0.17.0",
33
+ "@clipwright/sdk": "0.17.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.1"