Reconcile a Traktor collection against the files it is meant to hold.
Traktor has no API and no MCP of its own — its collection is one XML file, collection.nml, which the app reads whole at startup and rewrites whole as it exits. That file is the only surface there is, and this is the tool that owns it: it points the entries that describe a file the pipeline replaced at the file that replaced it, adds the tracks the lanes hold that the collection has never seen, and reports the rest.
traktor-nml # what it would do, writing nothing — the default verb traktor-nml status # one paragraph: entries, lanes, and what a run would do traktor-nml apply # one backup, one write, entries repointed and added traktor-nml purge # the entries whose file is gone, out — dry run until --apply The same four verbs are served over MCP by its own project, traktor-mcp — plan, status, apply and purge (the last one dry unless its apply argument is true) — each returning the text the command line prints.
apply never removes an entry; purge is the one verb that does, and it says what each removal costs before it writes — a playlist line moved to the entry that keeps the track, or dropped when nothing does. An entry pointing at nothing is residue rather than something that might come back: a collection is an index of files that exist.
A repointed entry keeps everything the app stored about the track — cues, play count, last played, import date, artwork, the album, and its playlist membership — and gives up what described the old file's audio: AUDIO_ID, TEMPO, LOUDNESS, MUSICAL_KEY, the auto grid, and the FLAGS that says "analyzed". Those come back the moment Traktor analyzes the file it now points at, which its Check Consistency → Analyze does for the tracks in exactly that state.
Every rule here is read off the file rather than out of a specification, and each carries its evidence:
A lane file that is not readable audio at all, and a file whose name contains U+FEFF: Traktor rewrote Kimia Koochakzadeh-Yazdi - \ufeffĀVĀR (feat. Anahita Azimi).m4a as … - ?ĀVĀR ….m4a in its own rewrite at 2026-10-13 16:33, so an entry pointing at it cannot survive one quit of the app. Writing it again would be undone every time, so both are reported with what to do — and the fix for the second is a rename. (The U+06DD in one file's name came through the same rewrite verbatim, which is why the rule names the one character there is evidence for rather than a Unicode category.)
config.toml beside this file: the collection as a pattern (Traktor's directory carries its version number), the two lanes, and music-agent's job state. Nothing in it is a secret. --config reads another file.
uv run pytest # 39 tests; the two that need a real collection skip without one uv run traktor-nml # against the live collection, read-only The MCP surface is its own project, traktor-mcp: it imports this library and serves the same four verbs over stdio. This package is the command line and the library under it.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 22, 2026 2 release files No provenance




