@speakai/mcp-server 1.15.0 → 1.16.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 (2) hide show
  1. package/dist/index.js +45 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1366,15 +1366,19 @@ function register(server, client) {
1366
1366
  registerSpeakTool(
1367
1367
  server,
1368
1368
  "update_transcript_speakers",
1369
- "Update or rename speaker labels in a media transcript.",
1369
+ "Update or rename speaker labels in a single media transcript. Call get_transcript first to read the speaker list \u2014 a speaker's label is whatever it was last renamed to, not a fixed value, so ids from an earlier turn may be stale. Renaming a speaker to a name another speaker already has is refused as a collision. Re-sending a rename that has already been applied is a safe no-op, so do not retry a call that reported success.",
1370
1370
  {
1371
1371
  mediaId: import_zod2.z.string().min(1).describe("Unique identifier of the media file"),
1372
1372
  speakers: import_zod2.z.array(
1373
1373
  import_zod2.z.object({
1374
- id: import_zod2.z.string().min(1).describe("Speaker identifier from the transcript"),
1375
- name: import_zod2.z.string().min(1).describe("Display name to assign to the speaker")
1374
+ id: import_zod2.z.string().min(1).describe(
1375
+ `Which speaker to rename. Accepts the speaker's CURRENT label exactly as it appears in the transcript (e.g. "Speaker 0", "Vatsal Shah"), or its numeric id from insight.speakers[].id (e.g. "0"). Not a fixed identifier \u2014 it changes when the speaker is renamed.`
1376
+ ),
1377
+ name: import_zod2.z.string().min(1).describe("New display name to assign to the speaker")
1376
1378
  })
1377
- ).describe("Array of speaker ID to name mappings")
1379
+ ).describe(
1380
+ "Speakers to rename. Each entry maps one existing speaker to its new name; speakers not listed are left untouched."
1381
+ )
1378
1382
  },
1379
1383
  {
1380
1384
  title: "Rename Transcript Speakers",
@@ -1402,6 +1406,42 @@ function register(server, client) {
1402
1406
  }
1403
1407
  }
1404
1408
  );
1409
+ registerSpeakTool(
1410
+ server,
1411
+ "update_transcription",
1412
+ "Edit the official transcript text of a single media file by finding and replacing text. Replaces every occurrence of the original text with the replacement (leave replacement empty to delete the text) and reports how many occurrences were replaced. Use update_transcript_speakers to rename speaker labels instead.",
1413
+ {
1414
+ mediaId: import_zod2.z.string().min(1).describe("Unique identifier of the media file"),
1415
+ original: import_zod2.z.string().min(1).describe("Text to find in the transcript"),
1416
+ replacement: import_zod2.z.string().describe("Text to replace it with (empty string deletes the matched text)"),
1417
+ caseSensitive: import_zod2.z.boolean().optional().describe("Match case exactly when finding the original text")
1418
+ },
1419
+ {
1420
+ title: "Update Transcription Text",
1421
+ readOnlyHint: false,
1422
+ destructiveHint: true,
1423
+ idempotentHint: false,
1424
+ openWorldHint: false
1425
+ },
1426
+ async ({ mediaId, original, replacement, caseSensitive }) => {
1427
+ try {
1428
+ const result = await api.put(
1429
+ `/v1/media/transcript/${mediaId}/replace`,
1430
+ { original, replacement, caseSensitive }
1431
+ );
1432
+ return {
1433
+ content: [
1434
+ { type: "text", text: JSON.stringify(result.data, null, 2) }
1435
+ ]
1436
+ };
1437
+ } catch (err) {
1438
+ return {
1439
+ content: [{ type: "text", text: `Error: ${formatAxiosError(err)}` }],
1440
+ isError: true
1441
+ };
1442
+ }
1443
+ }
1444
+ );
1405
1445
  registerSpeakTool(
1406
1446
  server,
1407
1447
  "get_media_status",
@@ -6471,6 +6511,7 @@ var init_tool_names = __esm({
6471
6511
  "get_captions",
6472
6512
  "list_supported_languages",
6473
6513
  "update_transcript_speakers",
6514
+ "update_transcription",
6474
6515
  "bulk_update_transcript_speakers",
6475
6516
  "bulk_move_media",
6476
6517
  // meeting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakai/mcp-server",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "mcpName": "io.github.speakai/mcp-server",
5
5
  "description": "Official Speak AI MCP Server — capture meetings, search thousands of recordings, run async voice and video surveys, create clips, and automate workflows from your AI assistant.",
6
6
  "homepage": "https://mcp.speakai.co",