@speakai/mcp-server 1.16.3 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -5
  2. 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(500).optional().describe("Number of results per page (default: 20, max: 500)"),
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 {
@@ -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",
3
+ "version": "1.17.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",