dawmcp 0.0.1 → 0.0.2

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.
Files changed (47) hide show
  1. package/README.md +46 -91
  2. package/THIRD-PARTY-NOTICES.md +997 -2
  3. package/bridge/index.mjs +62 -0
  4. package/bridge/types/browser-bridge-client.d.ts +134 -0
  5. package/bridge/types/browser-bridge-protocol.d.ts +150 -0
  6. package/bridge/types/catalog.d.ts +106 -0
  7. package/bridge/types/contracts.d.ts +3330 -0
  8. package/bridge/types/cubase-contracts.d.ts +87 -0
  9. package/bridge/types/fl-contracts.d.ts +297 -0
  10. package/bridge/types/http-daw-contracts.d.ts +141 -0
  11. package/bridge/types/logic-contracts.d.ts +527 -0
  12. package/bridge/types/plugin-contracts.d.ts +581 -0
  13. package/bridge/types/pro-tools-contracts.d.ts +103 -0
  14. package/bridge/types/provider-declaration.d.ts +122 -0
  15. package/bridge/types/provider-manifest.d.ts +463 -0
  16. package/bridge/types/provider-operations.d.ts +597 -0
  17. package/bridge/types/reaper-contracts.d.ts +217 -0
  18. package/bridge/types/studio-one-contracts.d.ts +125 -0
  19. package/bridge/types/waveform-contracts.d.ts +131 -0
  20. package/cli.mjs +253 -148
  21. package/logic/LogicProMCP +2 -2
  22. package/logic/runtime.json +2 -2
  23. package/package.json +18 -2
  24. package/plugin/.claude-plugin/marketplace.json +1 -0
  25. package/plugin/.claude-plugin/plugin.json +3 -2
  26. package/plugin/.mcp.json +1 -1
  27. package/plugin/README.md +46 -91
  28. package/plugin/THIRD-PARTY-NOTICES.md +997 -2
  29. package/plugin/plugin.json +1 -1
  30. package/plugin/skills/daw/SKILL.md +8 -2
  31. package/plugin/skills/daw/references/ardour.md +7 -2
  32. package/plugin/skills/daw/references/arrangement.md +17 -0
  33. package/plugin/skills/daw/references/connection.md +21 -0
  34. package/plugin/skills/daw/references/drums.md +23 -0
  35. package/plugin/skills/daw/references/editing.md +9 -0
  36. package/plugin/skills/daw/references/mix-check.md +17 -0
  37. package/plugin/skills/daw/references/session-hygiene.md +15 -0
  38. package/plugin/skills/daw/references/theory.md +26 -0
  39. package/skill/SKILL.md +8 -2
  40. package/skill/references/ardour.md +7 -2
  41. package/skill/references/arrangement.md +17 -0
  42. package/skill/references/connection.md +21 -0
  43. package/skill/references/drums.md +23 -0
  44. package/skill/references/editing.md +9 -0
  45. package/skill/references/mix-check.md +17 -0
  46. package/skill/references/session-hygiene.md +15 -0
  47. package/skill/references/theory.md +26 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "dawmcp",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "Connect your agent to local DAW bridges with focused workflow guidance.",
6
6
  "author": {
7
7
  "name": "Maru Audio",
@@ -16,7 +16,8 @@ and native references; do not invent a complete session.
16
16
  Use discovered capabilities. With DAWMCP, request `list_daw_capabilities` with the selected
17
17
  `daw` and `commands: true` only when a native operation needs its exact schema.
18
18
  Do not load every command or DAW reference. For setup or a failed connection,
19
- read [connection](references/connection.md).
19
+ read [connection](references/connection.md). When the user pastes a line such
20
+ as "Connect Web DAW with code 482913", call `connect_web_daw` with that code.
20
21
 
21
22
  Load only the selected DAW's reference when its workflow needs more detail:
22
23
 
@@ -31,7 +32,12 @@ Load only the selected DAW's reference when its workflow needs more detail:
31
32
  - [Pro Tools](references/pro-tools.md)
32
33
  - [Waveform](references/waveform.md)
33
34
 
35
+ For anything placed by bar or harmonic, read [theory](references/theory.md).
34
36
  For edits, read [editing](references/editing.md). For media or rendering, read
35
- [files and export](references/files-and-export.md). Bind changes to fresh project
37
+ [files and export](references/files-and-export.md). For beats, read
38
+ [drums](references/drums.md); for song structure,
39
+ [arrangement](references/arrangement.md); for "anything to tidy?", the read-only
40
+ [mix check](references/mix-check.md); before sharing or exporting,
41
+ [session hygiene](references/session-hygiene.md). Bind changes to fresh project
36
42
  and native target IDs. Read back results; inspect after a timeout before retrying.
37
43
  Missing operations remain unavailable. Core DAW work needs no Maru account.
@@ -9,5 +9,10 @@ Distinguish audio regions from MIDI regions and retain each command's time and
9
9
  channel units. Reconnects and project switches invalidate previous selections.
10
10
 
11
11
  Track, mixer and region access does not establish local-file import or rendering.
12
- Inspect those operations independently. Keep the server restricted to the local
13
- computer and report partial observations and uncertain writes explicitly.
12
+ Inspect those operations independently. Report partial observations and
13
+ uncertain writes explicitly.
14
+
15
+ Ardour's MCP HTTP server (9.5–9.10) has no authentication and listens on every
16
+ network interface. Don't tell the user it is local-only. When they enable it,
17
+ mention keeping it off untrusted networks or blocking port 4820 at the
18
+ firewall, and turning it off afterwards.
@@ -0,0 +1,17 @@
1
+ # Song structure
2
+
3
+ Find sections by marker or region name in the session read's `frame.markers`
4
+ before inferring them from clip positions. If there are none, ask or propose
5
+ markers; add them only with the user's agreement and through a discovered
6
+ marker operation.
7
+
8
+ Typical section lengths are multiples of four or eight bars (an 8-bar verse, a
9
+ 16-bar build, a 1- or 2-bar break), but treat them as starting points for the
10
+ user's genre and tempo, not rules. Convert bars with `musical_time`, which
11
+ follows meter changes. Build energy by adding parts, widening register and
12
+ raising density; drop it by removing the low end or the drums. Describe such
13
+ changes as options before making them.
14
+
15
+ Never overwrite or move existing material to make room. Put a proposed
16
+ arrangement on new tracks or clips, or describe it as a list of sections with
17
+ bar ranges for the user to apply.
@@ -24,3 +24,24 @@ unimplemented or depend on a missing DAW companion.
24
24
  For failures, narrow down client connection, bridge process, DAW companion,
25
25
  permissions and task prerequisites. Use read-only diagnostics first. Reconnects
26
26
  invalidate previous selections; refresh targets before resuming an edit.
27
+
28
+ ## Web DAWs through the browser bridge
29
+
30
+ A web DAW appears as `provider:<id>` with `connection: "browser-bridge"`,
31
+ either because DAWMCP lists it (`pairing.listed`) or because the user added
32
+ it. Its operations come from the connected tab, so its claim lists none
33
+ until a tab connects; list capabilities again after connecting. Its
34
+ `pairing` in `list_daw_capabilities` (and the workflow resource) says what
35
+ to do:
36
+
37
+ - `connected`: a tab is connected; work normally.
38
+ - `waiting`: an added web DAW's tab shows a line such as "Connect Web DAW
39
+ with code 482913". Ask the user to copy it and paste it here, then call
40
+ `connect_web_daw` with that `daw` and code.
41
+ - Otherwise ask the user to open the web DAW and choose Connect agent.
42
+
43
+ When the user pastes such a line, call `connect_web_daw` with the code from
44
+ it. Never guess or reuse a code: a wrong one counts toward a limit. If a
45
+ call says the tab disconnected or now holds another session, the tab
46
+ reconnects on its own: read the session again before retrying a write.
47
+ `npx dawmcp provider forget <id>` makes every browser connect as new.
@@ -0,0 +1,23 @@
1
+ # Drums and grooves
2
+
3
+ Resolve the kit's note mapping before writing. General MIDI drums use 36 kick,
4
+ 38 snare, 42 closed hi-hat, 46 open hi-hat, 49 crash and 51 ride, but many
5
+ samplers and drum racks map pads elsewhere: read the instrument or ask, and
6
+ use numeric pitches.
7
+
8
+ Write a groove as a step pattern on the bar's grid (16 steps in 4/4, 12 in a
9
+ 6/8 bar). Common starting points: four-on-the-floor house (kick every beat,
10
+ open hat on the off-beats), a backbeat (snare on beats 2 and 4) and half-time
11
+ (snare on beat 3). Vary velocity to separate accents from ghost notes rather
12
+ than writing every hit at one level. Apply swing by delaying the off-beat
13
+ sixteenths, and say how much. A genre template is a starting point, not the
14
+ user's style: ask about tempo and feel when the request is open.
15
+
16
+ In FL Studio, a prepared Channel Rack pattern is written with
17
+ `channels.setStepSequence` and read back with `channels.getStepSequence`.
18
+ Steps are on or off per channel, so velocity and swing need the Piano Roll or
19
+ the channel's own settings; say which. A pattern is not yet placed in the
20
+ Playlist.
21
+
22
+ Place each new groove in its own clip or pattern, read it back and report
23
+ the steps or notes written.
@@ -1,5 +1,10 @@
1
1
  # Edit a project
2
2
 
3
+ DAWMCP hides tools whose access the user has not granted. If the request needs
4
+ one, name the access and why, and give the command from `maru://workflow`
5
+ (for example `npx dawmcp allow composition`). The user runs it; never change
6
+ grants yourself. The tool list refreshes on the same connection.
7
+
3
8
  Resolve the native track/clip/region/take/device and inspect initial state. Names
4
9
  and indices may change; refresh after reorders, project switches and reconnects.
5
10
  Keep concurrent DAW interaction outside a focus-dependent sequence. If reliable
@@ -7,6 +12,10 @@ targeting is unavailable, explain the concrete missing selection or manual step.
7
12
 
8
13
  Translate musical intent using the operation's actual units: quarter-note beats,
9
14
  seconds, samples, ticks or native bar positions. Respect tempo/meter changes.
15
+ When the session read has a `frame`, find sections by marker name, place by its
16
+ meter map (each meter's `atBeat` and `bar` anchor the bars that follow), and
17
+ treat "here" or "this loop" as the edit cursor, time selection or loop range.
18
+ Without a meter map, ask for the bar position or meter; never assume 4/4.
10
19
  Use numeric MIDI pitches when octave naming differs. Distinguish launcher clips,
11
20
  timeline regions and transient live MIDI before choosing a write operation.
12
21
 
@@ -0,0 +1,17 @@
1
+ # Mix check
2
+
3
+ A mix check reads and reports. It changes nothing unless the user then asks
4
+ for a specific fix.
5
+
6
+ Read the session and, where available, the mixer state and track plug-ins.
7
+ Report, with track names and IDs:
8
+
9
+ - tracks left muted or soloed, and record-armed tracks
10
+ - faders above 0 dB, and pan settings at the extremes
11
+ - unnamed or default-named tracks, and empty tracks
12
+ - the same plug-in duplicated on one track, or bypassed plug-ins
13
+ - imported loops whose name suggests a tempo other than the session's
14
+
15
+ Say what you could not read: many DAWs expose no meters, automation or
16
+ render, so "nothing clipping" cannot be claimed without a measurement. A
17
+ reading is not a judgment about how the mix sounds.
@@ -0,0 +1,15 @@
1
+ # Tidy a session before sharing
2
+
3
+ Ask what the session is for (sharing stems, sending to a collaborator,
4
+ archiving) before proposing changes.
5
+
6
+ Propose, then apply only what the user accepts: names for unnamed tracks
7
+ taken from their instrument or content, removing empty tracks, and track
8
+ colors where the DAW exposes them. Rename and delete through discovered
9
+ operations only, one change at a time, and read back each.
10
+
11
+ Collecting media, consolidating, freezing and exporting are mostly manual in
12
+ the DAWs DAWMCP connects to. Check the DAW's reference and
13
+ [files and export](files-and-export.md) for what is callable, and give the
14
+ exact menu steps for the rest. Never claim a session is ready to share
15
+ without saying what was not checked.
@@ -0,0 +1,26 @@
1
+ # Bars, keys and parts
2
+
3
+ Place by bar only through the session's meter map. Read the session, then pass
4
+ its `frame.meters` unchanged to `musical_time` with the bars you need: it
5
+ returns the zero-based `atBeat` that DAW writes take, the meter and the bar
6
+ length. Measure a section by converting its first bar and the bar after it.
7
+ Beats count in the meter's notated unit, so beat 4 of 6/8 is the fourth
8
+ eighth. Without a meter map, ask for the meter or the exact position; never
9
+ assume 4/4.
10
+
11
+ Before writing a part against existing material, read its notes and run
12
+ `analyze_notes` with the meters and the clip's project offset. Use the key and
13
+ the chord per bar it reports. A key strength below about 0.6 is ambiguous:
14
+ name the top candidates or ask. Out-of-key notes may be intended; mention them
15
+ rather than "fixing" them.
16
+
17
+ `generate_notes` drafts a block-chord part, a bassline or a melody from chord
18
+ symbols (or a generated progression in a scale) with a seed. Keep the seed and
19
+ the returned chords, so a second part can follow the first and the user can
20
+ ask for "the same, but another seed". Its output is `startBeat`/`durationBeats`
21
+ from the part's start: add the target bar's `atBeat` when the DAW write is
22
+ project-relative, and fit it to the clip length.
23
+
24
+ Write each idea to its own new clip or track so the user can compare and
25
+ delete it. These operations are arithmetic and seeded drafts. They do not
26
+ judge whether a part sounds good: say what you placed and let the user listen.
package/skill/SKILL.md CHANGED
@@ -16,7 +16,8 @@ and native references; do not invent a complete session.
16
16
  Use discovered capabilities. With DAWMCP, request `list_daw_capabilities` with the selected
17
17
  `daw` and `commands: true` only when a native operation needs its exact schema.
18
18
  Do not load every command or DAW reference. For setup or a failed connection,
19
- read [connection](references/connection.md).
19
+ read [connection](references/connection.md). When the user pastes a line such
20
+ as "Connect Web DAW with code 482913", call `connect_web_daw` with that code.
20
21
 
21
22
  Load only the selected DAW's reference when its workflow needs more detail:
22
23
 
@@ -31,7 +32,12 @@ Load only the selected DAW's reference when its workflow needs more detail:
31
32
  - [Pro Tools](references/pro-tools.md)
32
33
  - [Waveform](references/waveform.md)
33
34
 
35
+ For anything placed by bar or harmonic, read [theory](references/theory.md).
34
36
  For edits, read [editing](references/editing.md). For media or rendering, read
35
- [files and export](references/files-and-export.md). Bind changes to fresh project
37
+ [files and export](references/files-and-export.md). For beats, read
38
+ [drums](references/drums.md); for song structure,
39
+ [arrangement](references/arrangement.md); for "anything to tidy?", the read-only
40
+ [mix check](references/mix-check.md); before sharing or exporting,
41
+ [session hygiene](references/session-hygiene.md). Bind changes to fresh project
36
42
  and native target IDs. Read back results; inspect after a timeout before retrying.
37
43
  Missing operations remain unavailable. Core DAW work needs no Maru account.
@@ -9,5 +9,10 @@ Distinguish audio regions from MIDI regions and retain each command's time and
9
9
  channel units. Reconnects and project switches invalidate previous selections.
10
10
 
11
11
  Track, mixer and region access does not establish local-file import or rendering.
12
- Inspect those operations independently. Keep the server restricted to the local
13
- computer and report partial observations and uncertain writes explicitly.
12
+ Inspect those operations independently. Report partial observations and
13
+ uncertain writes explicitly.
14
+
15
+ Ardour's MCP HTTP server (9.5–9.10) has no authentication and listens on every
16
+ network interface. Don't tell the user it is local-only. When they enable it,
17
+ mention keeping it off untrusted networks or blocking port 4820 at the
18
+ firewall, and turning it off afterwards.
@@ -0,0 +1,17 @@
1
+ # Song structure
2
+
3
+ Find sections by marker or region name in the session read's `frame.markers`
4
+ before inferring them from clip positions. If there are none, ask or propose
5
+ markers; add them only with the user's agreement and through a discovered
6
+ marker operation.
7
+
8
+ Typical section lengths are multiples of four or eight bars (an 8-bar verse, a
9
+ 16-bar build, a 1- or 2-bar break), but treat them as starting points for the
10
+ user's genre and tempo, not rules. Convert bars with `musical_time`, which
11
+ follows meter changes. Build energy by adding parts, widening register and
12
+ raising density; drop it by removing the low end or the drums. Describe such
13
+ changes as options before making them.
14
+
15
+ Never overwrite or move existing material to make room. Put a proposed
16
+ arrangement on new tracks or clips, or describe it as a list of sections with
17
+ bar ranges for the user to apply.
@@ -24,3 +24,24 @@ unimplemented or depend on a missing DAW companion.
24
24
  For failures, narrow down client connection, bridge process, DAW companion,
25
25
  permissions and task prerequisites. Use read-only diagnostics first. Reconnects
26
26
  invalidate previous selections; refresh targets before resuming an edit.
27
+
28
+ ## Web DAWs through the browser bridge
29
+
30
+ A web DAW appears as `provider:<id>` with `connection: "browser-bridge"`,
31
+ either because DAWMCP lists it (`pairing.listed`) or because the user added
32
+ it. Its operations come from the connected tab, so its claim lists none
33
+ until a tab connects; list capabilities again after connecting. Its
34
+ `pairing` in `list_daw_capabilities` (and the workflow resource) says what
35
+ to do:
36
+
37
+ - `connected`: a tab is connected; work normally.
38
+ - `waiting`: an added web DAW's tab shows a line such as "Connect Web DAW
39
+ with code 482913". Ask the user to copy it and paste it here, then call
40
+ `connect_web_daw` with that `daw` and code.
41
+ - Otherwise ask the user to open the web DAW and choose Connect agent.
42
+
43
+ When the user pastes such a line, call `connect_web_daw` with the code from
44
+ it. Never guess or reuse a code: a wrong one counts toward a limit. If a
45
+ call says the tab disconnected or now holds another session, the tab
46
+ reconnects on its own: read the session again before retrying a write.
47
+ `npx dawmcp provider forget <id>` makes every browser connect as new.
@@ -0,0 +1,23 @@
1
+ # Drums and grooves
2
+
3
+ Resolve the kit's note mapping before writing. General MIDI drums use 36 kick,
4
+ 38 snare, 42 closed hi-hat, 46 open hi-hat, 49 crash and 51 ride, but many
5
+ samplers and drum racks map pads elsewhere: read the instrument or ask, and
6
+ use numeric pitches.
7
+
8
+ Write a groove as a step pattern on the bar's grid (16 steps in 4/4, 12 in a
9
+ 6/8 bar). Common starting points: four-on-the-floor house (kick every beat,
10
+ open hat on the off-beats), a backbeat (snare on beats 2 and 4) and half-time
11
+ (snare on beat 3). Vary velocity to separate accents from ghost notes rather
12
+ than writing every hit at one level. Apply swing by delaying the off-beat
13
+ sixteenths, and say how much. A genre template is a starting point, not the
14
+ user's style: ask about tempo and feel when the request is open.
15
+
16
+ In FL Studio, a prepared Channel Rack pattern is written with
17
+ `channels.setStepSequence` and read back with `channels.getStepSequence`.
18
+ Steps are on or off per channel, so velocity and swing need the Piano Roll or
19
+ the channel's own settings; say which. A pattern is not yet placed in the
20
+ Playlist.
21
+
22
+ Place each new groove in its own clip or pattern, read it back and report
23
+ the steps or notes written.
@@ -1,5 +1,10 @@
1
1
  # Edit a project
2
2
 
3
+ DAWMCP hides tools whose access the user has not granted. If the request needs
4
+ one, name the access and why, and give the command from `maru://workflow`
5
+ (for example `npx dawmcp allow composition`). The user runs it; never change
6
+ grants yourself. The tool list refreshes on the same connection.
7
+
3
8
  Resolve the native track/clip/region/take/device and inspect initial state. Names
4
9
  and indices may change; refresh after reorders, project switches and reconnects.
5
10
  Keep concurrent DAW interaction outside a focus-dependent sequence. If reliable
@@ -7,6 +12,10 @@ targeting is unavailable, explain the concrete missing selection or manual step.
7
12
 
8
13
  Translate musical intent using the operation's actual units: quarter-note beats,
9
14
  seconds, samples, ticks or native bar positions. Respect tempo/meter changes.
15
+ When the session read has a `frame`, find sections by marker name, place by its
16
+ meter map (each meter's `atBeat` and `bar` anchor the bars that follow), and
17
+ treat "here" or "this loop" as the edit cursor, time selection or loop range.
18
+ Without a meter map, ask for the bar position or meter; never assume 4/4.
10
19
  Use numeric MIDI pitches when octave naming differs. Distinguish launcher clips,
11
20
  timeline regions and transient live MIDI before choosing a write operation.
12
21
 
@@ -0,0 +1,17 @@
1
+ # Mix check
2
+
3
+ A mix check reads and reports. It changes nothing unless the user then asks
4
+ for a specific fix.
5
+
6
+ Read the session and, where available, the mixer state and track plug-ins.
7
+ Report, with track names and IDs:
8
+
9
+ - tracks left muted or soloed, and record-armed tracks
10
+ - faders above 0 dB, and pan settings at the extremes
11
+ - unnamed or default-named tracks, and empty tracks
12
+ - the same plug-in duplicated on one track, or bypassed plug-ins
13
+ - imported loops whose name suggests a tempo other than the session's
14
+
15
+ Say what you could not read: many DAWs expose no meters, automation or
16
+ render, so "nothing clipping" cannot be claimed without a measurement. A
17
+ reading is not a judgment about how the mix sounds.
@@ -0,0 +1,15 @@
1
+ # Tidy a session before sharing
2
+
3
+ Ask what the session is for (sharing stems, sending to a collaborator,
4
+ archiving) before proposing changes.
5
+
6
+ Propose, then apply only what the user accepts: names for unnamed tracks
7
+ taken from their instrument or content, removing empty tracks, and track
8
+ colors where the DAW exposes them. Rename and delete through discovered
9
+ operations only, one change at a time, and read back each.
10
+
11
+ Collecting media, consolidating, freezing and exporting are mostly manual in
12
+ the DAWs DAWMCP connects to. Check the DAW's reference and
13
+ [files and export](files-and-export.md) for what is callable, and give the
14
+ exact menu steps for the rest. Never claim a session is ready to share
15
+ without saying what was not checked.
@@ -0,0 +1,26 @@
1
+ # Bars, keys and parts
2
+
3
+ Place by bar only through the session's meter map. Read the session, then pass
4
+ its `frame.meters` unchanged to `musical_time` with the bars you need: it
5
+ returns the zero-based `atBeat` that DAW writes take, the meter and the bar
6
+ length. Measure a section by converting its first bar and the bar after it.
7
+ Beats count in the meter's notated unit, so beat 4 of 6/8 is the fourth
8
+ eighth. Without a meter map, ask for the meter or the exact position; never
9
+ assume 4/4.
10
+
11
+ Before writing a part against existing material, read its notes and run
12
+ `analyze_notes` with the meters and the clip's project offset. Use the key and
13
+ the chord per bar it reports. A key strength below about 0.6 is ambiguous:
14
+ name the top candidates or ask. Out-of-key notes may be intended; mention them
15
+ rather than "fixing" them.
16
+
17
+ `generate_notes` drafts a block-chord part, a bassline or a melody from chord
18
+ symbols (or a generated progression in a scale) with a seed. Keep the seed and
19
+ the returned chords, so a second part can follow the first and the user can
20
+ ask for "the same, but another seed". Its output is `startBeat`/`durationBeats`
21
+ from the part's start: add the target bar's `atBeat` when the DAW write is
22
+ project-relative, and fit it to the clip length.
23
+
24
+ Write each idea to its own new clip or track so the user can compare and
25
+ delete it. These operations are arithmetic and seeded drafts. They do not
26
+ judge whether a part sounds good: say what you placed and let the user listen.