minutes-mcp 0.30.6 → 0.30.8

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.
@@ -53,7 +53,7 @@ export const HEALTH_HTTP_PATH = "/health";
53
53
  /** Concurrent sessions allowed. Unauthenticated localhost, so this is bounded. */
54
54
  export const DEFAULT_MAX_SESSIONS = 16;
55
55
  /** Request bodies are JSON-RPC envelopes, never audio; paths are passed by name. */
56
- export const MAX_REQUEST_BODY_BYTES = 4 * 1024 * 1024;
56
+ export const MAX_REQUEST_BODY_BYTES = 1024 * 1024;
57
57
  /**
58
58
  * How much of an oversized body to read and throw away before giving up on the
59
59
  * client. Reading past the limit is what lets the 413 be delivered at all, but
package/dist/index.d.ts CHANGED
@@ -338,7 +338,7 @@ export type EnsureWhisperModelOptions = {
338
338
  checkState?: WhisperModelCheckState;
339
339
  health?: () => Promise<string>;
340
340
  configFileExists?: () => Promise<boolean>;
341
- setup?: (model?: string) => Promise<void>;
341
+ setup?: (model: string) => Promise<void>;
342
342
  log?: (message: string) => void;
343
343
  };
344
344
  export declare function ensureWhisperModel(options?: EnsureWhisperModelOptions): Promise<void>;
package/dist/index.js CHANGED
@@ -1597,7 +1597,7 @@ const COPILOT_SUPPORTED = hasFeature(CLI_CAPABILITIES, "copilot_realtime");
1597
1597
  // `./version.ts` (see issue #183). Hosted `.mcpb` bundles will run
1598
1598
  // against CLIs with different minor/patch numbers within the same
1599
1599
  // major; that is explicitly supported.
1600
- const MCP_SERVER_VERSION = "0.30.6";
1600
+ const MCP_SERVER_VERSION = "0.30.8";
1601
1601
  export function parseKnowledgeConfig(configContent) {
1602
1602
  const knowledgeMatch = configContent.match(/\[knowledge\][\s\S]*?(?=\n\[|$)/);
1603
1603
  if (!knowledgeMatch) {
@@ -1895,7 +1895,9 @@ export async function ensureWhisperModel(options = {}) {
1895
1895
  return stdout;
1896
1896
  });
1897
1897
  const setup = options.setup ?? (async (model) => {
1898
- const args = model === undefined ? ["setup"] : ["setup", "--model", model];
1898
+ // Background availability checks may install the selected model, but
1899
+ // must never select another one or rewrite a concurrently edited config.
1900
+ const args = ["setup", "--model", model, "--download-only"];
1899
1901
  await execFileAsync(MINUTES_BIN, args, {
1900
1902
  timeout: 300000,
1901
1903
  env: mcpCliChildEnv(),
@@ -1919,16 +1921,7 @@ export async function ensureWhisperModel(options = {}) {
1919
1921
  healthOutput.effectiveEngine?.toLowerCase() === "whisper" &&
1920
1922
  healthOutput.reason === "whisper: parakeet model missing — run minutes setup";
1921
1923
  if (parakeetModelMissing) {
1922
- log("[Minutes] Auto found the sherpa plugin but Parakeet is missing — running minutes setup...");
1923
- try {
1924
- await setup();
1925
- log("[Minutes] ✓ Parakeet and Whisper fallback models downloaded — recording is ready");
1926
- }
1927
- catch (error) {
1928
- const message = error instanceof Error ? error.message : String(error);
1929
- log(`[Minutes] Model download failed: ${message}. Run manually: minutes setup`);
1930
- }
1931
- return;
1924
+ log("[Minutes] Parakeet is not installed — keeping your configured Whisper selection. Run minutes setup to install Parakeet; background setup will not change engines or models.");
1932
1925
  }
1933
1926
  // Auto may resolve to sherpa when Parakeet v3 is installed. In that case
1934
1927
  // Whisper readiness is irrelevant to MCP startup and must not trigger the
@@ -1976,16 +1969,16 @@ export async function ensureWhisperModel(options = {}) {
1976
1969
  log("[Minutes] config exists but this CLI does not report the configured model; run `minutes setup --model <your model>` or upgrade the CLI");
1977
1970
  return;
1978
1971
  }
1979
- model = "tiny";
1980
- log("[Minutes] No Whisper model is configured — downloading tiny model (~75MB)...");
1972
+ model = "small";
1973
+ log("[Minutes] No Whisper model is configured — installing the default small model without changing saved settings...");
1981
1974
  }
1982
1975
  try {
1983
1976
  await setup(model);
1984
- log(`[Minutes] ✓ Whisper ${model} model downloaded — recording is ready`);
1977
+ log(`[Minutes] ✓ Whisper ${model} model downloaded; saved selections were preserved`);
1985
1978
  }
1986
1979
  catch (error) {
1987
1980
  const message = error instanceof Error ? error.message : String(error);
1988
- log(`[Minutes] Model download failed: ${message}. Run manually: minutes setup --model ${model}`);
1981
+ log(`[Minutes] Model download failed: ${message}. To install without changing your selection, run minutes setup --model ${model} --download-only. If the CLI does not support --download-only, upgrade Minutes first.`);
1989
1982
  }
1990
1983
  }
1991
1984
  // ── CLI availability detection ──────────────────────────────
@@ -3517,10 +3510,13 @@ export function registerLiveEventsSubscriptionHandlers(mcpServer, options = {})
3517
3510
  }
3518
3511
  // ── MCP Server ──────────────────────────────────────────────
3519
3512
  crashTrace("pre-mcp-server-construct");
3513
+ // Bound validation work before a tool schema sees untrusted arguments. Keep
3514
+ // this on every protocol instance, including per-session HTTP servers.
3515
+ const MCP_SERVER_OPTIONS = { maxToolInputElements: 10_000 };
3520
3516
  const server = new McpServer({
3521
3517
  name: "minutes",
3522
3518
  version: MCP_SERVER_VERSION,
3523
- });
3519
+ }, MCP_SERVER_OPTIONS);
3524
3520
  crashTrace("post-mcp-server-construct");
3525
3521
  const SERVER_BUILDERS = [];
3526
3522
  /** Record a registration and apply it to the singleton immediately. */
@@ -3570,7 +3566,7 @@ export function createMinutesServer() {
3570
3566
  const instance = new McpServer({
3571
3567
  name: "minutes",
3572
3568
  version: MCP_SERVER_VERSION,
3573
- });
3569
+ }, MCP_SERVER_OPTIONS);
3574
3570
  const teardowns = [];
3575
3571
  for (const build of SERVER_BUILDERS) {
3576
3572
  const teardown = build(instance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minutes-mcp",
3
- "version": "0.30.6",
3
+ "version": "0.30.8",
4
4
  "mcpName": "io.github.silverstein/minutes",
5
5
  "description": "MCP server for minutes \u2014 conversation memory for AI assistants. Works with Claude Desktop, Mistral Vibe, Cursor, Windsurf, and any MCP client.",
6
6
  "main": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "build": "tsc && vite build",
35
35
  "build:ui": "vite build",
36
36
  "test": "npm run build && node ../../scripts/run_corpus_test_harness.mjs npm run test:integration",
37
- "test:integration": "node test/mcp_tools_test.mjs && node test/copilot_mcp_contract.mjs && node test/mcp_http_transport_test.mjs && node test/surface_parity_test.mjs && node test/first_recall_test.mjs",
37
+ "test:integration": "node test/mcp_tools_test.mjs && node test/copilot_mcp_contract.mjs && node test/mcp_http_transport_test.mjs && node test/surface_parity_test.mjs && node test/first_recall_test.mjs && node test/model_setup_preferences_test.mjs",
38
38
  "test:unit": "node ../../scripts/run_corpus_test_harness.mjs npx vitest run",
39
39
  "test:host-compat": "node test/live_events_host_compat.mjs",
40
40
  "test:copilot": "node test/copilot_mcp_contract.mjs",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/ext-apps": "^2.0.0",
49
- "@modelcontextprotocol/sdk": "^1.31.0",
50
- "minutes-sdk": "0.30.6",
49
+ "@modelcontextprotocol/sdk": "^1.32.0",
50
+ "minutes-sdk": "0.30.8",
51
51
  "yaml": "^2.8.3",
52
52
  "zod": "^3.25 || ^4.0"
53
53
  },