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.
- package/README.md +46 -91
- package/THIRD-PARTY-NOTICES.md +997 -2
- package/bridge/index.mjs +62 -0
- package/bridge/types/browser-bridge-client.d.ts +134 -0
- package/bridge/types/browser-bridge-protocol.d.ts +150 -0
- package/bridge/types/catalog.d.ts +106 -0
- package/bridge/types/contracts.d.ts +3330 -0
- package/bridge/types/cubase-contracts.d.ts +87 -0
- package/bridge/types/fl-contracts.d.ts +297 -0
- package/bridge/types/http-daw-contracts.d.ts +141 -0
- package/bridge/types/logic-contracts.d.ts +527 -0
- package/bridge/types/plugin-contracts.d.ts +581 -0
- package/bridge/types/pro-tools-contracts.d.ts +103 -0
- package/bridge/types/provider-declaration.d.ts +122 -0
- package/bridge/types/provider-manifest.d.ts +463 -0
- package/bridge/types/provider-operations.d.ts +597 -0
- package/bridge/types/reaper-contracts.d.ts +217 -0
- package/bridge/types/studio-one-contracts.d.ts +125 -0
- package/bridge/types/waveform-contracts.d.ts +131 -0
- package/cli.mjs +253 -148
- package/logic/LogicProMCP +2 -2
- package/logic/runtime.json +2 -2
- package/package.json +18 -2
- package/plugin/.claude-plugin/marketplace.json +1 -0
- package/plugin/.claude-plugin/plugin.json +3 -2
- package/plugin/.mcp.json +1 -1
- package/plugin/README.md +46 -91
- package/plugin/THIRD-PARTY-NOTICES.md +997 -2
- package/plugin/plugin.json +1 -1
- package/plugin/skills/daw/SKILL.md +8 -2
- package/plugin/skills/daw/references/ardour.md +7 -2
- package/plugin/skills/daw/references/arrangement.md +17 -0
- package/plugin/skills/daw/references/connection.md +21 -0
- package/plugin/skills/daw/references/drums.md +23 -0
- package/plugin/skills/daw/references/editing.md +9 -0
- package/plugin/skills/daw/references/mix-check.md +17 -0
- package/plugin/skills/daw/references/session-hygiene.md +15 -0
- package/plugin/skills/daw/references/theory.md +26 -0
- package/skill/SKILL.md +8 -2
- package/skill/references/ardour.md +7 -2
- package/skill/references/arrangement.md +17 -0
- package/skill/references/connection.md +21 -0
- package/skill/references/drums.md +23 -0
- package/skill/references/editing.md +9 -0
- package/skill/references/mix-check.md +17 -0
- package/skill/references/session-hygiene.md +15 -0
- package/skill/references/theory.md +26 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a provider says it does: its portable operations, session guarantees,
|
|
3
|
+
* session-read extras and native tools. A local provider declares it in its
|
|
4
|
+
* manifest (`provider-manifest.ts`). A web DAW's page reports it when it
|
|
5
|
+
* connects, built by `dawmcp/bridge` from the handlers the page passes, so the
|
|
6
|
+
* web DAW's manifest holds only what DAWMCP must trust before a page connects.
|
|
7
|
+
* DAWMCP applies the same rules to both. Browser-safe.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
/** Optional `frame` fields of the portable session read. */
|
|
11
|
+
export declare const FRAME_FIELDS: readonly ["meters", "tempos", "markers", "loop", "timeSelection", "editCursor", "playhead"];
|
|
12
|
+
export type FrameField = (typeof FRAME_FIELDS)[number];
|
|
13
|
+
/** Portable operations a provider can implement; the rest belong to DAWMCP itself. */
|
|
14
|
+
export declare const PROVIDER_OPERATIONS: [string, ...string[]];
|
|
15
|
+
/** The safe-write guarantees from the integration guide. */
|
|
16
|
+
export declare const SessionGuaranteesSchema: z.ZodObject<{
|
|
17
|
+
stableId: z.ZodBoolean;
|
|
18
|
+
revision: z.ZodBoolean;
|
|
19
|
+
writePreconditions: z.ZodBoolean;
|
|
20
|
+
idempotentRequests: z.ZodBoolean;
|
|
21
|
+
undoPerWrite: z.ZodBoolean;
|
|
22
|
+
changeEvents: z.ZodBoolean;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export type SessionGuarantees = z.infer<typeof SessionGuaranteesSchema>;
|
|
25
|
+
export declare const NativeDeclarationSchema: z.ZodObject<{
|
|
26
|
+
tool: z.ZodString;
|
|
27
|
+
category: z.ZodEnum<{
|
|
28
|
+
context: "context";
|
|
29
|
+
mixing: "mixing";
|
|
30
|
+
composition: "composition";
|
|
31
|
+
transport: "transport";
|
|
32
|
+
media: "media";
|
|
33
|
+
project: "project";
|
|
34
|
+
}>;
|
|
35
|
+
description: z.ZodString;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
/** The declaration as a manifest holds it. */
|
|
38
|
+
export declare const ProviderDeclarationSchema: z.ZodObject<{
|
|
39
|
+
operations: z.ZodRecord<z.ZodEnum<{
|
|
40
|
+
[x: string]: string;
|
|
41
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
42
|
+
tool: z.ZodString;
|
|
43
|
+
support: z.ZodEnum<{
|
|
44
|
+
experimental: "experimental";
|
|
45
|
+
validated: "validated";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
session: z.ZodObject<{
|
|
49
|
+
stableId: z.ZodBoolean;
|
|
50
|
+
revision: z.ZodBoolean;
|
|
51
|
+
writePreconditions: z.ZodBoolean;
|
|
52
|
+
idempotentRequests: z.ZodBoolean;
|
|
53
|
+
undoPerWrite: z.ZodBoolean;
|
|
54
|
+
changeEvents: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
frame: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
57
|
+
tempos: "tempos";
|
|
58
|
+
meters: "meters";
|
|
59
|
+
markers: "markers";
|
|
60
|
+
loop: "loop";
|
|
61
|
+
timeSelection: "timeSelection";
|
|
62
|
+
editCursor: "editCursor";
|
|
63
|
+
playhead: "playhead";
|
|
64
|
+
}>>>;
|
|
65
|
+
trackKinds: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
native: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
67
|
+
tool: z.ZodString;
|
|
68
|
+
category: z.ZodEnum<{
|
|
69
|
+
context: "context";
|
|
70
|
+
mixing: "mixing";
|
|
71
|
+
composition: "composition";
|
|
72
|
+
transport: "transport";
|
|
73
|
+
media: "media";
|
|
74
|
+
project: "project";
|
|
75
|
+
}>;
|
|
76
|
+
description: z.ZodString;
|
|
77
|
+
}, z.core.$strict>>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export type ProviderDeclaration = z.output<typeof ProviderDeclarationSchema>;
|
|
80
|
+
/**
|
|
81
|
+
* The declaration a web DAW's page reports in `hello`. Each operation answers
|
|
82
|
+
* under its own name, and a page's operations are experimental: Maru's
|
|
83
|
+
* catalog, not the page, records validation.
|
|
84
|
+
*/
|
|
85
|
+
export declare const BridgeDeclarationSchema: z.ZodObject<{
|
|
86
|
+
operations: z.ZodArray<z.ZodEnum<{
|
|
87
|
+
[x: string]: string;
|
|
88
|
+
}>>;
|
|
89
|
+
session: z.ZodObject<{
|
|
90
|
+
stableId: z.ZodBoolean;
|
|
91
|
+
revision: z.ZodBoolean;
|
|
92
|
+
writePreconditions: z.ZodBoolean;
|
|
93
|
+
idempotentRequests: z.ZodBoolean;
|
|
94
|
+
undoPerWrite: z.ZodBoolean;
|
|
95
|
+
changeEvents: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
frame: z.ZodArray<z.ZodEnum<{
|
|
98
|
+
tempos: "tempos";
|
|
99
|
+
meters: "meters";
|
|
100
|
+
markers: "markers";
|
|
101
|
+
loop: "loop";
|
|
102
|
+
timeSelection: "timeSelection";
|
|
103
|
+
editCursor: "editCursor";
|
|
104
|
+
playhead: "playhead";
|
|
105
|
+
}>>;
|
|
106
|
+
trackKinds: z.ZodBoolean;
|
|
107
|
+
native: z.ZodArray<z.ZodObject<{
|
|
108
|
+
tool: z.ZodString;
|
|
109
|
+
category: z.ZodEnum<{
|
|
110
|
+
context: "context";
|
|
111
|
+
mixing: "mixing";
|
|
112
|
+
composition: "composition";
|
|
113
|
+
transport: "transport";
|
|
114
|
+
media: "media";
|
|
115
|
+
project: "project";
|
|
116
|
+
}>;
|
|
117
|
+
description: z.ZodString;
|
|
118
|
+
}, z.core.$strict>>;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
export type BridgeDeclaration = z.infer<typeof BridgeDeclarationSchema>;
|
|
121
|
+
/** A page's reported declaration in the manifest's shape. */
|
|
122
|
+
export declare function fromBridgeDeclaration(value: BridgeDeclaration): ProviderDeclaration;
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A DAW or online platform's own declaration of how DAWMCP connects to it and
|
|
3
|
+
* what it can do. Providers author it; `dawmcp provider check` validates it
|
|
4
|
+
* and explains what DAWMCP would and would not allow. The canonical catalog
|
|
5
|
+
* (`catalog.ts`) records Maru's evidence; a manifest is the provider's claim.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { FRAME_FIELDS, type ProviderDeclaration } from "./provider-declaration.js";
|
|
9
|
+
export { FRAME_FIELDS };
|
|
10
|
+
export declare const PROVIDER_MANIFEST_SCHEMA = "https://dawmcp.com/schemas/provider-v1.json";
|
|
11
|
+
/** Portable operations that change the session; they need safe-write guarantees. */
|
|
12
|
+
export declare const WRITE_OPERATIONS: readonly ["control_daw_transport", "create_daw_track", "write_daw_midi", "import_daw_audio", "insert_daw_plugin", "set_daw_plugin_parameter"];
|
|
13
|
+
/**
|
|
14
|
+
* A DAW reached over its own MCP surface. The manifest carries its whole
|
|
15
|
+
* declaration, since DAWMCP reads it before connecting.
|
|
16
|
+
*/
|
|
17
|
+
export declare const LocalProviderManifestSchema: z.ZodObject<{
|
|
18
|
+
setup: z.ZodArray<z.ZodString>;
|
|
19
|
+
operations: z.ZodRecord<z.ZodEnum<{
|
|
20
|
+
[x: string]: string;
|
|
21
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
22
|
+
tool: z.ZodString;
|
|
23
|
+
support: z.ZodEnum<{
|
|
24
|
+
experimental: "experimental";
|
|
25
|
+
validated: "validated";
|
|
26
|
+
}>;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
session: z.ZodObject<{
|
|
29
|
+
stableId: z.ZodBoolean;
|
|
30
|
+
revision: z.ZodBoolean;
|
|
31
|
+
writePreconditions: z.ZodBoolean;
|
|
32
|
+
idempotentRequests: z.ZodBoolean;
|
|
33
|
+
undoPerWrite: z.ZodBoolean;
|
|
34
|
+
changeEvents: z.ZodBoolean;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
frame: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
37
|
+
tempos: "tempos";
|
|
38
|
+
meters: "meters";
|
|
39
|
+
markers: "markers";
|
|
40
|
+
loop: "loop";
|
|
41
|
+
timeSelection: "timeSelection";
|
|
42
|
+
editCursor: "editCursor";
|
|
43
|
+
playhead: "playhead";
|
|
44
|
+
}>>>;
|
|
45
|
+
trackKinds: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
native: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
47
|
+
tool: z.ZodString;
|
|
48
|
+
category: z.ZodEnum<{
|
|
49
|
+
context: "context";
|
|
50
|
+
mixing: "mixing";
|
|
51
|
+
composition: "composition";
|
|
52
|
+
transport: "transport";
|
|
53
|
+
media: "media";
|
|
54
|
+
project: "project";
|
|
55
|
+
}>;
|
|
56
|
+
description: z.ZodString;
|
|
57
|
+
}, z.core.$strict>>>;
|
|
58
|
+
kind: z.ZodEnum<{
|
|
59
|
+
desktop: "desktop";
|
|
60
|
+
web: "web";
|
|
61
|
+
}>;
|
|
62
|
+
versions: z.ZodObject<{
|
|
63
|
+
app: z.ZodString;
|
|
64
|
+
surface: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
connection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"local-mcp">;
|
|
68
|
+
url: z.ZodURL;
|
|
69
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<"none">;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"token-file">;
|
|
73
|
+
path: z.ZodString;
|
|
74
|
+
}, z.core.$strict>], "type">;
|
|
75
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<"remote-mcp">;
|
|
78
|
+
url: z.ZodURL;
|
|
79
|
+
auth: z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"oauth">;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
}, z.core.$strict>], "type">;
|
|
83
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
homepage: z.ZodURL;
|
|
87
|
+
license: z.ZodOptional<z.ZodString>;
|
|
88
|
+
contact: z.ZodString;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export type LocalProviderManifest = z.infer<typeof LocalProviderManifestSchema>;
|
|
91
|
+
/**
|
|
92
|
+
* A web DAW: only what DAWMCP must trust before a page connects. Its
|
|
93
|
+
* versions and declaration come from the page when it connects.
|
|
94
|
+
*/
|
|
95
|
+
export declare const WebProviderManifestSchema: z.ZodObject<{
|
|
96
|
+
kind: z.ZodLiteral<"web">;
|
|
97
|
+
connection: z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"browser-bridge">;
|
|
99
|
+
origins: z.ZodArray<z.ZodURL>;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
homepage: z.ZodURL;
|
|
106
|
+
license: z.ZodOptional<z.ZodString>;
|
|
107
|
+
contact: z.ZodString;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
export type WebProviderManifest = z.infer<typeof WebProviderManifestSchema>;
|
|
110
|
+
export declare const ProviderManifestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
111
|
+
kind: z.ZodLiteral<"web">;
|
|
112
|
+
connection: z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"browser-bridge">;
|
|
114
|
+
origins: z.ZodArray<z.ZodURL>;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
name: z.ZodString;
|
|
120
|
+
homepage: z.ZodURL;
|
|
121
|
+
license: z.ZodOptional<z.ZodString>;
|
|
122
|
+
contact: z.ZodString;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
setup: z.ZodArray<z.ZodString>;
|
|
125
|
+
operations: z.ZodRecord<z.ZodEnum<{
|
|
126
|
+
[x: string]: string;
|
|
127
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
128
|
+
tool: z.ZodString;
|
|
129
|
+
support: z.ZodEnum<{
|
|
130
|
+
experimental: "experimental";
|
|
131
|
+
validated: "validated";
|
|
132
|
+
}>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
134
|
+
session: z.ZodObject<{
|
|
135
|
+
stableId: z.ZodBoolean;
|
|
136
|
+
revision: z.ZodBoolean;
|
|
137
|
+
writePreconditions: z.ZodBoolean;
|
|
138
|
+
idempotentRequests: z.ZodBoolean;
|
|
139
|
+
undoPerWrite: z.ZodBoolean;
|
|
140
|
+
changeEvents: z.ZodBoolean;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
frame: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
143
|
+
tempos: "tempos";
|
|
144
|
+
meters: "meters";
|
|
145
|
+
markers: "markers";
|
|
146
|
+
loop: "loop";
|
|
147
|
+
timeSelection: "timeSelection";
|
|
148
|
+
editCursor: "editCursor";
|
|
149
|
+
playhead: "playhead";
|
|
150
|
+
}>>>;
|
|
151
|
+
trackKinds: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
+
native: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
153
|
+
tool: z.ZodString;
|
|
154
|
+
category: z.ZodEnum<{
|
|
155
|
+
context: "context";
|
|
156
|
+
mixing: "mixing";
|
|
157
|
+
composition: "composition";
|
|
158
|
+
transport: "transport";
|
|
159
|
+
media: "media";
|
|
160
|
+
project: "project";
|
|
161
|
+
}>;
|
|
162
|
+
description: z.ZodString;
|
|
163
|
+
}, z.core.$strict>>>;
|
|
164
|
+
kind: z.ZodEnum<{
|
|
165
|
+
desktop: "desktop";
|
|
166
|
+
web: "web";
|
|
167
|
+
}>;
|
|
168
|
+
versions: z.ZodObject<{
|
|
169
|
+
app: z.ZodString;
|
|
170
|
+
surface: z.ZodString;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
connection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"local-mcp">;
|
|
174
|
+
url: z.ZodURL;
|
|
175
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
|
+
type: z.ZodLiteral<"none">;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"token-file">;
|
|
179
|
+
path: z.ZodString;
|
|
180
|
+
}, z.core.$strict>], "type">;
|
|
181
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"remote-mcp">;
|
|
184
|
+
url: z.ZodURL;
|
|
185
|
+
auth: z.ZodObject<{
|
|
186
|
+
type: z.ZodLiteral<"oauth">;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
}, z.core.$strict>], "type">;
|
|
189
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
homepage: z.ZodURL;
|
|
193
|
+
license: z.ZodOptional<z.ZodString>;
|
|
194
|
+
contact: z.ZodString;
|
|
195
|
+
}, z.core.$strict>]>;
|
|
196
|
+
export type ProviderManifest = z.infer<typeof ProviderManifestSchema>;
|
|
197
|
+
export declare function isWebManifest(manifest: ProviderManifest): manifest is WebProviderManifest;
|
|
198
|
+
/** A manifest the user added with `dawmcp provider add`, and what they consented to. */
|
|
199
|
+
export declare const AddedProviderSchema: z.ZodObject<{
|
|
200
|
+
manifest: z.ZodUnion<readonly [z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"web">;
|
|
202
|
+
connection: z.ZodObject<{
|
|
203
|
+
type: z.ZodLiteral<"browser-bridge">;
|
|
204
|
+
origins: z.ZodArray<z.ZodURL>;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
207
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
homepage: z.ZodURL;
|
|
211
|
+
license: z.ZodOptional<z.ZodString>;
|
|
212
|
+
contact: z.ZodString;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
setup: z.ZodArray<z.ZodString>;
|
|
215
|
+
operations: z.ZodRecord<z.ZodEnum<{
|
|
216
|
+
[x: string]: string;
|
|
217
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
218
|
+
tool: z.ZodString;
|
|
219
|
+
support: z.ZodEnum<{
|
|
220
|
+
experimental: "experimental";
|
|
221
|
+
validated: "validated";
|
|
222
|
+
}>;
|
|
223
|
+
}, z.core.$strict>>;
|
|
224
|
+
session: z.ZodObject<{
|
|
225
|
+
stableId: z.ZodBoolean;
|
|
226
|
+
revision: z.ZodBoolean;
|
|
227
|
+
writePreconditions: z.ZodBoolean;
|
|
228
|
+
idempotentRequests: z.ZodBoolean;
|
|
229
|
+
undoPerWrite: z.ZodBoolean;
|
|
230
|
+
changeEvents: z.ZodBoolean;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
frame: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
233
|
+
tempos: "tempos";
|
|
234
|
+
meters: "meters";
|
|
235
|
+
markers: "markers";
|
|
236
|
+
loop: "loop";
|
|
237
|
+
timeSelection: "timeSelection";
|
|
238
|
+
editCursor: "editCursor";
|
|
239
|
+
playhead: "playhead";
|
|
240
|
+
}>>>;
|
|
241
|
+
trackKinds: z.ZodDefault<z.ZodBoolean>;
|
|
242
|
+
native: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
243
|
+
tool: z.ZodString;
|
|
244
|
+
category: z.ZodEnum<{
|
|
245
|
+
context: "context";
|
|
246
|
+
mixing: "mixing";
|
|
247
|
+
composition: "composition";
|
|
248
|
+
transport: "transport";
|
|
249
|
+
media: "media";
|
|
250
|
+
project: "project";
|
|
251
|
+
}>;
|
|
252
|
+
description: z.ZodString;
|
|
253
|
+
}, z.core.$strict>>>;
|
|
254
|
+
kind: z.ZodEnum<{
|
|
255
|
+
desktop: "desktop";
|
|
256
|
+
web: "web";
|
|
257
|
+
}>;
|
|
258
|
+
versions: z.ZodObject<{
|
|
259
|
+
app: z.ZodString;
|
|
260
|
+
surface: z.ZodString;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
connection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"local-mcp">;
|
|
264
|
+
url: z.ZodURL;
|
|
265
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"none">;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"token-file">;
|
|
269
|
+
path: z.ZodString;
|
|
270
|
+
}, z.core.$strict>], "type">;
|
|
271
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
272
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
+
type: z.ZodLiteral<"remote-mcp">;
|
|
274
|
+
url: z.ZodURL;
|
|
275
|
+
auth: z.ZodObject<{
|
|
276
|
+
type: z.ZodLiteral<"oauth">;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
}, z.core.$strict>], "type">;
|
|
279
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
name: z.ZodString;
|
|
282
|
+
homepage: z.ZodURL;
|
|
283
|
+
license: z.ZodOptional<z.ZodString>;
|
|
284
|
+
contact: z.ZodString;
|
|
285
|
+
}, z.core.$strict>]>;
|
|
286
|
+
consent: z.ZodObject<{
|
|
287
|
+
tokenFile: z.ZodBoolean;
|
|
288
|
+
}, z.core.$strict>;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
export type AddedProvider = z.infer<typeof AddedProviderSchema>;
|
|
291
|
+
/** Guarantees every write needs; the others are reported but do not withhold. */
|
|
292
|
+
export declare const WRITE_GUARANTEES: readonly ["stableId", "revision", "writePreconditions"];
|
|
293
|
+
/** The write guarantees a manifest's session lacks; writes are withheld while any is missing. */
|
|
294
|
+
export declare function missingWriteGuarantees(declaration: Pick<ProviderDeclaration, "session">): (typeof WRITE_GUARANTEES)[number][];
|
|
295
|
+
export type ManifestReport = {
|
|
296
|
+
valid: boolean;
|
|
297
|
+
/** Schema errors: the manifest cannot be used. */
|
|
298
|
+
errors: string[];
|
|
299
|
+
/** What DAWMCP would withhold or refuse, and why. */
|
|
300
|
+
findings: string[];
|
|
301
|
+
/** Catalog features the declared operations would cover. */
|
|
302
|
+
features: string[];
|
|
303
|
+
writes: {
|
|
304
|
+
declared: string[];
|
|
305
|
+
allowed: boolean;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
/** What DAWMCP withholds or warns about for a declaration, from a manifest or a connected page. */
|
|
309
|
+
export declare function checkDeclaration(declaration: ProviderDeclaration): Pick<ManifestReport, "findings" | "features" | "writes">;
|
|
310
|
+
/** What a web DAW reports before a page connects. */
|
|
311
|
+
export declare const WEB_DAW_PENDING = "Its operations, guarantees and native tools appear once a tab connects: the page reports them from its handlers.";
|
|
312
|
+
/** Validate a provider's manifest and explain what DAWMCP would do with it. */
|
|
313
|
+
export declare function checkProviderManifest(value: unknown): ManifestReport;
|
|
314
|
+
/** The JSON Schema published for editors and validators; the check above stays authoritative. */
|
|
315
|
+
export declare function providerManifestJsonSchema(): {
|
|
316
|
+
"~standard": z.core.ZodStandardSchemaWithJSON<z.ZodUnion<readonly [z.ZodObject<{
|
|
317
|
+
kind: z.ZodLiteral<"web">;
|
|
318
|
+
connection: z.ZodObject<{
|
|
319
|
+
type: z.ZodLiteral<"browser-bridge">;
|
|
320
|
+
origins: z.ZodArray<z.ZodURL>;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
323
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
homepage: z.ZodURL;
|
|
327
|
+
license: z.ZodOptional<z.ZodString>;
|
|
328
|
+
contact: z.ZodString;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
+
setup: z.ZodArray<z.ZodString>;
|
|
331
|
+
operations: z.ZodRecord<z.ZodEnum<{
|
|
332
|
+
[x: string]: string;
|
|
333
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
334
|
+
tool: z.ZodString;
|
|
335
|
+
support: z.ZodEnum<{
|
|
336
|
+
experimental: "experimental";
|
|
337
|
+
validated: "validated";
|
|
338
|
+
}>;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
session: z.ZodObject<{
|
|
341
|
+
stableId: z.ZodBoolean;
|
|
342
|
+
revision: z.ZodBoolean;
|
|
343
|
+
writePreconditions: z.ZodBoolean;
|
|
344
|
+
idempotentRequests: z.ZodBoolean;
|
|
345
|
+
undoPerWrite: z.ZodBoolean;
|
|
346
|
+
changeEvents: z.ZodBoolean;
|
|
347
|
+
}, z.core.$strict>;
|
|
348
|
+
frame: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
349
|
+
tempos: "tempos";
|
|
350
|
+
meters: "meters";
|
|
351
|
+
markers: "markers";
|
|
352
|
+
loop: "loop";
|
|
353
|
+
timeSelection: "timeSelection";
|
|
354
|
+
editCursor: "editCursor";
|
|
355
|
+
playhead: "playhead";
|
|
356
|
+
}>>>;
|
|
357
|
+
trackKinds: z.ZodDefault<z.ZodBoolean>;
|
|
358
|
+
native: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
359
|
+
tool: z.ZodString;
|
|
360
|
+
category: z.ZodEnum<{
|
|
361
|
+
context: "context";
|
|
362
|
+
mixing: "mixing";
|
|
363
|
+
composition: "composition";
|
|
364
|
+
transport: "transport";
|
|
365
|
+
media: "media";
|
|
366
|
+
project: "project";
|
|
367
|
+
}>;
|
|
368
|
+
description: z.ZodString;
|
|
369
|
+
}, z.core.$strict>>>;
|
|
370
|
+
kind: z.ZodEnum<{
|
|
371
|
+
desktop: "desktop";
|
|
372
|
+
web: "web";
|
|
373
|
+
}>;
|
|
374
|
+
versions: z.ZodObject<{
|
|
375
|
+
app: z.ZodString;
|
|
376
|
+
surface: z.ZodString;
|
|
377
|
+
}, z.core.$strict>;
|
|
378
|
+
connection: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
379
|
+
type: z.ZodLiteral<"local-mcp">;
|
|
380
|
+
url: z.ZodURL;
|
|
381
|
+
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
382
|
+
type: z.ZodLiteral<"none">;
|
|
383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
384
|
+
type: z.ZodLiteral<"token-file">;
|
|
385
|
+
path: z.ZodString;
|
|
386
|
+
}, z.core.$strict>], "type">;
|
|
387
|
+
enable: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"remote-mcp">;
|
|
390
|
+
url: z.ZodURL;
|
|
391
|
+
auth: z.ZodObject<{
|
|
392
|
+
type: z.ZodLiteral<"oauth">;
|
|
393
|
+
}, z.core.$strict>;
|
|
394
|
+
}, z.core.$strict>], "type">;
|
|
395
|
+
schema: z.ZodLiteral<"https://dawmcp.com/schemas/provider-v1.json">;
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
name: z.ZodString;
|
|
398
|
+
homepage: z.ZodURL;
|
|
399
|
+
license: z.ZodOptional<z.ZodString>;
|
|
400
|
+
contact: z.ZodString;
|
|
401
|
+
}, z.core.$strict>]>>;
|
|
402
|
+
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
403
|
+
$id: string;
|
|
404
|
+
$anchor?: string;
|
|
405
|
+
$ref?: string;
|
|
406
|
+
$dynamicRef?: string;
|
|
407
|
+
$dynamicAnchor?: string;
|
|
408
|
+
$vocabulary?: Record<string, boolean>;
|
|
409
|
+
$comment?: string;
|
|
410
|
+
$defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
411
|
+
type?: z.core.JSONSchema.SchemaType | z.core.JSONSchema.SchemaType[];
|
|
412
|
+
additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
413
|
+
unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
414
|
+
prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
415
|
+
items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
416
|
+
contains?: z.core.JSONSchema._JSONSchema;
|
|
417
|
+
additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
418
|
+
unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
419
|
+
properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
420
|
+
patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
421
|
+
dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
422
|
+
propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
423
|
+
if?: z.core.JSONSchema._JSONSchema;
|
|
424
|
+
then?: z.core.JSONSchema._JSONSchema;
|
|
425
|
+
else?: z.core.JSONSchema._JSONSchema;
|
|
426
|
+
allOf?: z.core.JSONSchema.JSONSchema[];
|
|
427
|
+
anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
428
|
+
oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
429
|
+
not?: z.core.JSONSchema._JSONSchema;
|
|
430
|
+
multipleOf?: number;
|
|
431
|
+
maximum?: number;
|
|
432
|
+
exclusiveMaximum?: number | boolean;
|
|
433
|
+
minimum?: number;
|
|
434
|
+
exclusiveMinimum?: number | boolean;
|
|
435
|
+
maxLength?: number;
|
|
436
|
+
minLength?: number;
|
|
437
|
+
pattern?: string;
|
|
438
|
+
maxItems?: number;
|
|
439
|
+
minItems?: number;
|
|
440
|
+
uniqueItems?: boolean;
|
|
441
|
+
maxContains?: number;
|
|
442
|
+
minContains?: number;
|
|
443
|
+
maxProperties?: number;
|
|
444
|
+
minProperties?: number;
|
|
445
|
+
required?: string[];
|
|
446
|
+
dependentRequired?: Record<string, string[]>;
|
|
447
|
+
enum?: Array<string | number | boolean | null>;
|
|
448
|
+
const?: string | number | boolean | null;
|
|
449
|
+
id?: string;
|
|
450
|
+
title: string;
|
|
451
|
+
description?: string;
|
|
452
|
+
default?: unknown;
|
|
453
|
+
deprecated?: boolean;
|
|
454
|
+
readOnly?: boolean;
|
|
455
|
+
writeOnly?: boolean;
|
|
456
|
+
nullable?: boolean;
|
|
457
|
+
examples?: unknown[];
|
|
458
|
+
format?: string;
|
|
459
|
+
contentMediaType?: string;
|
|
460
|
+
contentEncoding?: string;
|
|
461
|
+
contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
462
|
+
_prefault?: unknown;
|
|
463
|
+
};
|