@databrainhq/mcp-server 0.3.0-rc.13 → 0.3.0-rc.15
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/.mcp.json +6 -1
- package/dist/apps/server.d.ts +102 -389
- package/dist/apps/server.js +5 -5
- package/dist/apps/stdio.d.ts +1 -2
- package/dist/apps/stdio.js +6 -6
- package/dist/{bundle-TDQXWIPM.js → bundle-QJNCUMNY.js} +2 -2
- package/dist/{chunk-Q5EYDKSA.js → chunk-2F7V6RZR.js} +511 -107
- package/dist/chunk-2F7V6RZR.js.map +1 -0
- package/dist/chunk-3AH56XX7.js +28 -0
- package/dist/chunk-3AH56XX7.js.map +1 -0
- package/dist/{chunk-AEQTEE5C.js → chunk-4E57ZRZO.js} +302 -63
- package/dist/chunk-4E57ZRZO.js.map +1 -0
- package/dist/{chunk-PSJVYD4W.js → chunk-6MD7KOAU.js} +11723 -10560
- package/dist/chunk-6MD7KOAU.js.map +1 -0
- package/dist/{chunk-HCYZN7I3.js → chunk-FJLRZJ4A.js} +10 -7
- package/dist/chunk-FJLRZJ4A.js.map +1 -0
- package/dist/{chunk-X44C5GW2.js → chunk-MUZ3KEJX.js} +63 -40
- package/dist/chunk-MUZ3KEJX.js.map +1 -0
- package/dist/{chunk-DTFYHLYN.js → chunk-NXE2A4WV.js} +26 -11
- package/dist/chunk-NXE2A4WV.js.map +1 -0
- package/dist/{chunk-233VGFHY.js → chunk-QQ6KNULX.js} +317 -147
- package/dist/chunk-QQ6KNULX.js.map +1 -0
- package/dist/chunk-V5JINLOA.js +506 -0
- package/dist/chunk-V5JINLOA.js.map +1 -0
- package/dist/cli.d.ts +16 -15
- package/dist/cli.js +134 -36
- package/dist/cli.js.map +1 -1
- package/dist/custom-chart/custom-runtime.js +6 -6
- package/dist/custom-chart/template/chart.ts +116 -28
- package/dist/custom-chart/template/icon.svg +1 -1
- package/dist/custom-chart/template/manifest.json +66 -12
- package/dist/custom-chart/template/sample-data.json +21 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +67 -13
- package/dist/index.js.map +1 -1
- package/dist/{main-VEKNKWL5.js → main-2FKQQLWX.js} +489 -174
- package/dist/main-2FKQQLWX.js.map +1 -0
- package/dist/{test-only-LJGOY2QA.js → test-only-VH3FF5ML.js} +15 -9
- package/dist/test-only-VH3FF5ML.js.map +1 -0
- package/package.json +20 -9
- package/dist/chunk-233VGFHY.js.map +0 -1
- package/dist/chunk-AEQTEE5C.js.map +0 -1
- package/dist/chunk-DTFYHLYN.js.map +0 -1
- package/dist/chunk-HCYZN7I3.js.map +0 -1
- package/dist/chunk-PSJVYD4W.js.map +0 -1
- package/dist/chunk-Q5EYDKSA.js.map +0 -1
- package/dist/chunk-X44C5GW2.js.map +0 -1
- package/dist/main-VEKNKWL5.js.map +0 -1
- package/dist/test-only-LJGOY2QA.js.map +0 -1
- /package/dist/{bundle-TDQXWIPM.js.map → bundle-QJNCUMNY.js.map} +0 -0
package/.mcp.json
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
"mcpServers": {
|
|
3
3
|
"databrain": {
|
|
4
4
|
"command": "npx",
|
|
5
|
-
"args": [
|
|
5
|
+
"args": [
|
|
6
|
+
"-y",
|
|
7
|
+
"-p",
|
|
8
|
+
"@databrainhq/mcp-server@latest",
|
|
9
|
+
"databrain-mcp-chart-apps"
|
|
10
|
+
],
|
|
6
11
|
"env": {
|
|
7
12
|
"DATABRAIN_SERVICE_TOKEN": "${DATABRAIN_SERVICE_TOKEN}"
|
|
8
13
|
}
|
package/dist/apps/server.d.ts
CHANGED
|
@@ -1,389 +1,102 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
issuer:
|
|
23
|
-
clientId:
|
|
24
|
-
clientSecret:
|
|
25
|
-
resource:
|
|
26
|
-
scope
|
|
27
|
-
authMethod
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
authMethod: "client_secret_basic" | "client_secret_post";
|
|
104
|
-
scope?: string | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
posthogApiKey?: string | undefined;
|
|
107
|
-
posthogHost?: string | undefined;
|
|
108
|
-
}, {
|
|
109
|
-
serviceToken?: string | undefined;
|
|
110
|
-
apiToken?: string | undefined;
|
|
111
|
-
oauth?: {
|
|
112
|
-
issuer: string;
|
|
113
|
-
clientId: string;
|
|
114
|
-
clientSecret: string;
|
|
115
|
-
resource: string;
|
|
116
|
-
scope?: string | undefined;
|
|
117
|
-
authMethod?: "client_secret_basic" | "client_secret_post" | undefined;
|
|
118
|
-
} | undefined;
|
|
119
|
-
apiUrl?: string | undefined;
|
|
120
|
-
demoDomain?: string | undefined;
|
|
121
|
-
posthogApiKey?: string | undefined;
|
|
122
|
-
posthogHost?: string | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
type Config = z.infer<typeof configSchema>;
|
|
125
|
-
|
|
126
|
-
declare const referenceSchema: z.ZodUnion<[z.ZodObject<{
|
|
127
|
-
embedId: z.ZodString;
|
|
128
|
-
clientId: z.ZodString;
|
|
129
|
-
widgetId: z.ZodString;
|
|
130
|
-
dataAppName: z.ZodOptional<z.ZodString>;
|
|
131
|
-
}, "strict", z.ZodTypeAny, {
|
|
132
|
-
clientId: string;
|
|
133
|
-
embedId: string;
|
|
134
|
-
widgetId: string;
|
|
135
|
-
dataAppName?: string | undefined;
|
|
136
|
-
}, {
|
|
137
|
-
clientId: string;
|
|
138
|
-
embedId: string;
|
|
139
|
-
widgetId: string;
|
|
140
|
-
dataAppName?: string | undefined;
|
|
141
|
-
}>, z.ZodObject<{
|
|
142
|
-
dashboardId: z.ZodString;
|
|
143
|
-
widgetId: z.ZodString;
|
|
144
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
145
|
-
display: z.ZodOptional<z.ZodEnum<["chart", "kpi"]>>;
|
|
146
|
-
}, "strict", z.ZodTypeAny, {
|
|
147
|
-
widgetId: string;
|
|
148
|
-
dashboardId: string;
|
|
149
|
-
clientId?: string | undefined;
|
|
150
|
-
display?: "chart" | "kpi" | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
widgetId: string;
|
|
153
|
-
dashboardId: string;
|
|
154
|
-
clientId?: string | undefined;
|
|
155
|
-
display?: "chart" | "kpi" | undefined;
|
|
156
|
-
}>]>;
|
|
157
|
-
type ChartReference = z.infer<typeof referenceSchema>;
|
|
158
|
-
declare const viewSchema: z.ZodObject<{
|
|
159
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
160
|
-
dateRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
161
|
-
from: z.ZodString;
|
|
162
|
-
to: z.ZodString;
|
|
163
|
-
}, "strict", z.ZodTypeAny, {
|
|
164
|
-
from: string;
|
|
165
|
-
to: string;
|
|
166
|
-
}, {
|
|
167
|
-
from: string;
|
|
168
|
-
to: string;
|
|
169
|
-
}>, {
|
|
170
|
-
from: string;
|
|
171
|
-
to: string;
|
|
172
|
-
}, {
|
|
173
|
-
from: string;
|
|
174
|
-
to: string;
|
|
175
|
-
}>>;
|
|
176
|
-
drillId: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, "strict", z.ZodTypeAny, {
|
|
178
|
-
drillId?: string | undefined;
|
|
179
|
-
cursor?: string | undefined;
|
|
180
|
-
dateRange?: {
|
|
181
|
-
from: string;
|
|
182
|
-
to: string;
|
|
183
|
-
} | undefined;
|
|
184
|
-
}, {
|
|
185
|
-
drillId?: string | undefined;
|
|
186
|
-
cursor?: string | undefined;
|
|
187
|
-
dateRange?: {
|
|
188
|
-
from: string;
|
|
189
|
-
to: string;
|
|
190
|
-
} | undefined;
|
|
191
|
-
}>;
|
|
192
|
-
declare const pageSchema: z.ZodEffects<z.ZodObject<{
|
|
193
|
-
kind: z.ZodEnum<["chart", "kpi", "table"]>;
|
|
194
|
-
title: z.ZodString;
|
|
195
|
-
description: z.ZodOptional<z.ZodString>;
|
|
196
|
-
rowsTotal: z.ZodOptional<z.ZodNumber>;
|
|
197
|
-
chartSpec: z.ZodObject<{
|
|
198
|
-
type: z.ZodString;
|
|
199
|
-
}, "strict", z.ZodTypeAny, {
|
|
200
|
-
type: string;
|
|
201
|
-
}, {
|
|
202
|
-
type: string;
|
|
203
|
-
}>;
|
|
204
|
-
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, "many">;
|
|
205
|
-
columns: z.ZodArray<z.ZodString, "many">;
|
|
206
|
-
svg: z.ZodOptional<z.ZodString>;
|
|
207
|
-
customChart: z.ZodOptional<z.ZodObject<{
|
|
208
|
-
key: z.ZodString;
|
|
209
|
-
bindings: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
210
|
-
options: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
211
|
-
}, "strict", z.ZodTypeAny, {
|
|
212
|
-
options: Record<string, string | number | boolean>;
|
|
213
|
-
key: string;
|
|
214
|
-
bindings: Record<string, string[]>;
|
|
215
|
-
}, {
|
|
216
|
-
options: Record<string, string | number | boolean>;
|
|
217
|
-
key: string;
|
|
218
|
-
bindings: Record<string, string[]>;
|
|
219
|
-
}>>;
|
|
220
|
-
fallback: z.ZodOptional<z.ZodString>;
|
|
221
|
-
width: z.ZodNumber;
|
|
222
|
-
height: z.ZodNumber;
|
|
223
|
-
points: z.ZodArray<z.ZodObject<{
|
|
224
|
-
key: z.ZodString;
|
|
225
|
-
label: z.ZodString;
|
|
226
|
-
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
227
|
-
x: z.ZodNumber;
|
|
228
|
-
y: z.ZodNumber;
|
|
229
|
-
width: z.ZodNumber;
|
|
230
|
-
height: z.ZodNumber;
|
|
231
|
-
drillId: z.ZodOptional<z.ZodString>;
|
|
232
|
-
}, "strict", z.ZodTypeAny, {
|
|
233
|
-
value: string | number | boolean | null;
|
|
234
|
-
label: string;
|
|
235
|
-
width: number;
|
|
236
|
-
height: number;
|
|
237
|
-
x: number;
|
|
238
|
-
y: number;
|
|
239
|
-
key: string;
|
|
240
|
-
drillId?: string | undefined;
|
|
241
|
-
}, {
|
|
242
|
-
value: string | number | boolean | null;
|
|
243
|
-
label: string;
|
|
244
|
-
width: number;
|
|
245
|
-
height: number;
|
|
246
|
-
x: number;
|
|
247
|
-
y: number;
|
|
248
|
-
key: string;
|
|
249
|
-
drillId?: string | undefined;
|
|
250
|
-
}>, "many">;
|
|
251
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
252
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
253
|
-
}, "strict", z.ZodTypeAny, {
|
|
254
|
-
columns: string[];
|
|
255
|
-
rows: Record<string, string | number | boolean | null>[];
|
|
256
|
-
title: string;
|
|
257
|
-
width: number;
|
|
258
|
-
height: number;
|
|
259
|
-
points: {
|
|
260
|
-
value: string | number | boolean | null;
|
|
261
|
-
label: string;
|
|
262
|
-
width: number;
|
|
263
|
-
height: number;
|
|
264
|
-
x: number;
|
|
265
|
-
y: number;
|
|
266
|
-
key: string;
|
|
267
|
-
drillId?: string | undefined;
|
|
268
|
-
}[];
|
|
269
|
-
kind: "chart" | "kpi" | "table";
|
|
270
|
-
chartSpec: {
|
|
271
|
-
type: string;
|
|
272
|
-
};
|
|
273
|
-
value?: string | number | boolean | null | undefined;
|
|
274
|
-
description?: string | undefined;
|
|
275
|
-
svg?: string | undefined;
|
|
276
|
-
rowsTotal?: number | undefined;
|
|
277
|
-
customChart?: {
|
|
278
|
-
options: Record<string, string | number | boolean>;
|
|
279
|
-
key: string;
|
|
280
|
-
bindings: Record<string, string[]>;
|
|
281
|
-
} | undefined;
|
|
282
|
-
fallback?: string | undefined;
|
|
283
|
-
nextCursor?: string | undefined;
|
|
284
|
-
}, {
|
|
285
|
-
columns: string[];
|
|
286
|
-
rows: Record<string, string | number | boolean | null>[];
|
|
287
|
-
title: string;
|
|
288
|
-
width: number;
|
|
289
|
-
height: number;
|
|
290
|
-
points: {
|
|
291
|
-
value: string | number | boolean | null;
|
|
292
|
-
label: string;
|
|
293
|
-
width: number;
|
|
294
|
-
height: number;
|
|
295
|
-
x: number;
|
|
296
|
-
y: number;
|
|
297
|
-
key: string;
|
|
298
|
-
drillId?: string | undefined;
|
|
299
|
-
}[];
|
|
300
|
-
kind: "chart" | "kpi" | "table";
|
|
301
|
-
chartSpec: {
|
|
302
|
-
type: string;
|
|
303
|
-
};
|
|
304
|
-
value?: string | number | boolean | null | undefined;
|
|
305
|
-
description?: string | undefined;
|
|
306
|
-
svg?: string | undefined;
|
|
307
|
-
rowsTotal?: number | undefined;
|
|
308
|
-
customChart?: {
|
|
309
|
-
options: Record<string, string | number | boolean>;
|
|
310
|
-
key: string;
|
|
311
|
-
bindings: Record<string, string[]>;
|
|
312
|
-
} | undefined;
|
|
313
|
-
fallback?: string | undefined;
|
|
314
|
-
nextCursor?: string | undefined;
|
|
315
|
-
}>, {
|
|
316
|
-
columns: string[];
|
|
317
|
-
rows: Record<string, string | number | boolean | null>[];
|
|
318
|
-
title: string;
|
|
319
|
-
width: number;
|
|
320
|
-
height: number;
|
|
321
|
-
points: {
|
|
322
|
-
value: string | number | boolean | null;
|
|
323
|
-
label: string;
|
|
324
|
-
width: number;
|
|
325
|
-
height: number;
|
|
326
|
-
x: number;
|
|
327
|
-
y: number;
|
|
328
|
-
key: string;
|
|
329
|
-
drillId?: string | undefined;
|
|
330
|
-
}[];
|
|
331
|
-
kind: "chart" | "kpi" | "table";
|
|
332
|
-
chartSpec: {
|
|
333
|
-
type: string;
|
|
334
|
-
};
|
|
335
|
-
value?: string | number | boolean | null | undefined;
|
|
336
|
-
description?: string | undefined;
|
|
337
|
-
svg?: string | undefined;
|
|
338
|
-
rowsTotal?: number | undefined;
|
|
339
|
-
customChart?: {
|
|
340
|
-
options: Record<string, string | number | boolean>;
|
|
341
|
-
key: string;
|
|
342
|
-
bindings: Record<string, string[]>;
|
|
343
|
-
} | undefined;
|
|
344
|
-
fallback?: string | undefined;
|
|
345
|
-
nextCursor?: string | undefined;
|
|
346
|
-
}, {
|
|
347
|
-
columns: string[];
|
|
348
|
-
rows: Record<string, string | number | boolean | null>[];
|
|
349
|
-
title: string;
|
|
350
|
-
width: number;
|
|
351
|
-
height: number;
|
|
352
|
-
points: {
|
|
353
|
-
value: string | number | boolean | null;
|
|
354
|
-
label: string;
|
|
355
|
-
width: number;
|
|
356
|
-
height: number;
|
|
357
|
-
x: number;
|
|
358
|
-
y: number;
|
|
359
|
-
key: string;
|
|
360
|
-
drillId?: string | undefined;
|
|
361
|
-
}[];
|
|
362
|
-
kind: "chart" | "kpi" | "table";
|
|
363
|
-
chartSpec: {
|
|
364
|
-
type: string;
|
|
365
|
-
};
|
|
366
|
-
value?: string | number | boolean | null | undefined;
|
|
367
|
-
description?: string | undefined;
|
|
368
|
-
svg?: string | undefined;
|
|
369
|
-
rowsTotal?: number | undefined;
|
|
370
|
-
customChart?: {
|
|
371
|
-
options: Record<string, string | number | boolean>;
|
|
372
|
-
key: string;
|
|
373
|
-
bindings: Record<string, string[]>;
|
|
374
|
-
} | undefined;
|
|
375
|
-
fallback?: string | undefined;
|
|
376
|
-
nextCursor?: string | undefined;
|
|
377
|
-
}>;
|
|
378
|
-
type ChartPage = z.infer<typeof pageSchema>;
|
|
379
|
-
type ChartView = z.infer<typeof viewSchema>;
|
|
380
|
-
|
|
381
|
-
type ChartAction = 'render_chart' | 'refresh_widget' | 'drill_down' | 'change_date_range';
|
|
382
|
-
interface ChartBackend {
|
|
383
|
-
execute(action: ChartAction, reference: ChartReference, view: ChartView): Promise<ChartPage>;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/** Reviewable composition seam; hosted owners must retain their principal-bound client/policy. */
|
|
387
|
-
declare function createChartAppServer(config: Config, backend?: ChartBackend): McpServer;
|
|
388
|
-
|
|
389
|
-
export { createChartAppServer };
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare type ChartAction = 'render_chart' | 'refresh_widget' | 'drill_down' | 'change_date_range';
|
|
5
|
+
|
|
6
|
+
declare interface ChartBackend {
|
|
7
|
+
execute(action: ChartAction, reference: ChartReference, view: ChartView): Promise<ChartPage>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare type ChartPage = z.infer<typeof pageSchema>;
|
|
11
|
+
|
|
12
|
+
declare type ChartReference = z.infer<typeof referenceSchema>;
|
|
13
|
+
|
|
14
|
+
declare type ChartView = z.infer<typeof viewSchema>;
|
|
15
|
+
|
|
16
|
+
declare type Config = z.infer<typeof configSchema>;
|
|
17
|
+
|
|
18
|
+
declare const configSchema: z.ZodObject<{
|
|
19
|
+
serviceToken: z.ZodOptional<z.ZodString>;
|
|
20
|
+
apiToken: z.ZodOptional<z.ZodString>;
|
|
21
|
+
oauth: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
issuer: z.ZodString;
|
|
23
|
+
clientId: z.ZodString;
|
|
24
|
+
clientSecret: z.ZodString;
|
|
25
|
+
resource: z.ZodString;
|
|
26
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
27
|
+
authMethod: z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
client_secret_basic: "client_secret_basic";
|
|
29
|
+
client_secret_post: "client_secret_post";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
apiUrl: z.ZodDefault<z.ZodString>;
|
|
33
|
+
demoDomain: z.ZodDefault<z.ZodString>;
|
|
34
|
+
posthogApiKey: z.ZodOptional<z.ZodString>;
|
|
35
|
+
posthogHost: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
/** Reviewable composition seam; hosted owners must retain their principal-bound client/policy. */
|
|
39
|
+
export declare function createChartAppServer(config: Config, backend?: ChartBackend): McpServer;
|
|
40
|
+
|
|
41
|
+
declare const pageSchema: z.ZodObject<{
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
chart: "chart";
|
|
44
|
+
kpi: "kpi";
|
|
45
|
+
table: "table";
|
|
46
|
+
}>;
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodString>;
|
|
49
|
+
rowsTotal: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
chartSpec: z.ZodObject<{
|
|
51
|
+
type: z.ZodString;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
54
|
+
columns: z.ZodArray<z.ZodString>;
|
|
55
|
+
svg: z.ZodOptional<z.ZodString>;
|
|
56
|
+
customChart: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
key: z.ZodString;
|
|
58
|
+
bindings: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
59
|
+
options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
62
|
+
width: z.ZodNumber;
|
|
63
|
+
height: z.ZodNumber;
|
|
64
|
+
points: z.ZodArray<z.ZodObject<{
|
|
65
|
+
key: z.ZodString;
|
|
66
|
+
label: z.ZodString;
|
|
67
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
68
|
+
x: z.ZodNumber;
|
|
69
|
+
y: z.ZodNumber;
|
|
70
|
+
width: z.ZodNumber;
|
|
71
|
+
height: z.ZodNumber;
|
|
72
|
+
drillId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
75
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
|
|
78
|
+
declare const referenceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
79
|
+
embedId: z.ZodString;
|
|
80
|
+
clientId: z.ZodString;
|
|
81
|
+
widgetId: z.ZodString;
|
|
82
|
+
dataAppName: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
+
dashboardId: z.ZodString;
|
|
85
|
+
widgetId: z.ZodString;
|
|
86
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
chart: "chart";
|
|
89
|
+
kpi: "kpi";
|
|
90
|
+
}>>;
|
|
91
|
+
}, z.core.$strict>]>;
|
|
92
|
+
|
|
93
|
+
declare const viewSchema: z.ZodObject<{
|
|
94
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
95
|
+
dateRange: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
from: z.ZodString;
|
|
97
|
+
to: z.ZodString;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
drillId: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
|
|
102
|
+
export { }
|
package/dist/apps/server.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createChartAppServer
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-FJLRZJ4A.js";
|
|
5
|
+
import "../chunk-QQ6KNULX.js";
|
|
6
|
+
import "../chunk-6MD7KOAU.js";
|
|
7
|
+
import "../chunk-4E57ZRZO.js";
|
|
8
|
+
import "../chunk-2F7V6RZR.js";
|
|
9
9
|
export {
|
|
10
10
|
createChartAppServer
|
|
11
11
|
};
|
package/dist/apps/stdio.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export { }
|
package/dist/apps/stdio.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadConfig
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NXE2A4WV.js";
|
|
5
5
|
import {
|
|
6
6
|
createChartAppServer
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-FJLRZJ4A.js";
|
|
8
|
+
import "../chunk-QQ6KNULX.js";
|
|
9
|
+
import "../chunk-6MD7KOAU.js";
|
|
10
|
+
import "../chunk-4E57ZRZO.js";
|
|
11
|
+
import "../chunk-2F7V6RZR.js";
|
|
12
12
|
|
|
13
13
|
// src/apps/stdio.ts
|
|
14
14
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
readProject,
|
|
10
10
|
validateBundle,
|
|
11
11
|
validateProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2F7V6RZR.js";
|
|
13
13
|
export {
|
|
14
14
|
DIST_FILES,
|
|
15
15
|
buildProject,
|
|
@@ -21,4 +21,4 @@ export {
|
|
|
21
21
|
validateBundle,
|
|
22
22
|
validateProject
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=bundle-
|
|
24
|
+
//# sourceMappingURL=bundle-QJNCUMNY.js.map
|