@speakai/mcp-server 1.16.2 → 1.16.4
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/dist/index.js +12 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1167,6 +1167,8 @@ var init_dist = __esm({
|
|
|
1167
1167
|
// src/tools/media.ts
|
|
1168
1168
|
var media_exports = {};
|
|
1169
1169
|
__export(media_exports, {
|
|
1170
|
+
LIST_MEDIA_DEFAULT_PAGE_SIZE: () => LIST_MEDIA_DEFAULT_PAGE_SIZE,
|
|
1171
|
+
LIST_MEDIA_MAX_PAGE_SIZE: () => LIST_MEDIA_MAX_PAGE_SIZE,
|
|
1170
1172
|
register: () => register
|
|
1171
1173
|
});
|
|
1172
1174
|
function register(server, client) {
|
|
@@ -1255,7 +1257,9 @@ function register(server, client) {
|
|
|
1255
1257
|
{
|
|
1256
1258
|
mediaType: import_zod2.z.enum([MediaType.AUDIO, MediaType.VIDEO, MediaType.TEXT]).optional().describe('Filter by media type: "audio", "video", or "text"'),
|
|
1257
1259
|
page: import_zod2.z.number().int().min(0).optional().describe("Page number for pagination (0-based, default: 0)"),
|
|
1258
|
-
pageSize: import_zod2.z.number().int().min(1).max(
|
|
1260
|
+
pageSize: import_zod2.z.number().int().min(1).max(LIST_MEDIA_MAX_PAGE_SIZE).optional().describe(
|
|
1261
|
+
"Number of results per page (default: 25, max: 100). Page through larger sets rather than raising this \u2014 with include: ['transcription'] each result carries a full transcript, and an oversized response is rejected outright."
|
|
1262
|
+
),
|
|
1259
1263
|
sortBy: import_zod2.z.string().optional().describe('Sort field and direction, e.g. "createdAt:desc" or "name:asc"'),
|
|
1260
1264
|
filterMedia: import_zod2.z.number().int().optional().describe("Filter: 0=Uploaded, 1=Assigned, 2=Both (default: 2)"),
|
|
1261
1265
|
filterName: import_zod2.z.string().optional().describe("Filter media by partial name match"),
|
|
@@ -1289,11 +1293,10 @@ function register(server, client) {
|
|
|
1289
1293
|
if (include?.length) {
|
|
1290
1294
|
queryParams.requestTypes = include.join(",");
|
|
1291
1295
|
}
|
|
1296
|
+
queryParams.pageSize = params.pageSize ?? LIST_MEDIA_DEFAULT_PAGE_SIZE;
|
|
1292
1297
|
const result = await api.get("/v1/media", { params: queryParams });
|
|
1293
1298
|
return {
|
|
1294
|
-
content: [
|
|
1295
|
-
{ type: "text", text: JSON.stringify(result.data, null, 2) }
|
|
1296
|
-
]
|
|
1299
|
+
content: [{ type: "text", text: JSON.stringify(result.data) }]
|
|
1297
1300
|
};
|
|
1298
1301
|
} catch (err) {
|
|
1299
1302
|
return {
|
|
@@ -1693,13 +1696,13 @@ function register(server, client) {
|
|
|
1693
1696
|
registerSpeakTool(
|
|
1694
1697
|
server,
|
|
1695
1698
|
"bulk_update_transcript_speakers",
|
|
1696
|
-
|
|
1699
|
+
`Normalise speaker names that are ALREADY correct across multiple media files \u2014 for example changing "Frederik S." to "Frederik" everywhere. Applies the same mapping to every specified media file. NOT a way to identify a speaker across a project: neither the numeric id nor a default label such as "Speaker 1" refers to the same person in different files, because speakers are numbered per file in order of appearance. Renaming "Speaker 1" across many files will label a different person in each one. Identify the speakers in each file first (get_transcript, or an identify-speakers automation), then use this tool only to tidy up naming that is already correct. Match by the speaker's current LABEL, not by numeric id. A file whose speakers do not match the mapping is left unchanged and reported as failed. Re-sending a mapping that has already been applied is a safe no-op, so do not retry a call that reported success.`,
|
|
1697
1700
|
{
|
|
1698
1701
|
mediaIds: import_zod2.z.array(import_zod2.z.string().min(1)).min(1).max(500).describe("Array of media IDs to update speakers for (max 500 per call)"),
|
|
1699
1702
|
speakers: import_zod2.z.array(
|
|
1700
1703
|
import_zod2.z.object({
|
|
1701
1704
|
id: import_zod2.z.string().min(1).describe(
|
|
1702
|
-
`Which speaker to rename, matched against every file in mediaIds. Use the speaker's CURRENT label (e.g. "
|
|
1705
|
+
`Which speaker to rename, matched against every file in mediaIds. Use the speaker's CURRENT label (e.g. "Vatsal Shah"). Only safe when that label already identifies the same person in every file listed \u2014 a default label like "Speaker 1", and any numeric id, is a per-file position and means a different person in each file. Not a fixed identifier: it changes when the speaker is renamed.`
|
|
1703
1706
|
),
|
|
1704
1707
|
name: import_zod2.z.string().min(1).describe("New display name to assign to the speaker")
|
|
1705
1708
|
})
|
|
@@ -1773,7 +1776,7 @@ function register(server, client) {
|
|
|
1773
1776
|
}
|
|
1774
1777
|
);
|
|
1775
1778
|
}
|
|
1776
|
-
var import_zod2;
|
|
1779
|
+
var import_zod2, LIST_MEDIA_DEFAULT_PAGE_SIZE, LIST_MEDIA_MAX_PAGE_SIZE;
|
|
1777
1780
|
var init_media3 = __esm({
|
|
1778
1781
|
"src/tools/media.ts"() {
|
|
1779
1782
|
"use strict";
|
|
@@ -1781,6 +1784,8 @@ var init_media3 = __esm({
|
|
|
1781
1784
|
init_helpers();
|
|
1782
1785
|
init_client();
|
|
1783
1786
|
init_dist();
|
|
1787
|
+
LIST_MEDIA_DEFAULT_PAGE_SIZE = 25;
|
|
1788
|
+
LIST_MEDIA_MAX_PAGE_SIZE = 100;
|
|
1784
1789
|
}
|
|
1785
1790
|
});
|
|
1786
1791
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speakai/mcp-server",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.4",
|
|
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",
|