@speakai/mcp-server 1.15.0 → 1.16.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/dist/index.js +37 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1402,6 +1402,42 @@ function register(server, client) {
1402
1402
  }
1403
1403
  }
1404
1404
  );
1405
+ registerSpeakTool(
1406
+ server,
1407
+ "update_transcription",
1408
+ "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.",
1409
+ {
1410
+ mediaId: import_zod2.z.string().min(1).describe("Unique identifier of the media file"),
1411
+ original: import_zod2.z.string().min(1).describe("Text to find in the transcript"),
1412
+ replacement: import_zod2.z.string().describe("Text to replace it with (empty string deletes the matched text)"),
1413
+ caseSensitive: import_zod2.z.boolean().optional().describe("Match case exactly when finding the original text")
1414
+ },
1415
+ {
1416
+ title: "Update Transcription Text",
1417
+ readOnlyHint: false,
1418
+ destructiveHint: true,
1419
+ idempotentHint: false,
1420
+ openWorldHint: false
1421
+ },
1422
+ async ({ mediaId, original, replacement, caseSensitive }) => {
1423
+ try {
1424
+ const result = await api.put(
1425
+ `/v1/media/transcript/${mediaId}/replace`,
1426
+ { original, replacement, caseSensitive }
1427
+ );
1428
+ return {
1429
+ content: [
1430
+ { type: "text", text: JSON.stringify(result.data, null, 2) }
1431
+ ]
1432
+ };
1433
+ } catch (err) {
1434
+ return {
1435
+ content: [{ type: "text", text: `Error: ${formatAxiosError(err)}` }],
1436
+ isError: true
1437
+ };
1438
+ }
1439
+ }
1440
+ );
1405
1441
  registerSpeakTool(
1406
1442
  server,
1407
1443
  "get_media_status",
@@ -6471,6 +6507,7 @@ var init_tool_names = __esm({
6471
6507
  "get_captions",
6472
6508
  "list_supported_languages",
6473
6509
  "update_transcript_speakers",
6510
+ "update_transcription",
6474
6511
  "bulk_update_transcript_speakers",
6475
6512
  "bulk_move_media",
6476
6513
  // 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.0",
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",