@speakai/mcp-server 1.43.1 → 1.43.3

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
@@ -446,9 +446,9 @@ SPEAK_API_KEY=your-key npx @speakai/mcp-server
446
446
  | `submit_chat_feedback` | Rate a chat response (thumbs up/down) |
447
447
  | `get_chat_statistics` | Get AI Chat usage statistics |
448
448
  | `export_chat_answer` | Export a conversation or answer |
449
- | `get_analysis_quote` | Check if a file can be analysed as audio/video and what it costs |
449
+ | `check_analysis_eligibility` | Check whether a file can be analysed as audio or video |
450
450
 
451
- `ask_ai_chat`, `retry_ai_chat` and `get_analysis_quote` register only with `aiChat: true` or `aiChatAnswerOnly: true`. The stdio server uses `aiChat`, where Speak's assistant can call other tools. The hosted endpoint uses `aiChatAnswerOnly`: for AI-assistant connections the assistant answers only from the person's recordings and does not take actions in other apps.
451
+ `ask_ai_chat` and `retry_ai_chat` register only with `aiChat: true` or `aiChatAnswerOnly: true`. `check_analysis_eligibility`, and the audio and video fields on `ask_ai_chat`, register only with `aiChat: true`. The stdio server uses `aiChat`, where Speak's assistant can call other tools. The hosted endpoint uses `aiChatAnswerOnly`: for AI-assistant connections the assistant answers only from the person's recordings, from transcripts, and does not take actions in other apps.
452
452
 
453
453
  The automation tools, `build_automation`, `provision_inbound_webhook`, `get_inbound_webhook` and `get_webhook_attempts` register only with `automations: true`, and `get_voice_test_run` and `apply_voice_test_recommendation` only with `voiceTestRunDetails: true`. The stdio server includes them; the hosted endpoint does not, because automation steps can run actions in connected third-party apps. On the hosted endpoint, set up automations in the Speak AI web app.
454
454
 
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface RegisterOptions {
6
6
  localFileAccess?: boolean;
7
7
  /** Register the voice test-run tools (start, pause, resume, cancel, results). Defaults to true; pass false to leave them off. */
8
8
  voiceTestRuns?: boolean;
9
- /** Register ask_ai_chat, retry_ai_chat and get_analysis_quote. Speak's assistant behind them can call other tools. */
9
+ /** Register ask_ai_chat, retry_ai_chat and check_analysis_eligibility. Speak's assistant behind them can call other tools. */
10
10
  aiChat?: boolean;
11
11
  /** Register the same AI Chat tools with answer-only descriptions. For the hosted server: Speak runs chat from AI-assistant connections with read tools over the person's recordings only, and no actions in other apps. */
12
12
  aiChatAnswerOnly?: boolean;
package/dist/index.js CHANGED
@@ -7041,11 +7041,13 @@ function register7(server, client, options = {}) {
7041
7041
  "Use assistantType to get specialized responses (e.g., 'researcher' for academic analysis, 'sales' for deal insights).",
7042
7042
  "To continue a conversation, pass the promptId from a previous response.",
7043
7043
  "Returns a promptId \u2014 save it to continue the conversation with follow-up questions.",
7044
- "Set analysisMediaId + analysisInput to have the model listen to the audio or watch the video instead of",
7045
- "reading the transcript alone; call get_analysis_quote first to check the file can be analysed that way.",
7044
+ ...answerOnly ? [] : [
7045
+ "Set analysisMediaId + analysisInput to have the model listen to the audio or watch the video instead of",
7046
+ "reading the transcript alone; call check_analysis_eligibility first to check the file can be analysed that way."
7047
+ ],
7046
7048
  answerOnly ? "The assistant answers only from the person's Speak recordings: it can search them and chart what it finds, and it does not take actions in other apps." : "The assistant can also call other Speak AI tools and actions in the user's connected third-party apps (for example, sending a message), so a prompt can change data or send content outside this chat."
7047
7049
  ].join(" ");
7048
- const askAiChatInputSchema = {
7050
+ const fullAskAiChatInputSchema = {
7049
7051
  prompt: import_zod8.z.string().min(1).describe("The question or prompt to ask about the media"),
7050
7052
  mediaIds: import_zod8.z.array(import_zod8.z.string()).optional().describe("Array of media IDs to query. Omit along with folderIds to search across all media in your workspace."),
7051
7053
  folderIds: import_zod8.z.array(import_zod8.z.string()).optional().describe("Array of folder IDs to scope the query to. Omit along with mediaIds to search across all media."),
@@ -7064,6 +7066,8 @@ function register7(server, client, options = {}) {
7064
7066
  analysisMediaId: import_zod8.z.string().optional().describe("Media to analyse as audio/video rather than transcript. Must also appear in mediaIds, and must be sent together with analysisInput."),
7065
7067
  analysisInput: import_zod8.z.enum(["audio", "video"]).optional().describe("'audio' lets the model hear tone, pacing and delivery; 'video' also lets it see what is on screen. Omit for transcript-only, which is the default. 'transcript' is not a valid value here \u2014 omitting the field IS transcript-only.")
7066
7068
  };
7069
+ const { analysisMediaId: _hostedSkipsMedia, analysisInput: _hostedSkipsInput, ...hostedAskAiChatInputSchema } = fullAskAiChatInputSchema;
7070
+ const askAiChatInputSchema = answerOnly ? hostedAskAiChatInputSchema : fullAskAiChatInputSchema;
7067
7071
  const askAiChatAnnotations = {
7068
7072
  title: "Ask AI Chat",
7069
7073
  readOnlyHint: false,
@@ -7136,9 +7140,9 @@ function register7(server, client, options = {}) {
7136
7140
  askAiChatAnnotations,
7137
7141
  askAiChatHandler
7138
7142
  );
7139
- if (aiChat) registerSpeakTool(
7143
+ if (aiChat && !answerOnly) registerSpeakTool(
7140
7144
  server,
7141
- "get_analysis_quote",
7145
+ "check_analysis_eligibility",
7142
7146
  "Check whether a media file can be analysed as audio or video before running ask_ai_chat with analysisInput. Returns whether the file is eligible and, when it is not, a plain-English reason. An unavailable file is a normal result here, not an error. This is the only check that accounts for both the account's opt-in and the server-wide switch, so call it before an audio or video run.",
7143
7147
  {
7144
7148
  mediaId: import_zod8.z.string().min(1).describe("Media file to check"),
@@ -14035,7 +14039,7 @@ var init_tool_names = __esm({
14035
14039
  "get_live_meeting_transcript",
14036
14040
  // prompt
14037
14041
  "ask_ai_chat",
14038
- "get_analysis_quote",
14042
+ "check_analysis_eligibility",
14039
14043
  "list_prompts",
14040
14044
  "get_favorite_prompts",
14041
14045
  "toggle_prompt_favorite",
@@ -15333,7 +15337,7 @@ var SPEAK_MCP_TOOL_CATEGORIES = [
15333
15337
  "submit_chat_feedback",
15334
15338
  "get_chat_statistics",
15335
15339
  "export_chat_answer",
15336
- "get_analysis_quote"
15340
+ "check_analysis_eligibility"
15337
15341
  ]
15338
15342
  },
15339
15343
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speakai/mcp-server",
3
- "version": "1.43.1",
3
+ "version": "1.43.3",
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",