@writepanda/mcp 1.229.0 → 1.234.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.
Files changed (2) hide show
  1. package/bin/server.mjs +171 -10
  2. package/package.json +1 -1
package/bin/server.mjs CHANGED
@@ -819,7 +819,7 @@ const TOOLS = [
819
819
  {
820
820
  name: "system_get_transcription_language",
821
821
  description:
822
- "Workspace transcription language. auto = Parakeet TDT v3, which detects the language itself across 25 languages, English included: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Ukrainian. Anything else names a Whisper language.",
822
+ "Workspace transcription language + on-device engine, and the engine a run would use and why: { language, engine (auto|parakeet|whisper), route { engine, lockedLanguage, reason }, whisperModel { downloaded, size } }. auto language = Parakeet TDT v3 detects it (25 languages: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Ukrainian). With engine auto, English stays on Parakeet (keeps fillers) and any other named language is transcribed by Whisper LOCKED to it (no drift into English).",
823
823
  inputSchema: { type: "object", properties: {} },
824
824
  command: "system.get-transcription-language",
825
825
  },
@@ -846,7 +846,7 @@ const TOOLS = [
846
846
  {
847
847
  name: "system_set_transcription_language",
848
848
  description:
849
- "Set the workspace transcription language. auto = Parakeet TDT v3, which detects the language itself across 25 languages, English included: Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Ukrainian. For any of those (e.g. Romanian) use auto; their names are accepted and saved as auto. The other values use Whisper, a ~1.1 GB download: tell the user first (system.is-whisper-model-downloaded via pandastudio_call).",
849
+ "Set the workspace transcription language. auto = Parakeet TDT v3 detects it. english/en is saved as auto (Parakeet keeps filler words). Any other language (french, romanian, chinese ...) is saved as itself and, with engine auto, transcribed by Whisper large-v3-turbo LOCKED to it (task transcribe, never translate): Parakeet can't be locked and drifts into English on accented speech. Whisper is a one-time ~550 MB download: if system_get_transcription_language whisperModel.downloaded is false, ask the user, then system_download_whisper_model. Keep a European language on Parakeet with system_set_transcription_preferences engine parakeet.",
850
850
  inputSchema: {
851
851
  type: "object",
852
852
  properties: {
@@ -1635,7 +1635,7 @@ const TOOLS = [
1635
1635
  {
1636
1636
  name: "project_new",
1637
1637
  description:
1638
- "Create a project; withMedia imports videos as clips, or AUDIO files (MP3 / WAV / M4A / AAC / FLAC / OGG) as an audio-only podcast project. speakers = one audio file per speaker (host first): a multi-speaker audio clip synced by audio.",
1638
+ "Create a project; withMedia imports videos as clips (each whole, or only a {path, sourceStartMs, sourceEndMs} range), or AUDIO files (MP3 / WAV / M4A / AAC / FLAC / OGG) as an audio-only podcast project. speakers = one audio file per speaker (host first): a multi-speaker audio clip synced by audio. Returns editedDurationMs and warnings (e.g. the same footage repeated on several clips, or longer than parentProjectId's project): read them before going on.",
1639
1639
  inputSchema: {
1640
1640
  type: "object",
1641
1641
  properties: {
@@ -1645,8 +1645,23 @@ const TOOLS = [
1645
1645
  name: { type: "string" },
1646
1646
  withMedia: {
1647
1647
  type: "array",
1648
- items: { type: "string" },
1649
- description: "Videos, or audio files (an audio-only project). Not both.",
1648
+ items: {
1649
+ anyOf: [
1650
+ { type: "string" },
1651
+ {
1652
+ type: "object",
1653
+ properties: {
1654
+ path: { type: "string" },
1655
+ sourceStartMs: { type: "number" },
1656
+ sourceEndMs: { type: "number" },
1657
+ },
1658
+ required: ["path"],
1659
+ additionalProperties: false,
1660
+ },
1661
+ ],
1662
+ },
1663
+ description:
1664
+ "Videos, or audio files (an audio-only project). Not both. An item is a path (whole file) or {path, sourceStartMs, sourceEndMs} for only that range (ms in the file's own time): excerpts / previews, the same file may repeat with different ranges.",
1650
1665
  },
1651
1666
  speakers: {
1652
1667
  type: "array",
@@ -1699,7 +1714,7 @@ const TOOLS = [
1699
1714
  {
1700
1715
  name: "project_add_clip",
1701
1716
  description:
1702
- "Append or insert a video clip, an audio file (audio-only projects only), or a still image shown for durationMs, on the main track (later content moves with it). atMs (edited time) inserts at that moment, splitting the clip under it; add replaceToMs to replace [atMs, replaceToMs) with the clip (e.g. a re-recorded take).",
1717
+ "Append or insert a video clip (whole, or only sourceStartMs-sourceEndMs of it), an audio file (audio-only projects only), or a still image shown for durationMs, on the main track (later content moves with it). atMs (edited time) inserts at that moment, splitting the clip under it; add replaceToMs to replace [atMs, replaceToMs) with the clip (e.g. a re-recorded take).",
1703
1718
  inputSchema: {
1704
1719
  type: "object",
1705
1720
  properties: {
@@ -1719,12 +1734,39 @@ const TOOLS = [
1719
1734
  description:
1720
1735
  "With atMs: replace [atMs, replaceToMs), merge overlapping or adjacent cuts, and remove fully trimmed clips.",
1721
1736
  },
1737
+ sourceStartMs: {
1738
+ type: "number",
1739
+ description:
1740
+ "Video / audio: in-point, ms in the file's own time. Add only an excerpt instead of the whole file.",
1741
+ },
1742
+ sourceEndMs: {
1743
+ type: "number",
1744
+ description: "Video / audio: out-point, ms in the file's own time (default: its end).",
1745
+ },
1722
1746
  expectedRevision: { type: "number" },
1723
1747
  },
1724
1748
  required: ["media"],
1725
1749
  },
1726
1750
  command: "project.add-clip",
1727
1751
  },
1752
+ {
1753
+ name: "project_set_clip_range",
1754
+ description:
1755
+ "Set which part of a clip's media plays (in / out point, ms in the clip's own source time), like dragging its edges: head + tail cut, old edge cuts replaced, inner cuts kept. Turns a full-length clip into an excerpt. Returns editedDurationMs + warnings.",
1756
+ inputSchema: {
1757
+ type: "object",
1758
+ properties: {
1759
+ id: { type: "string" },
1760
+ path: { type: "string" },
1761
+ clipId: { type: "string" },
1762
+ sourceStartMs: { type: "number", description: "Default 0." },
1763
+ sourceEndMs: { type: "number", description: "Default: the media's end." },
1764
+ expectedRevision: { type: "number" },
1765
+ },
1766
+ required: ["clipId"],
1767
+ },
1768
+ command: "project.set-clip-range",
1769
+ },
1728
1770
  {
1729
1771
  name: "project_set_clip_duration",
1730
1772
  description: "Change how long an image clip shows (later content moves).",
@@ -3332,7 +3374,7 @@ const TOOLS = [
3332
3374
  {
3333
3375
  name: "project_save",
3334
3376
  description:
3335
- "Overwrite a project file with `project` (pass expectedRevision). Without it, returns the current revision. Verbs already autosave.",
3377
+ "Overwrite a project file with `project` (pass expectedRevision). Without it, returns the current revision. Verbs already autosave. Clips have no in/out or speed fields (sourceStartMs, inMs, speed, ...): those are rejected, use project_set_clip_range / project_add_speed.",
3336
3378
  inputSchema: {
3337
3379
  type: "object",
3338
3380
  properties: {
@@ -4345,13 +4387,13 @@ const TOOLS = [
4345
4387
  {
4346
4388
  name: "system_set_transcription_preferences",
4347
4389
  description:
4348
- "Save workspace language and provider atomically. Confirm consent to upload audio for cloud. Cloud and apple cannot use auto.",
4390
+ "Save workspace transcription language, provider and/or on-device engine atomically (pass any). engine: auto (Parakeet for English/auto-detect, Whisper LOCKED to any other named language), parakeet (keeps fillers, detects the language, can't be locked), whisper (locks to the language). Confirm consent to upload audio for cloud. Cloud and apple cannot use auto.",
4349
4391
  inputSchema: {
4350
4392
  type: "object",
4351
- required: ["language", "provider"],
4352
4393
  properties: {
4353
4394
  language: { type: "string" },
4354
4395
  provider: { type: "string", enum: ["local", "apple", "deepgram", "elevenlabs"] },
4396
+ engine: { type: "string", enum: ["auto", "parakeet", "whisper"] },
4355
4397
  },
4356
4398
  },
4357
4399
  command: "system.set-transcription-preferences",
@@ -4360,7 +4402,7 @@ const TOOLS = [
4360
4402
  {
4361
4403
  name: "transcript_transcribe",
4362
4404
  description:
4363
- "Transcribe clips with word timestamps (default: only clips without words). To REDO a transcript (wrong language, bad run) confirm language, pass per-run language and provider overrides, then force: true (all clips) or clipId. Word fixes are re-applied; tell the user about result droppedWordEdits[] (fixes that may need redoing). Each clip is transcribed only over the part it plays (head trim to out-point, e.g. one half of a split; result transcribedRanges[]). ASYNC: { jobId }, job_wait. Concurrent saves are merged and retried (three attempts). Exhausted conflicts report code revision_conflict / status 409 (job.errorDetails for async jobs).",
4405
+ "Transcribe clips with word timestamps (default: only clips without words). Engine: language auto/english = Parakeet; any other named language = local Whisper LOCKED to it (engine override). Returns { jobId, plan } (plan = engine + reason, ranges, totalAudioMs: the audio that will be processed; tell the user for long jobs). To REDO a transcript (wrong language, bad run) confirm language, pass per-run language and provider overrides, then force: true (all clips) or clipId. Word fixes are re-applied; tell the user about result droppedWordEdits[] (fixes that may need redoing). Each clip is transcribed only over the part it plays (head trim to tail trim, e.g. one half of a split; only the kept parts when cuts hide most of a long recording; result transcribedRanges[]). ASYNC: { jobId }, job_wait. Concurrent saves are merged and retried (three attempts). Exhausted conflicts report code revision_conflict / status 409 (job.errorDetails for async jobs).",
4364
4406
  inputSchema: {
4365
4407
  type: "object",
4366
4408
  properties: {
@@ -4379,10 +4421,54 @@ const TOOLS = [
4379
4421
  "Per-run provider. apple stays on this Mac. Audio is sent to the selected cloud provider.",
4380
4422
  },
4381
4423
  force: { type: "boolean", description: "Re-transcribe clips that already have words." },
4424
+ engine: {
4425
+ type: "string",
4426
+ enum: ["auto", "parakeet", "whisper"],
4427
+ description:
4428
+ "Per-run on-device engine (provider local). auto: Parakeet for English/auto, Whisper LOCKED to any other named language. parakeet keeps fillers but can't be locked to a language.",
4429
+ },
4430
+ dryRun: {
4431
+ type: "boolean",
4432
+ description:
4433
+ "Return the plan (engine + reason, per-clip source ranges, totalAudioMs) without transcribing. Use before long jobs.",
4434
+ },
4382
4435
  },
4383
4436
  },
4384
4437
  command: "transcript.transcribe",
4385
4438
  },
4439
+ {
4440
+ name: "system_download_whisper_model",
4441
+ description:
4442
+ "Download the Whisper large-v3-turbo model (~550 MB, once; then offline). Needed when a run routes to Whisper (any named language except English with engine auto, or engine whisper). ASK the user first. ASYNC: { jobId }, job_wait.",
4443
+ inputSchema: { type: "object", properties: {} },
4444
+ command: "system.download-whisper-model",
4445
+ },
4446
+ {
4447
+ name: "transcript_import",
4448
+ description:
4449
+ "Replace a clip's transcript from a file: SRT, VTT (inline <00:00:01.500> word times supported), or word-timed JSON (whisper / faster-whisper / whisperX segments[].words[], {words:[...]}, {word_segments:[...]}, or [{word|text,start,end}] in seconds; startMs/endMs in ms). timeBase REQUIRED: source (media file time) or edited (the cut video's timeline; mapped through cuts/speed). Errors (lines going backwards, ending before starting, outside the clip) refuse with line numbers; overlaps are trimmed with a warning. Line-level timing is ALIGNED to measured word timings (align auto: the clip's current words, else a local transcription of just those lines = async { jobId }); without any, words are spread per line and alignment.method is 'proportional' (tell the user). Cuts kept; word fixes re-applied (droppedWordEdits[] otherwise); same word at same moment keeps its id. dryRun previews.",
4450
+ inputSchema: {
4451
+ type: "object",
4452
+ properties: {
4453
+ id: { type: "string" },
4454
+ path: { type: "string" },
4455
+ clipId: {
4456
+ type: "string",
4457
+ description: "Optional when the project has one clip with audio.",
4458
+ },
4459
+ file: { type: "string", description: "Absolute path to the .srt/.vtt/.json file." },
4460
+ content: { type: "string", description: "The file's text instead of file." },
4461
+ format: { type: "string", enum: ["auto", "srt", "vtt", "json"] },
4462
+ timeBase: { type: "string", enum: ["source", "edited"] },
4463
+ align: { type: "string", enum: ["auto", "existing", "transcribe", "proportional"] },
4464
+ language: { type: "string" },
4465
+ dryRun: { type: "boolean" },
4466
+ expectedRevision: { type: "number" },
4467
+ },
4468
+ required: ["timeBase"],
4469
+ },
4470
+ command: "transcript.import",
4471
+ },
4386
4472
  {
4387
4473
  name: "transcript_get",
4388
4474
  description:
@@ -4755,6 +4841,39 @@ const TOOLS = [
4755
4841
  command: "caption.set-template",
4756
4842
  },
4757
4843
 
4844
+ {
4845
+ name: "caption_set_punctuation",
4846
+ description:
4847
+ 'Clean punctuation out of the CAPTIONS in one call (same as Captions > Clean up punctuation, one undo step). preset clean (default): removes full stops, commas, ! : ; … quotes dashes brackets, KEEPS question marks (keepQuestionMarks false removes them); all; none (show the transcript\'s punctuation). Or remove: [period, comma, question, exclamation, colon, ellipsis, quotes, dashes, brackets]. The transcript text is NOT changed (timings, cuts, sentence breaks intact; reversible). Never merges words ("Bonjour.Merci" -> "Bonjour Merci"); keeps j\'ai, aujourd\'hui, peut-être, 3.5, 10:30, writepanda.ai.',
4848
+ inputSchema: {
4849
+ type: "object",
4850
+ properties: {
4851
+ id: { type: "string" },
4852
+ path: { type: "string" },
4853
+ preset: { type: "string", enum: ["clean", "all", "none"] },
4854
+ remove: {
4855
+ type: "array",
4856
+ items: {
4857
+ type: "string",
4858
+ enum: [
4859
+ "period",
4860
+ "comma",
4861
+ "question",
4862
+ "exclamation",
4863
+ "colon",
4864
+ "ellipsis",
4865
+ "quotes",
4866
+ "dashes",
4867
+ "brackets",
4868
+ ],
4869
+ },
4870
+ },
4871
+ keepQuestionMarks: { type: "boolean" },
4872
+ expectedRevision: { type: "number" },
4873
+ },
4874
+ },
4875
+ command: "caption.set-punctuation",
4876
+ },
4758
4877
  {
4759
4878
  name: "caption_set_style",
4760
4879
  description:
@@ -4934,6 +5053,48 @@ const TOOLS = [
4934
5053
  },
4935
5054
  command: "media.generate-narration",
4936
5055
  },
5056
+ {
5057
+ name: "media_regenerate_narration",
5058
+ description:
5059
+ "Regenerate a narration already on the timeline IN PLACE from its stored source (script, model, voice, tone on audioOverlays[].generatedFrom). Pass only what changes (text with the edited script, voice, model, ...). Same start, volume, fades, ducking; length = new audio. A transcribed narration is re-transcribed (transcribeJobId: job_wait it). One undo step. No stored source (older narration) = pass text.",
5060
+ inputSchema: {
5061
+ type: "object",
5062
+ properties: {
5063
+ id: { type: "string" },
5064
+ path: { type: "string" },
5065
+ regionId: { type: "string", description: "The narration's audio overlay id (audio-N)." },
5066
+ text: { type: "string", description: "New script (default: stored)." },
5067
+ model: { type: "string", description: "New engine; without voice uses its default voice." },
5068
+ voice: { type: "string" },
5069
+ style: { type: "string", description: "Tone (cloud); '' clears." },
5070
+ language: { type: "string" },
5071
+ speed: { type: "number" },
5072
+ pronunciations: { type: "object", description: 'e.g. {"Kamal":"Ka mal"}' },
5073
+ expectedRevision: { type: "number" },
5074
+ },
5075
+ required: ["regionId"],
5076
+ },
5077
+ command: "media.regenerate-narration",
5078
+ },
5079
+ {
5080
+ name: "media_regenerate_image",
5081
+ description:
5082
+ "Regenerate a generated picture on the timeline (a B-roll beat's image) IN PLACE from its stored prompt (editor.mediaOverlayRegions[].generatedImage); pass prompt to change it. Timing, push, transitions, shutter kept. PAID on the user's image connector: only when they asked. One undo step.",
5083
+ inputSchema: {
5084
+ type: "object",
5085
+ properties: {
5086
+ id: { type: "string" },
5087
+ path: { type: "string" },
5088
+ regionId: { type: "string", description: "The picture's overlay id." },
5089
+ prompt: { type: "string", description: "New prompt (default: stored)." },
5090
+ aspectRatio: { type: "string" },
5091
+ quality: { type: "string", enum: ["low", "medium", "high"] },
5092
+ expectedRevision: { type: "number" },
5093
+ },
5094
+ required: ["regionId"],
5095
+ },
5096
+ command: "media.regenerate-image",
5097
+ },
4937
5098
  {
4938
5099
  name: "recording_list_sources",
4939
5100
  description: "List displays and windows for recording_start's source.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@writepanda/mcp",
3
- "version": "1.229.0",
3
+ "version": "1.234.0",
4
4
  "description": "Model Context Protocol server for PandaStudio. Exposes the desktop video editor's automation surface to Cursor, Continue, Cline, Claude Desktop, and any MCP-compliant client.",
5
5
  "keywords": [
6
6
  "pandastudio",