@speakai/mcp-server 1.27.0 → 1.28.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.
package/README.md CHANGED
@@ -403,7 +403,7 @@ SPEAK_API_KEY=your-key npx @speakai/mcp-server
403
403
  |---|---|
404
404
  | `get_signed_upload_url` | Get a pre-signed S3 URL for direct file upload |
405
405
  | `upload_media` | Upload media from a URL — a direct/public file URL, a pre-signed S3 URL, or a social/video page link resolved automatically (YouTube, TikTok, Instagram, X/Twitter, Facebook, Reddit, SoundCloud, Twitch, Dailymotion, Streamable, Snapchat, Pinterest, Tumblr, Bilibili, VK, OK.ru, Rutube). Vimeo and Loom page links are not supported. |
406
- | `upload_local_file` | Upload a local file directly from disk |
406
+ | `upload_local_file` | Upload a local file directly from disk (stdio and CLI only, never on the remote server) |
407
407
  | `upload_and_analyze` | Upload media from a URL (direct file, or any social/video page link `upload_media` accepts — resolved automatically) and return its `media_id` immediately. Poll `get_media_status` until `processed`, then call `get_media_insights` for AI summaries. Set `mediaType` when the user has said which they want; leave it off otherwise and the server picks the best available track. |
408
408
  | `upload_and_analyze_batch` | Upload up to 25 URLs in one call, 5 at a time. Each URL is reported as uploaded or failed with its reason, so one bad link does not sink the batch. Use this instead of calling `upload_and_analyze` in a loop. |
409
409
  | `list_media` | List and search media files with filters, pagination, and optional inline data (transcripts, speakers, keywords) via `include` param |
package/dist/index.d.ts CHANGED
@@ -1,7 +1,16 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { AxiosInstance } from "axios";
3
3
 
4
- export declare function registerAllTools(server: McpServer, client?: AxiosInstance): void;
4
+ export interface RegisterOptions {
5
+ /** Register tools that read the local disk. Only for servers on the user's own machine (stdio, CLI). */
6
+ localFileAccess?: boolean;
7
+ }
8
+
9
+ export declare function registerAllTools(
10
+ server: McpServer,
11
+ client?: AxiosInstance,
12
+ options?: RegisterOptions
13
+ ): void;
5
14
 
6
15
  export declare function createSpeakClient(options: {
7
16
  baseUrl: string;
package/dist/index.js CHANGED
@@ -1607,7 +1607,7 @@ function register(server, client) {
1607
1607
  speakers: import_zod2.z.array(
1608
1608
  import_zod2.z.object({
1609
1609
  id: import_zod2.z.string().min(1).describe(
1610
- `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.`
1610
+ `Which speaker to rename. Accepts the speaker's CURRENT label exactly as it appears in the transcript (e.g. "Speaker 0", "Jane Doe"), or its numeric id from insight.speakers[].id (e.g. "0"). Not a fixed identifier \u2014 it changes when the speaker is renamed.`
1611
1611
  ),
1612
1612
  name: import_zod2.z.string().min(1).describe("New display name to assign to the speaker")
1613
1613
  })
@@ -1871,7 +1871,7 @@ function register(server, client) {
1871
1871
  {
1872
1872
  title: "Toggle Media Favorite",
1873
1873
  readOnlyHint: false,
1874
- destructiveHint: false,
1874
+ destructiveHint: true,
1875
1875
  idempotentHint: true,
1876
1876
  openWorldHint: false
1877
1877
  },
@@ -1905,7 +1905,7 @@ function register(server, client) {
1905
1905
  {
1906
1906
  title: "Re-analyze Media",
1907
1907
  readOnlyHint: false,
1908
- destructiveHint: false,
1908
+ destructiveHint: true,
1909
1909
  idempotentHint: false,
1910
1910
  openWorldHint: false
1911
1911
  },
@@ -1934,7 +1934,7 @@ function register(server, client) {
1934
1934
  speakers: import_zod2.z.array(
1935
1935
  import_zod2.z.object({
1936
1936
  id: import_zod2.z.string().min(1).describe(
1937
- `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.`
1937
+ `Which speaker to rename, matched against every file in mediaIds. Use the speaker's CURRENT label (e.g. "Jane Doe"). 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.`
1938
1938
  ),
1939
1939
  name: import_zod2.z.string().min(1).describe("New display name to assign to the speaker")
1940
1940
  })
@@ -2052,7 +2052,7 @@ function register2(server, client) {
2052
2052
  readOnlyHint: false,
2053
2053
  destructiveHint: false,
2054
2054
  idempotentHint: false,
2055
- openWorldHint: false
2055
+ openWorldHint: true
2056
2056
  },
2057
2057
  async (body) => {
2058
2058
  try {
@@ -2110,7 +2110,7 @@ function register2(server, client) {
2110
2110
  {
2111
2111
  title: "Re-analyze Text Note",
2112
2112
  readOnlyHint: false,
2113
- destructiveHint: false,
2113
+ destructiveHint: true,
2114
2114
  idempotentHint: false,
2115
2115
  openWorldHint: false
2116
2116
  },
@@ -2719,7 +2719,7 @@ function register5(server, client) {
2719
2719
  readOnlyHint: false,
2720
2720
  destructiveHint: false,
2721
2721
  idempotentHint: false,
2722
- openWorldHint: false
2722
+ openWorldHint: true
2723
2723
  },
2724
2724
  async (body) => {
2725
2725
  try {
@@ -2780,7 +2780,7 @@ function register5(server, client) {
2780
2780
  readOnlyHint: false,
2781
2781
  destructiveHint: false,
2782
2782
  idempotentHint: false,
2783
- openWorldHint: false
2783
+ openWorldHint: true
2784
2784
  },
2785
2785
  async (body) => {
2786
2786
  try {
@@ -2892,9 +2892,9 @@ function register5(server, client) {
2892
2892
  {
2893
2893
  title: "Update Recorder Settings",
2894
2894
  readOnlyHint: false,
2895
- destructiveHint: false,
2895
+ destructiveHint: true,
2896
2896
  idempotentHint: true,
2897
- openWorldHint: false
2897
+ openWorldHint: true
2898
2898
  },
2899
2899
  async ({ recorderId, ...body }) => {
2900
2900
  try {
@@ -2930,7 +2930,7 @@ function register5(server, client) {
2930
2930
  readOnlyHint: false,
2931
2931
  destructiveHint: true,
2932
2932
  idempotentHint: true,
2933
- openWorldHint: false
2933
+ openWorldHint: true
2934
2934
  },
2935
2935
  async ({ recorderId, ...body }) => {
2936
2936
  try {
@@ -2958,7 +2958,7 @@ function register5(server, client) {
2958
2958
  readOnlyHint: false,
2959
2959
  destructiveHint: true,
2960
2960
  idempotentHint: true,
2961
- openWorldHint: false
2961
+ openWorldHint: true
2962
2962
  },
2963
2963
  async ({ recorderId }) => {
2964
2964
  try {
@@ -3021,7 +3021,7 @@ function register6(server, client) {
3021
3021
  registerSpeakTool(
3022
3022
  server,
3023
3023
  "create_embed",
3024
- "Create an embeddable player/transcript widget for a media file or a set of folders. Provide `mediaId` for a single-media embed, or `folderIds` for a folder/library embed.",
3024
+ "Create an embeddable player/transcript widget for a media file or a set of folders. Provide `mediaId` for a single-media embed, or `folderIds` for a folder/library embed. The embed is publicly viewable by default; use update_embed to set a password or privacy mode.",
3025
3025
  {
3026
3026
  mediaId: import_zod7.z.string().optional().describe("Media file to embed (for a single-media embed)"),
3027
3027
  folderIds: import_zod7.z.array(import_zod7.z.string()).optional().describe("Folder IDs to embed (for a folder/library embed)")
@@ -3029,9 +3029,9 @@ function register6(server, client) {
3029
3029
  {
3030
3030
  title: "Create Embed Widget",
3031
3031
  readOnlyHint: false,
3032
- destructiveHint: false,
3032
+ destructiveHint: true,
3033
3033
  idempotentHint: false,
3034
- openWorldHint: false
3034
+ openWorldHint: true
3035
3035
  },
3036
3036
  async (body) => {
3037
3037
  try {
@@ -3067,7 +3067,7 @@ function register6(server, client) {
3067
3067
  readOnlyHint: false,
3068
3068
  destructiveHint: true,
3069
3069
  idempotentHint: true,
3070
- openWorldHint: false
3070
+ openWorldHint: true
3071
3071
  },
3072
3072
  async ({ embedId, ...body }) => {
3073
3073
  try {
@@ -3485,7 +3485,7 @@ function register7(server, client) {
3485
3485
  {
3486
3486
  title: "Toggle Prompt Favorite",
3487
3487
  readOnlyHint: false,
3488
- destructiveHint: false,
3488
+ destructiveHint: true,
3489
3489
  idempotentHint: true,
3490
3490
  openWorldHint: false
3491
3491
  },
@@ -3514,7 +3514,7 @@ function register7(server, client) {
3514
3514
  {
3515
3515
  title: "Rename Chat",
3516
3516
  readOnlyHint: false,
3517
- destructiveHint: false,
3517
+ destructiveHint: true,
3518
3518
  idempotentHint: true,
3519
3519
  openWorldHint: false
3520
3520
  },
@@ -3688,7 +3688,7 @@ function register8(server, client) {
3688
3688
  {
3689
3689
  title: "Schedule AI Meeting Assistant",
3690
3690
  readOnlyHint: false,
3691
- destructiveHint: false,
3691
+ destructiveHint: true,
3692
3692
  idempotentHint: false,
3693
3693
  openWorldHint: true
3694
3694
  },
@@ -3719,7 +3719,7 @@ function register8(server, client) {
3719
3719
  {
3720
3720
  title: "Remove Assistant from Meeting",
3721
3721
  readOnlyHint: false,
3722
- destructiveHint: false,
3722
+ destructiveHint: true,
3723
3723
  idempotentHint: true,
3724
3724
  openWorldHint: true
3725
3725
  },
@@ -3785,7 +3785,7 @@ function register8(server, client) {
3785
3785
  readOnlyHint: true,
3786
3786
  destructiveHint: false,
3787
3787
  idempotentHint: false,
3788
- openWorldHint: true
3788
+ openWorldHint: false
3789
3789
  },
3790
3790
  async ({ meetingAssistantEventId, mediaId, sinceEndInSec }) => {
3791
3791
  if (!meetingAssistantEventId && !mediaId) {
@@ -4869,7 +4869,7 @@ function register10(server, client) {
4869
4869
  readOnlyHint: false,
4870
4870
  destructiveHint: false,
4871
4871
  idempotentHint: false,
4872
- openWorldHint: false
4872
+ openWorldHint: true
4873
4873
  },
4874
4874
  async (body) => {
4875
4875
  try {
@@ -4911,7 +4911,7 @@ function register10(server, client) {
4911
4911
  readOnlyHint: false,
4912
4912
  destructiveHint: true,
4913
4913
  idempotentHint: true,
4914
- openWorldHint: false
4914
+ openWorldHint: true
4915
4915
  },
4916
4916
  async ({ automationId, ...body }) => {
4917
4917
  try {
@@ -4949,7 +4949,7 @@ function register10(server, client) {
4949
4949
  {
4950
4950
  title: "Toggle Automation Status",
4951
4951
  readOnlyHint: false,
4952
- destructiveHint: false,
4952
+ destructiveHint: true,
4953
4953
  idempotentHint: false,
4954
4954
  openWorldHint: false
4955
4955
  },
@@ -4978,7 +4978,7 @@ function register10(server, client) {
4978
4978
  {
4979
4979
  title: "Bulk Update Automation Status",
4980
4980
  readOnlyHint: false,
4981
- destructiveHint: false,
4981
+ destructiveHint: true,
4982
4982
  idempotentHint: true,
4983
4983
  openWorldHint: false
4984
4984
  },
@@ -5036,7 +5036,7 @@ function register10(server, client) {
5036
5036
  {
5037
5037
  title: "Run Automations",
5038
5038
  readOnlyHint: false,
5039
- destructiveHint: false,
5039
+ destructiveHint: true,
5040
5040
  idempotentHint: false,
5041
5041
  openWorldHint: true
5042
5042
  },
@@ -5496,7 +5496,7 @@ function register11(server, client) {
5496
5496
  {
5497
5497
  title: "Update Webhook",
5498
5498
  readOnlyHint: false,
5499
- destructiveHint: false,
5499
+ destructiveHint: true,
5500
5500
  idempotentHint: true,
5501
5501
  openWorldHint: true
5502
5502
  },
@@ -5840,7 +5840,7 @@ function register13(server, client) {
5840
5840
  {
5841
5841
  title: "Update Clip",
5842
5842
  readOnlyHint: false,
5843
- destructiveHint: false,
5843
+ destructiveHint: true,
5844
5844
  idempotentHint: true,
5845
5845
  openWorldHint: false
5846
5846
  },
@@ -5949,7 +5949,7 @@ function resolveField(ref, fields) {
5949
5949
  const available = fields.map((f) => f.name).slice(0, 25).join(", ");
5950
5950
  throw new Error(`Unknown custom field "${ref}". Available fields: ${available || "(none \u2014 create one with create_field)"}`);
5951
5951
  }
5952
- function register14(server, client) {
5952
+ function register14(server, client, options = {}) {
5953
5953
  const api = client ?? speakClient;
5954
5954
  registerSpeakTool(
5955
5955
  server,
@@ -5961,7 +5961,7 @@ function register14(server, client) {
5961
5961
  readOnlyHint: false,
5962
5962
  destructiveHint: true,
5963
5963
  idempotentHint: false,
5964
- openWorldHint: false
5964
+ openWorldHint: true
5965
5965
  },
5966
5966
  async (args2) => {
5967
5967
  const { name, trigger, steps, automationId, description, isActive, orTriggers } = args2;
@@ -6420,7 +6420,7 @@ ${JSON.stringify(uploadRes.data, null, 2)}` }],
6420
6420
  };
6421
6421
  }
6422
6422
  );
6423
- registerSpeakTool(
6423
+ if (options.localFileAccess) registerSpeakTool(
6424
6424
  server,
6425
6425
  "upload_local_file",
6426
6426
  [
@@ -7268,7 +7268,7 @@ function register16(server, client) {
7268
7268
  readOnlyHint: false,
7269
7269
  destructiveHint: true,
7270
7270
  idempotentHint: false,
7271
- openWorldHint: false
7271
+ openWorldHint: true
7272
7272
  },
7273
7273
  async ({ dashboardId, title, revision, description, source, dateRange, sections, widgets, ...metadata }) => {
7274
7274
  try {
@@ -7319,7 +7319,7 @@ function register16(server, client) {
7319
7319
  readOnlyHint: false,
7320
7320
  destructiveHint: true,
7321
7321
  idempotentHint: true,
7322
- openWorldHint: false
7322
+ openWorldHint: true
7323
7323
  },
7324
7324
  async ({ dashboardId }) => {
7325
7325
  try {
@@ -7373,9 +7373,9 @@ function register16(server, client) {
7373
7373
  {
7374
7374
  title: "Share Dashboard",
7375
7375
  readOnlyHint: false,
7376
- destructiveHint: false,
7376
+ destructiveHint: true,
7377
7377
  idempotentHint: true,
7378
- openWorldHint: false
7378
+ openWorldHint: true
7379
7379
  },
7380
7380
  async ({ dashboardId }) => {
7381
7381
  try {
@@ -7468,7 +7468,7 @@ var init_dashboards = __esm({
7468
7468
  preset: import_zod17.z.enum(DATE_RANGE_PRESETS).describe("One of: last7days | last30days | last3months | yearToDate | allTime")
7469
7469
  }).describe("Date range \u2014 strict preset only, no free-form start/end dates");
7470
7470
  settingsFieldIds = import_zod17.z.array(import_zod17.z.string());
7471
- SETTINGS_RULES = "Do not pass settings unless the user explicitly asks to change this dashboard's viewer settings. Never pass settings for a Foxtons dashboard unless explicitly asked; Foxtons moves by a server script. Saving any settings section moves that dashboard onto the settings flow immediately: its media pages use these groups and this Feedback setup from then on. Each section (fields, feedback) replaces that whole section when sent. Call get_dashboard first and resend every key of the section you change; a key left out resets to its default. Get field ids from list_fields. Ids that are not the company's fields are dropped when saving. When feedback.isEnabled is true, pass a non-empty feedback.fieldIds (score fields) rather than leaving it empty. Only set feedback.sheetWebhookUrl when the user gives the Apps Script URL.";
7471
+ SETTINGS_RULES = "Do not pass settings unless the user explicitly asks to change this dashboard's viewer settings. Saving any settings section moves that dashboard onto the settings flow immediately: its media pages use these groups and this Feedback setup from then on. Each section (fields, feedback) replaces that whole section when sent. Call get_dashboard first and resend every key of the section you change; a key left out resets to its default. Get field ids from list_fields. Ids that are not the company's fields are dropped when saving. When feedback.isEnabled is true, pass a non-empty feedback.fieldIds (score fields) rather than leaving it empty. Only set feedback.sheetWebhookUrl when the user gives the Apps Script URL.";
7472
7472
  dashboardSettingsSchema = import_zod17.z.object({
7473
7473
  fields: import_zod17.z.object({
7474
7474
  includeIds: settingsFieldIds.describe(
@@ -7714,7 +7714,7 @@ function register17(server, client) {
7714
7714
  {
7715
7715
  title: "Update Voice Agent",
7716
7716
  readOnlyHint: false,
7717
- destructiveHint: false,
7717
+ destructiveHint: true,
7718
7718
  idempotentHint: false,
7719
7719
  openWorldHint: false
7720
7720
  },
@@ -7974,7 +7974,7 @@ function register18(server, client) {
7974
7974
  autoRunOnInstructionSave: import_zod19.z.boolean().optional(),
7975
7975
  scheduledCron: import_zod19.z.string().optional().nullable()
7976
7976
  },
7977
- { title: "Update Voice Test Suite", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
7977
+ { title: "Update Voice Test Suite", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
7978
7978
  async ({ agentId, ...body }) => {
7979
7979
  try {
7980
7980
  const result = await api.put(`/v1/voice/testing/${agentId}/suite`, body);
@@ -8037,7 +8037,7 @@ function register18(server, client) {
8037
8037
  agentId: import_zod19.z.string().min(1).describe("ID of the voice agent (from list_voice_agents)"),
8038
8038
  runId: import_zod19.z.string().min(1).describe("ID of the run (from get_active_voice_test_run or list_voice_test_runs)")
8039
8039
  },
8040
- { title: "Pause Voice Test Run", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
8040
+ { title: "Pause Voice Test Run", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
8041
8041
  async ({ agentId, runId }) => {
8042
8042
  try {
8043
8043
  const result = await api.post(`/v1/voice/testing/${agentId}/run/${runId}/pause`);
@@ -8055,7 +8055,7 @@ function register18(server, client) {
8055
8055
  agentId: import_zod19.z.string().min(1).describe("ID of the voice agent (from list_voice_agents)"),
8056
8056
  runId: import_zod19.z.string().min(1).describe("ID of the run (from get_active_voice_test_run or list_voice_test_runs)")
8057
8057
  },
8058
- { title: "Resume Voice Test Run", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
8058
+ { title: "Resume Voice Test Run", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
8059
8059
  async ({ agentId, runId }) => {
8060
8060
  try {
8061
8061
  const result = await api.post(`/v1/voice/testing/${agentId}/run/${runId}/resume`);
@@ -8128,7 +8128,7 @@ function register18(server, client) {
8128
8128
  runId: import_zod19.z.string().min(1).describe("ID of the run (from get_voice_test_run)"),
8129
8129
  recId: import_zod19.z.string().min(1).describe("ID of the recommendation within that run's recommendations list")
8130
8130
  },
8131
- { title: "Apply Voice Test Recommendation", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
8131
+ { title: "Apply Voice Test Recommendation", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
8132
8132
  async ({ agentId, runId, recId }) => {
8133
8133
  try {
8134
8134
  const result = await api.post(`/v1/voice/testing/${agentId}/runs/${runId}/recommendations/${recId}/apply`);
@@ -8285,7 +8285,7 @@ function register19(server, client) {
8285
8285
  enabled: import_zod20.z.boolean().optional(),
8286
8286
  mappedFieldId: import_zod20.z.string().optional().nullable()
8287
8287
  },
8288
- { title: "Update Voice Question", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
8288
+ { title: "Update Voice Question", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
8289
8289
  async ({ fieldId, ...body }) => {
8290
8290
  try {
8291
8291
  const result = await api.put(`/v1/voice/questions/${fieldId}`, body);
@@ -8318,7 +8318,7 @@ function register19(server, client) {
8318
8318
  agentId: import_zod20.z.string().min(1),
8319
8319
  fieldOrders: import_zod20.z.array(import_zod20.z.object({ fieldId: import_zod20.z.string().min(1), order: import_zod20.z.number() })).min(1).describe("The new order for some or all of the agent's questions.")
8320
8320
  },
8321
- { title: "Reorder Voice Questions", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
8321
+ { title: "Reorder Voice Questions", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
8322
8322
  async (body) => {
8323
8323
  try {
8324
8324
  const result = await api.put("/v1/voice/questions/reorder", body);
@@ -8332,7 +8332,7 @@ function register19(server, client) {
8332
8332
  server,
8333
8333
  "list_voice_question_templates",
8334
8334
  "List the question templates visible to your company: Speak's shared system templates, plus your own company's templates. Use the returned templateId with create_voice_question.",
8335
- { category: import_zod20.z.enum(["contact", "booking", "qualification", "payment", "custom"]).optional() },
8335
+ { category: import_zod20.z.enum(QUESTION_CATEGORIES).optional() },
8336
8336
  { title: "List Voice Question Templates", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
8337
8337
  async (params) => {
8338
8338
  try {
@@ -8350,7 +8350,7 @@ function register19(server, client) {
8350
8350
  {
8351
8351
  name: import_zod20.z.string().min(1),
8352
8352
  description: import_zod20.z.string().min(1),
8353
- category: import_zod20.z.enum(["contact", "booking", "qualification", "payment", "custom"]),
8353
+ category: import_zod20.z.enum(QUESTION_CATEGORIES),
8354
8354
  fieldType: import_zod20.z.enum(["email", "phone", "date", "time", "datetime", "text", "number", "boolean", "choice", "url"]),
8355
8355
  defaultConfig: import_zod20.z.object({
8356
8356
  displayLabel: import_zod20.z.string(),
@@ -8373,13 +8373,14 @@ function register19(server, client) {
8373
8373
  }
8374
8374
  );
8375
8375
  }
8376
- var import_zod20, validationSchema, customConfigSchema;
8376
+ var import_zod20, QUESTION_CATEGORIES, validationSchema, customConfigSchema;
8377
8377
  var init_voice_questions = __esm({
8378
8378
  "src/tools/voice-questions.ts"() {
8379
8379
  "use strict";
8380
8380
  import_zod20 = require("zod");
8381
8381
  init_helpers();
8382
8382
  init_client();
8383
+ QUESTION_CATEGORIES = ["contact", "booking", "qualification", "custom"];
8383
8384
  validationSchema = import_zod20.z.object({
8384
8385
  pattern: import_zod20.z.string().optional(),
8385
8386
  minLength: import_zod20.z.number().optional(),
@@ -8533,7 +8534,7 @@ function register20(server, client) {
8533
8534
  question: import_zod21.z.string().optional(),
8534
8535
  answer: import_zod21.z.string().optional()
8535
8536
  },
8536
- { title: "Update Voice FAQ Suggestion", readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
8537
+ { title: "Update Voice FAQ Suggestion", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
8537
8538
  async ({ agentId, suggestionId, ...body }) => {
8538
8539
  try {
8539
8540
  const result = await api.put(`/v1/voice/knowledge-base/${agentId}/faqs/${suggestionId}`, body);
@@ -8626,7 +8627,7 @@ function register20(server, client) {
8626
8627
  action: import_zod21.z.enum(["link", "presentation"]).optional(),
8627
8628
  contentType: import_zod21.z.enum(["video", "pdf", "image"]).optional()
8628
8629
  },
8629
- { title: "Update Voice Agent Resource", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
8630
+ { title: "Update Voice Agent Resource", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
8630
8631
  async ({ resourceId, ...body }) => {
8631
8632
  try {
8632
8633
  const result = await api.put(`/v1/voice/agent-resources/${resourceId}`, body);
@@ -8680,7 +8681,7 @@ function register20(server, client) {
8680
8681
  suggestedPatch: import_zod21.z.string().min(1),
8681
8682
  insertAfterSection: import_zod21.z.string().optional().nullable().describe("Insert after this named section heading; omit or null to append at the end.")
8682
8683
  },
8683
- { title: "Apply Voice Instruction Gap", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
8684
+ { title: "Apply Voice Instruction Gap", readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
8684
8685
  async ({ agentId, ...body }) => {
8685
8686
  try {
8686
8687
  const result = await api.post(`/v1/voice/agents/${agentId}/generation/gaps/apply`, body);
@@ -8713,9 +8714,9 @@ var tools_exports = {};
8713
8714
  __export(tools_exports, {
8714
8715
  registerAllTools: () => registerAllTools
8715
8716
  });
8716
- function registerAllTools(server, client) {
8717
+ function registerAllTools(server, client, options = {}) {
8717
8718
  for (const mod of modules) {
8718
- mod.register(server, client);
8719
+ mod.register(server, client, options);
8719
8720
  }
8720
8721
  }
8721
8722
  var modules;
@@ -10251,7 +10252,7 @@ function createCli() {
10251
10252
  }
10252
10253
  };
10253
10254
  const { registerAllTools: registerAllTools2 } = await Promise.resolve().then(() => (init_tools(), tools_exports));
10254
- registerAllTools2(stub, client);
10255
+ registerAllTools2(stub, client, { localFileAccess: true });
10255
10256
  return handlers;
10256
10257
  }
10257
10258
  program.command("tools").description("List every MCP tool callable via `call`").option("--json", "Output raw JSON").action(async (opts) => {
@@ -10397,7 +10398,7 @@ if (isCliMode) {
10397
10398
  name: "speak-ai",
10398
10399
  version: "1.0.0"
10399
10400
  });
10400
- registerAllTools2(server);
10401
+ registerAllTools2(server, void 0, { localFileAccess: true });
10401
10402
  registerResources2(server);
10402
10403
  registerPrompts2(server);
10403
10404
  const transport = new StdioServerTransport();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakai/mcp-server",
3
- "version": "1.27.0",
3
+ "version": "1.28.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://docs.speakai.co/mcp",
@@ -37,7 +37,7 @@
37
37
  "claude",
38
38
  "model-context-protocol"
39
39
  ],
40
- "author": "Vatsal Shah",
40
+ "author": "Speak AI",
41
41
  "license": "MIT",
42
42
  "engines": {
43
43
  "node": ">=22"