@audiolabtools/mcp-server 0.4.4 → 0.4.5

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,5 +1,7 @@
1
1
  # @audiolabtools/mcp-server
2
2
 
3
+ [![Listed on mcpservers.org](https://mcpservers.org/badge.svg)](https://mcpservers.org/servers/audio-launch/audiolab-mcp-server)
4
+
3
5
  MCP ([Model Context Protocol](https://modelcontextprotocol.io)) server that gives any
4
6
  MCP-capable AI (Claude Desktop, Claude Code, Cursor, and others) ten audio-analysis
5
7
  tools, backed by the hosted **AudioLab** API. It is a thin HTTP client: **no local audio
@@ -49,7 +51,7 @@ Every tool takes **one audio source**: a public `url` **or** a local `path`:
49
51
  | `analyze_voice` | Voice QA: speech/silence ratio, speaking rate, SNR, noise floor, pause energy, sibilance & clipping risk |
50
52
  | `get_speech_segments` | Voiced regions with start/end + per-segment RMS (auto-trim, chapters) |
51
53
  | `index_signal` | Content-type guess, tags, clipping/silence regions, brightness & dynamics buckets |
52
- | `analyze_profile` | One named question, `voice`, `master`, `provenance`, `dataset`, `environment`, `broadcast` or `loop`, answered with only the lenses it needs. These seven need a paid plan; the free tier gets the `basic` profile, keyed by stable lens id. Add `series:true` for the curves, per-block lanes and per-phrase values. Carries a `note` when the profile’s voice lenses land on non-speech material. Full catalogue: <https://audiolab.tools/lenses> |
54
+ | `analyze_profile` | One named question, `voice`, `master`, `provenance`, `dataset`, `environment`, `broadcast`, `loop`, `room` (reverberation from a clap, a pop, an impulse response or a sweep; pass `roomSource`), `chain` (lost packets) or `pitch` (where a voice sits and how clean it is), answered with only the lenses it needs. These ten need a paid plan; the free tier gets the `basic` profile, keyed by stable lens id. Add `series:true` for the curves, per-block lanes and per-phrase values. Carries a `note` when the profile’s voice lenses land on non-speech material. Full catalogue: <https://audiolab.tools/lenses> |
53
55
  | `compare_loudness` | A/B on two sources (`urlA`/`pathA` + `urlB`/`pathB`), returns both results |
54
56
  | `analyze_batch` | One route over up to 20 sources in a single call (`urls` and/or `paths`), per-item ok/data/error. For folder QA, library indexing, or checking a whole release against a target. Each item meters as one call |
55
57
 
package/error-docs.mjs CHANGED
@@ -6,9 +6,9 @@
6
6
  export const DOCS_ERRORS_URL = 'https://audiolab.tools/docs/errors';
7
7
 
8
8
  export const KNOWN_CODES = [
9
- 'invalid_api_key', 'rate_limited', 'quota_exceeded', 'data_quota_exceeded', 'profile_requires_paid_plan', 'file_too_large', 'track_too_long', 'unsupported_format',
9
+ 'invalid_api_key', 'rate_limited', 'quota_exceeded', 'data_quota_exceeded', 'profile_requires_paid_plan', 'file_too_large', 'track_too_long', 'unsupported_format', 'room_not_measurable',
10
10
  'url_not_allowed', 'url_fetch_failed', 'invalid_json', 'missing_input', 'invalid_parameter', 'batch_too_large', 'upload_not_found', 'unknown_endpoint', 'method_not_allowed',
11
- 'storage_unavailable', 'analysis_error', 'missing_api_key', 'api_timeout', 'api_unreachable', 'invalid_input',
11
+ 'storage_unavailable', 'analysis_error', 'missing_api_key', 'api_timeout', 'api_unreachable', 'voice_minutes_exhausted', 'service_paused', 'invalid_input',
12
12
  ];
13
13
 
14
14
  export const docsUrl = (code) => `${DOCS_ERRORS_URL}#${KNOWN_CODES.includes(code) ? code : 'analysis_error'}`;
package/hosted-server.mjs CHANGED
@@ -280,20 +280,25 @@ export function buildServer({ apiKey, local = false } = {}) {
280
280
  + 'dataset (which of these files are good enough, and why not the rest), '
281
281
  + 'environment (what is in this space, and what kind of noise is it), '
282
282
  + 'broadcast (does this file meet the delivery spec), '
283
- + 'loop (is this loop clean, on the grid, and safe to drop in a DAW). '
284
- + 'basic is the free tier; the other seven need a paid plan. '
283
+ + 'loop (is this loop clean, on the grid, and safe to drop in a DAW), '
284
+ + 'room (how long does this room ring per octave band, and is there a flutter echo; needs a recording of one clap, a balloon pop, an impulse response or a sweep), '
285
+ + 'chain (did this recording lose packets on its way: gaps of digital silence), '
286
+ + 'pitch (where does this voice sit, how much does it move, how clean is it). '
287
+ + 'basic is the free tier; the other ten need a paid plan. '
285
288
  + 'Results are keyed by stable lens id. Only the analysis passes the profile needs are run. '
286
289
  + 'Set series:true to also get the curves, the per-block lanes and the per-phrase values,'
287
290
  + 'a much larger payload, so leave it off unless you are going to read them.'
288
291
  + srcDoc,
289
292
  inputSchema: {
290
293
  ...src,
291
- profile: z.enum(['basic', 'voice', 'master', 'provenance', 'dataset', 'environment', 'broadcast', 'loop'])
294
+ profile: z.enum(['basic', 'voice', 'master', 'provenance', 'dataset', 'environment', 'broadcast', 'loop', 'room', 'chain', 'pitch'])
292
295
  .describe('Which question to answer.'),
293
296
  series: z.boolean().optional()
294
297
  .describe('Include time series, per-block lanes and per-phrase arrays. Off by default.'),
298
+ roomSource: z.enum(['clap', 'balloon', 'impulse', 'sweep']).optional()
299
+ .describe('For the room profile: how the recording was made. clap (default): one clap; balloon: one pop; impulse: the file is an impulse response; sweep: the file holds the sweep of the engine as the room returned it.'),
295
300
  },
296
- }, wrap((i) => analyzeSource('analyze/profile', i, { profile: i.profile, series: i.series === true }, apiKey, local)));
301
+ }, wrap((i) => analyzeSource('analyze/profile', i, { profile: i.profile, series: i.series === true, ...(i.roomSource ? { roomSource: i.roomSource } : {}) }, apiKey, local)));
297
302
 
298
303
  // compare_loudness: two independent sources, each a url or (local only) a path.
299
304
  const cmp = local
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audiolabtools/mcp-server",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "mcpName": "tools.audiolab/audiolab",
5
5
  "description": "MCP server for AudioLab, 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",