@speakai/mcp-server 1.36.0 → 1.37.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 +21 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11225,7 +11225,8 @@ var init_dashboards = __esm({
11225
11225
  // src/tools/voice.ts
11226
11226
  var voice_exports = {};
11227
11227
  __export(voice_exports, {
11228
- register: () => register19
11228
+ register: () => register19,
11229
+ voiceInputSchema: () => voiceInputSchema
11229
11230
  });
11230
11231
  function register19(server, client, options = {}) {
11231
11232
  const api = client ?? speakClient;
@@ -11370,7 +11371,7 @@ function register19(server, client, options = {}) {
11370
11371
  registerSpeakTool(
11371
11372
  server,
11372
11373
  "update_voice_agent",
11373
- "Update a voice agent. Requires the OWNER or ADMIN role. Send only the fields you want to change; agentId, companyId, and userId are immutable and silently dropped if sent.",
11374
+ "Update a voice agent. Requires the OWNER or ADMIN role. Send only the top-level fields you want to change; agentId, companyId, and userId are immutable and silently dropped if sent. Object fields (voice, llm, avatar, chatSettings) each replace the stored object whole, not merge -- fetch get_voice_agent first and resend every key of an object field you're not fully replacing.",
11374
11375
  {
11375
11376
  agentId: import_zod21.z.string().min(1).describe("ID of the voice agent to update (from list_voice_agents)"),
11376
11377
  ...Object.fromEntries(
@@ -11581,13 +11582,25 @@ function register19(server, client, options = {}) {
11581
11582
  }
11582
11583
  );
11583
11584
  }
11584
- var import_zod21, voiceInputSchema;
11585
+ var import_zod21, chatSettingsSchema, voiceInputSchema;
11585
11586
  var init_voice4 = __esm({
11586
11587
  "src/tools/voice.ts"() {
11587
11588
  "use strict";
11588
11589
  import_zod21 = require("zod");
11590
+ init_dist();
11589
11591
  init_helpers();
11590
11592
  init_client();
11593
+ chatSettingsSchema = import_zod21.z.object({
11594
+ welcomeMessage: import_zod21.z.string().optional().describe("The agent's opening line."),
11595
+ conversationStarters: import_zod21.z.array(import_zod21.z.string()).optional(),
11596
+ topicsToAvoid: import_zod21.z.array(import_zod21.z.string()).optional(),
11597
+ maxResponseLength: import_zod21.z.number().int().min(10).max(50).optional().describe("Words per response, 10-50."),
11598
+ maxSessionLength: import_zod21.z.number().int().positive().optional().describe("Minutes before the call ends."),
11599
+ language: import_zod21.z.string().optional(),
11600
+ responsePace: import_zod21.z.enum(RESPONSE_PACES).optional()
11601
+ }).describe(
11602
+ "Sending this object replaces it whole on the stored agent, the same as voice/llm/avatar below -- fields you omit are not merged, they're dropped. Fetch get_voice_agent first and resend every key you want to keep."
11603
+ );
11591
11604
  voiceInputSchema = {
11592
11605
  name: import_zod21.z.string().min(1).describe("Required on create. Trimmed, non-empty."),
11593
11606
  personality: import_zod21.z.string().describe("Required on create. Free text describing the agent's tone."),
@@ -11604,7 +11617,8 @@ var init_voice4 = __esm({
11604
11617
  avatar: import_zod21.z.object({
11605
11618
  avatarId: import_zod21.z.string().describe("Must match a row in your company's avatar catalog (list_voice_avatars) or the shared system catalog.")
11606
11619
  }).optional().describe("Set to attach a video avatar; avatarUrl/provider are derived server-side from the catalog row."),
11607
- conversationMode: import_zod21.z.enum(["voice_only", "video_avatar"]).optional(),
11620
+ chatSettings: chatSettingsSchema.optional(),
11621
+ conversationMode: import_zod21.z.enum(["voice", "avatar"]).optional(),
11608
11622
  folderId: import_zod21.z.string().optional().describe("Folder to file this agent's conversations under."),
11609
11623
  enableWebSearch: import_zod21.z.boolean().optional().describe("Let the agent search the web mid-call, separate from any attached knowledge base.")
11610
11624
  };
@@ -12330,9 +12344,9 @@ function register22(server, client) {
12330
12344
  "Advisory only \u2014 compares a voice agent's current instructions against anchors/original intent/recent call summaries you supply and suggests up to 3 patches. Requires the OWNER or ADMIN role. Nothing is written; pass a suggestion's suggestedPatch to apply_voice_instruction_gap to actually apply it.",
12331
12345
  {
12332
12346
  agentId: import_zod24.z.string().min(1).describe("ID of the voice agent (from list_voice_agents)"),
12333
- anchors: import_zod24.z.array(import_zod24.z.string()).optional().describe("Specific requirements the instructions must cover. Defaults to empty."),
12334
- originalPrompt: import_zod24.z.string().optional().describe("The original generation prompt, for context."),
12335
- conversationSummaries: import_zod24.z.array(import_zod24.z.string()).optional().describe("Recent call summaries, to ground suggestions in what actually came up. Defaults to empty.")
12347
+ anchors: import_zod24.z.array(import_zod24.z.string().trim().min(1).max(500)).max(20).optional().describe("Specific requirements the instructions must cover, at most 20 of up to 500 characters each. Defaults to empty."),
12348
+ originalPrompt: import_zod24.z.string().optional().describe("The original generation prompt, for context. Only the first 2000 characters are used."),
12349
+ conversationSummaries: import_zod24.z.array(import_zod24.z.string().trim().min(1).max(2e3)).max(20).optional().describe("Recent call summaries, to ground suggestions in what actually came up, at most 20 of up to 2000 characters each. Defaults to empty.")
12336
12350
  },
12337
12351
  { title: "Analyze Voice Instruction Gaps", readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: false },
12338
12352
  async ({ agentId, ...body }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakai/mcp-server",
3
- "version": "1.36.0",
3
+ "version": "1.37.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",