@audiolabtools/mcp-server 0.3.2 → 0.3.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
@@ -1,3 +1,6 @@
1
+ <!-- Built by scripts/build-public-mcp-repo.mjs in the AudioLab monorepo.
2
+ Edit mcp/README.md there, not this copy. -->
3
+
1
4
  # @audiolabtools/mcp-server
2
5
 
3
6
  MCP ([Model Context Protocol](https://modelcontextprotocol.io)) server that gives any
@@ -63,7 +66,7 @@ Example asks to your AI:
63
66
  |---|---|---|
64
67
  | `AUDIOLAB_API_KEY` | — (required) | Your API key. |
65
68
  | `AUDIOLAB_API_BASE` | `https://audiolab.tools/v1` | Override the API base (must be `https://`). |
66
- | `AUDIOLAB_TIMEOUT_MS` | `60000` | Per-request timeout in milliseconds. |
69
+ | `AUDIOLAB_TIMEOUT_MS` | `330000` | Per-request timeout in milliseconds (long files and batches stream server-side and can legitimately take minutes). |
67
70
 
68
71
  ## Privacy
69
72
 
@@ -77,6 +80,7 @@ machine, don't use a hosted analyser.
77
80
  ## Limits
78
81
 
79
82
  - Local files: up to **50 MB** (host bigger ones at a public URL).
83
+ - Duration: loudness routes (`analyze_loudness`, `check_target`, `analyze_timeseries`, `get_spectrum`) handle **long files** (podcast episodes, full sets — up to ~3 h) via server-side streaming; voice/signal routes are limited to ~7 minutes.
80
84
  - One file per call (agents loop for many); one-shot (no streaming/realtime).
81
85
  - Rate and monthly limits are enforced by the API, per key.
82
86
 
package/hosted-server.mjs CHANGED
@@ -21,7 +21,7 @@
21
21
  // "env": { "AUDIOLAB_API_KEY": "al_live_yourkey" } } } }
22
22
  //
23
23
  // Env: AUDIOLAB_API_KEY (required at call time for stdio mode), AUDIOLAB_API_BASE
24
- // (default https://audiolab.tools/v1, must be https), AUDIOLAB_TIMEOUT_MS (default 60000).
24
+ // (default https://audiolab.tools/v1, must be https), AUDIOLAB_TIMEOUT_MS (default 330000).
25
25
  // Smoke test (no network): node hosted-server.mjs --selftest
26
26
 
27
27
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
@@ -52,7 +52,10 @@ const apiBase = () => {
52
52
  return base;
53
53
  };
54
54
 
55
- const timeoutMs = () => Number(process.env.AUDIOLAB_TIMEOUT_MS) || 60_000;
55
+ // Just above the API's own 300 s ceiling: since long files stream server-side
56
+ // (a 25-min track ≈ 10-30 s, batches of them add up), a 60 s client default
57
+ // made the client give up while the server was still happily working.
58
+ const timeoutMs = () => Number(process.env.AUDIOLAB_TIMEOUT_MS) || 330_000;
56
59
 
57
60
  function requireKey(key) {
58
61
  const k = key || process.env.AUDIOLAB_API_KEY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audiolabtools/mcp-server",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "mcpName": "tools.audiolab/audiolab",
5
5
  "description": "MCP server for AudioLab \u2014 loudness (EBU R128 / BS.1770-4), true-peak, voice-quality, and signal analysis for AI agents (Claude, Cursor, any MCP client), via the AudioLab hosted API. No local audio engine required.",
6
6
  "type": "module",