@supabase/mcp-server-supabase 0.14.0 → 0.16.0
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/dist/chunk-6FWRABME.cjs +2 -0
- package/dist/chunk-6FWRABME.cjs.map +1 -0
- package/dist/chunk-LL3YUIO5.js +2 -0
- package/dist/chunk-LL3YUIO5.js.map +1 -0
- package/dist/chunk-NK5OI3BG.cjs +2 -0
- package/dist/chunk-NK5OI3BG.cjs.map +1 -0
- package/dist/chunk-O3IKASRI.cjs +294 -0
- package/dist/chunk-O3IKASRI.cjs.map +1 -0
- package/dist/chunk-OH63QZXD.js +294 -0
- package/dist/chunk-OH63QZXD.js.map +1 -0
- package/dist/chunk-RUKV33XE.js +2 -0
- package/dist/chunk-RUKV33XE.js.map +1 -0
- package/dist/chunk-SXDTW7TG.js +65 -0
- package/dist/chunk-SXDTW7TG.js.map +1 -0
- package/dist/chunk-XHPXWL3A.cjs +65 -0
- package/dist/chunk-XHPXWL3A.cjs.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +419 -13
- package/dist/index.d.ts +419 -13
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/platform/api-platform.cjs +1 -1
- package/dist/platform/api-platform.js +1 -1
- package/dist/platform/index.cjs +1 -1
- package/dist/platform/index.cjs.map +1 -1
- package/dist/platform/index.d.cts +105 -1
- package/dist/platform/index.d.ts +105 -1
- package/dist/platform/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3U2UNU3O.cjs +0 -17
- package/dist/chunk-3U2UNU3O.cjs.map +0 -1
- package/dist/chunk-A3TWEVBP.cjs +0 -280
- package/dist/chunk-A3TWEVBP.cjs.map +0 -1
- package/dist/chunk-BMLW4U6Y.cjs +0 -2
- package/dist/chunk-BMLW4U6Y.cjs.map +0 -1
- package/dist/chunk-I7QY5ONI.cjs +0 -50
- package/dist/chunk-I7QY5ONI.cjs.map +0 -1
- package/dist/chunk-QSCBBEAT.js +0 -280
- package/dist/chunk-QSCBBEAT.js.map +0 -1
- package/dist/chunk-SBJ5JXIL.js +0 -2
- package/dist/chunk-SBJ5JXIL.js.map +0 -1
- package/dist/chunk-XE4XPC4G.js +0 -17
- package/dist/chunk-XE4XPC4G.js.map +0 -1
- package/dist/chunk-Y5HKS7Z3.js +0 -50
- package/dist/chunk-Y5HKS7Z3.js.map +0 -1
|
@@ -130,10 +130,14 @@ declare const deployEdgeFunctionOptionsSchema: z.ZodObject<{
|
|
|
130
130
|
content: z.ZodString;
|
|
131
131
|
}, z.core.$strip>>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
|
+
declare class ResultTooLargeError extends Error {
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
133
136
|
declare const executeSqlOptionsSchema: z.ZodObject<{
|
|
134
137
|
query: z.ZodString;
|
|
135
138
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
136
139
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
137
141
|
}, z.core.$strip>;
|
|
138
142
|
declare const applyMigrationOptionsSchema: z.ZodObject<{
|
|
139
143
|
name: z.ZodString;
|
|
@@ -171,6 +175,7 @@ declare const queryLogsOptionsSchema: z.ZodObject<{
|
|
|
171
175
|
sql: z.ZodString;
|
|
172
176
|
iso_timestamp_start: z.ZodOptional<z.ZodString>;
|
|
173
177
|
iso_timestamp_end: z.ZodOptional<z.ZodString>;
|
|
178
|
+
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
174
179
|
}, z.core.$strip>;
|
|
175
180
|
declare const generateTypescriptTypesResultSchema: z.ZodObject<{
|
|
176
181
|
types: z.ZodString;
|
|
@@ -248,6 +253,82 @@ declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
253
|
show_labels: z.ZodBoolean;
|
|
249
254
|
}, z.core.$strip>>;
|
|
250
255
|
}, z.core.$strip>], "type">;
|
|
256
|
+
declare const createNotebookOptionsSchema: z.ZodObject<{
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
description: z.ZodOptional<z.ZodString>;
|
|
259
|
+
content: z.ZodObject<{
|
|
260
|
+
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
|
+
type: z.ZodLiteral<"markdown">;
|
|
262
|
+
text: z.ZodString;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
+
type: z.ZodLiteral<"database">;
|
|
265
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
table: "table";
|
|
267
|
+
chart: "chart";
|
|
268
|
+
}>>;
|
|
269
|
+
title: z.ZodOptional<z.ZodString>;
|
|
270
|
+
sql: z.ZodString;
|
|
271
|
+
row_limit: z.ZodNumber;
|
|
272
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
273
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
type: z.ZodEnum<{
|
|
275
|
+
bar: "bar";
|
|
276
|
+
line: "line";
|
|
277
|
+
}>;
|
|
278
|
+
x_column: z.ZodString;
|
|
279
|
+
scale: z.ZodEnum<{
|
|
280
|
+
linear: "linear";
|
|
281
|
+
log: "log";
|
|
282
|
+
}>;
|
|
283
|
+
cumulative: z.ZodBoolean;
|
|
284
|
+
show_labels: z.ZodBoolean;
|
|
285
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
286
|
+
column: z.ZodString;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
}, z.core.$strict>>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
type: z.ZodLiteral<"log">;
|
|
291
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
table: "table";
|
|
293
|
+
chart: "chart";
|
|
294
|
+
}>>;
|
|
295
|
+
title: z.ZodOptional<z.ZodString>;
|
|
296
|
+
sql: z.ZodString;
|
|
297
|
+
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
+
type: z.ZodLiteral<"absolute">;
|
|
299
|
+
start: z.ZodISODateTime;
|
|
300
|
+
end: z.ZodISODateTime;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"relative">;
|
|
303
|
+
unit: z.ZodEnum<{
|
|
304
|
+
minute: "minute";
|
|
305
|
+
hour: "hour";
|
|
306
|
+
day: "day";
|
|
307
|
+
week: "week";
|
|
308
|
+
month: "month";
|
|
309
|
+
year: "year";
|
|
310
|
+
}>;
|
|
311
|
+
amount: z.ZodNumber;
|
|
312
|
+
}, z.core.$strict>], "type">;
|
|
313
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
type: z.ZodEnum<{
|
|
315
|
+
bar: "bar";
|
|
316
|
+
line: "line";
|
|
317
|
+
}>;
|
|
318
|
+
x_column: z.ZodString;
|
|
319
|
+
scale: z.ZodEnum<{
|
|
320
|
+
linear: "linear";
|
|
321
|
+
log: "log";
|
|
322
|
+
}>;
|
|
323
|
+
cumulative: z.ZodBoolean;
|
|
324
|
+
show_labels: z.ZodBoolean;
|
|
325
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
326
|
+
column: z.ZodString;
|
|
327
|
+
}, z.core.$strict>>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
}, z.core.$strict>], "type">>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
}, z.core.$strip>;
|
|
251
332
|
declare const notebookSchema: z.ZodObject<{
|
|
252
333
|
id: z.ZodString;
|
|
253
334
|
name: z.ZodString;
|
|
@@ -376,6 +457,7 @@ type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResul
|
|
|
376
457
|
type StorageConfig = z.infer<typeof storageConfigSchema>;
|
|
377
458
|
type StorageBucket = z.infer<typeof storageBucketSchema>;
|
|
378
459
|
type NotebookCell = z.infer<typeof notebookCellSchema>;
|
|
460
|
+
type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
|
|
379
461
|
type Notebook = z.infer<typeof notebookSchema>;
|
|
380
462
|
type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
|
|
381
463
|
type DatabaseOperations = {
|
|
@@ -459,8 +541,29 @@ type SecretOperations = {
|
|
|
459
541
|
getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
|
|
460
542
|
};
|
|
461
543
|
type NotebookOperations = {
|
|
544
|
+
/** Optional for platforms that only support reading notebooks. */
|
|
545
|
+
createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
|
|
462
546
|
listNotebooks(projectId: string): Promise<Notebook[]>;
|
|
463
547
|
getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
|
|
548
|
+
deleteNotebook(projectId: string, notebookId: string): Promise<void>;
|
|
549
|
+
};
|
|
550
|
+
type FeedbackOperations = {
|
|
551
|
+
submit(input: {
|
|
552
|
+
feedback: string;
|
|
553
|
+
projectId?: string;
|
|
554
|
+
clientInfo?: {
|
|
555
|
+
name: string;
|
|
556
|
+
version: string;
|
|
557
|
+
};
|
|
558
|
+
}): Promise<{
|
|
559
|
+
deleteToken: string;
|
|
560
|
+
}>;
|
|
561
|
+
delete(input: {
|
|
562
|
+
deleteToken: string;
|
|
563
|
+
projectId?: string;
|
|
564
|
+
}): Promise<{
|
|
565
|
+
deleted: boolean;
|
|
566
|
+
}>;
|
|
464
567
|
};
|
|
465
568
|
type SupabasePlatform = {
|
|
466
569
|
init?(info: InitData): Promise<void>;
|
|
@@ -473,6 +576,7 @@ type SupabasePlatform = {
|
|
|
473
576
|
branching?: BranchingOperations;
|
|
474
577
|
secrets?: SecretOperations;
|
|
475
578
|
notebooks?: NotebookOperations;
|
|
579
|
+
feedback?: FeedbackOperations;
|
|
476
580
|
};
|
|
477
581
|
|
|
478
|
-
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Notebook, type NotebookCell, type NotebookOperations, type NotebookWithContent, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, notebookCellSchema, notebookSchema, notebookWithContentSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|
|
582
|
+
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateNotebookOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type FeedbackOperations, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Notebook, type NotebookCell, type NotebookOperations, type NotebookWithContent, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, ResultTooLargeError, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createNotebookOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, notebookCellSchema, notebookSchema, notebookWithContentSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -130,10 +130,14 @@ declare const deployEdgeFunctionOptionsSchema: z.ZodObject<{
|
|
|
130
130
|
content: z.ZodString;
|
|
131
131
|
}, z.core.$strip>>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
|
+
declare class ResultTooLargeError extends Error {
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
133
136
|
declare const executeSqlOptionsSchema: z.ZodObject<{
|
|
134
137
|
query: z.ZodString;
|
|
135
138
|
parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
136
139
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
137
141
|
}, z.core.$strip>;
|
|
138
142
|
declare const applyMigrationOptionsSchema: z.ZodObject<{
|
|
139
143
|
name: z.ZodString;
|
|
@@ -171,6 +175,7 @@ declare const queryLogsOptionsSchema: z.ZodObject<{
|
|
|
171
175
|
sql: z.ZodString;
|
|
172
176
|
iso_timestamp_start: z.ZodOptional<z.ZodString>;
|
|
173
177
|
iso_timestamp_end: z.ZodOptional<z.ZodString>;
|
|
178
|
+
max_result_bytes: z.ZodOptional<z.ZodNumber>;
|
|
174
179
|
}, z.core.$strip>;
|
|
175
180
|
declare const generateTypescriptTypesResultSchema: z.ZodObject<{
|
|
176
181
|
types: z.ZodString;
|
|
@@ -248,6 +253,82 @@ declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
253
|
show_labels: z.ZodBoolean;
|
|
249
254
|
}, z.core.$strip>>;
|
|
250
255
|
}, z.core.$strip>], "type">;
|
|
256
|
+
declare const createNotebookOptionsSchema: z.ZodObject<{
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
description: z.ZodOptional<z.ZodString>;
|
|
259
|
+
content: z.ZodObject<{
|
|
260
|
+
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
261
|
+
type: z.ZodLiteral<"markdown">;
|
|
262
|
+
text: z.ZodString;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
+
type: z.ZodLiteral<"database">;
|
|
265
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
table: "table";
|
|
267
|
+
chart: "chart";
|
|
268
|
+
}>>;
|
|
269
|
+
title: z.ZodOptional<z.ZodString>;
|
|
270
|
+
sql: z.ZodString;
|
|
271
|
+
row_limit: z.ZodNumber;
|
|
272
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
273
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
type: z.ZodEnum<{
|
|
275
|
+
bar: "bar";
|
|
276
|
+
line: "line";
|
|
277
|
+
}>;
|
|
278
|
+
x_column: z.ZodString;
|
|
279
|
+
scale: z.ZodEnum<{
|
|
280
|
+
linear: "linear";
|
|
281
|
+
log: "log";
|
|
282
|
+
}>;
|
|
283
|
+
cumulative: z.ZodBoolean;
|
|
284
|
+
show_labels: z.ZodBoolean;
|
|
285
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
286
|
+
column: z.ZodString;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
}, z.core.$strict>>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
type: z.ZodLiteral<"log">;
|
|
291
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
table: "table";
|
|
293
|
+
chart: "chart";
|
|
294
|
+
}>>;
|
|
295
|
+
title: z.ZodOptional<z.ZodString>;
|
|
296
|
+
sql: z.ZodString;
|
|
297
|
+
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
+
type: z.ZodLiteral<"absolute">;
|
|
299
|
+
start: z.ZodISODateTime;
|
|
300
|
+
end: z.ZodISODateTime;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"relative">;
|
|
303
|
+
unit: z.ZodEnum<{
|
|
304
|
+
minute: "minute";
|
|
305
|
+
hour: "hour";
|
|
306
|
+
day: "day";
|
|
307
|
+
week: "week";
|
|
308
|
+
month: "month";
|
|
309
|
+
year: "year";
|
|
310
|
+
}>;
|
|
311
|
+
amount: z.ZodNumber;
|
|
312
|
+
}, z.core.$strict>], "type">;
|
|
313
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
type: z.ZodEnum<{
|
|
315
|
+
bar: "bar";
|
|
316
|
+
line: "line";
|
|
317
|
+
}>;
|
|
318
|
+
x_column: z.ZodString;
|
|
319
|
+
scale: z.ZodEnum<{
|
|
320
|
+
linear: "linear";
|
|
321
|
+
log: "log";
|
|
322
|
+
}>;
|
|
323
|
+
cumulative: z.ZodBoolean;
|
|
324
|
+
show_labels: z.ZodBoolean;
|
|
325
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
326
|
+
column: z.ZodString;
|
|
327
|
+
}, z.core.$strict>>;
|
|
328
|
+
}, z.core.$strict>>;
|
|
329
|
+
}, z.core.$strict>], "type">>;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
}, z.core.$strip>;
|
|
251
332
|
declare const notebookSchema: z.ZodObject<{
|
|
252
333
|
id: z.ZodString;
|
|
253
334
|
name: z.ZodString;
|
|
@@ -376,6 +457,7 @@ type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResul
|
|
|
376
457
|
type StorageConfig = z.infer<typeof storageConfigSchema>;
|
|
377
458
|
type StorageBucket = z.infer<typeof storageBucketSchema>;
|
|
378
459
|
type NotebookCell = z.infer<typeof notebookCellSchema>;
|
|
460
|
+
type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
|
|
379
461
|
type Notebook = z.infer<typeof notebookSchema>;
|
|
380
462
|
type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
|
|
381
463
|
type DatabaseOperations = {
|
|
@@ -459,8 +541,29 @@ type SecretOperations = {
|
|
|
459
541
|
getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
|
|
460
542
|
};
|
|
461
543
|
type NotebookOperations = {
|
|
544
|
+
/** Optional for platforms that only support reading notebooks. */
|
|
545
|
+
createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
|
|
462
546
|
listNotebooks(projectId: string): Promise<Notebook[]>;
|
|
463
547
|
getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
|
|
548
|
+
deleteNotebook(projectId: string, notebookId: string): Promise<void>;
|
|
549
|
+
};
|
|
550
|
+
type FeedbackOperations = {
|
|
551
|
+
submit(input: {
|
|
552
|
+
feedback: string;
|
|
553
|
+
projectId?: string;
|
|
554
|
+
clientInfo?: {
|
|
555
|
+
name: string;
|
|
556
|
+
version: string;
|
|
557
|
+
};
|
|
558
|
+
}): Promise<{
|
|
559
|
+
deleteToken: string;
|
|
560
|
+
}>;
|
|
561
|
+
delete(input: {
|
|
562
|
+
deleteToken: string;
|
|
563
|
+
projectId?: string;
|
|
564
|
+
}): Promise<{
|
|
565
|
+
deleted: boolean;
|
|
566
|
+
}>;
|
|
464
567
|
};
|
|
465
568
|
type SupabasePlatform = {
|
|
466
569
|
init?(info: InitData): Promise<void>;
|
|
@@ -473,6 +576,7 @@ type SupabasePlatform = {
|
|
|
473
576
|
branching?: BranchingOperations;
|
|
474
577
|
secrets?: SecretOperations;
|
|
475
578
|
notebooks?: NotebookOperations;
|
|
579
|
+
feedback?: FeedbackOperations;
|
|
476
580
|
};
|
|
477
581
|
|
|
478
|
-
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Notebook, type NotebookCell, type NotebookOperations, type NotebookWithContent, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, notebookCellSchema, notebookSchema, notebookWithContentSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|
|
582
|
+
export { type AccountOperations, type ApiKey, type ApiKeyType, type ApplyMigrationOptions, type Branch, type BranchingOperations, type CreateBranchOptions, type CreateNotebookOptions, type CreateProjectOptions, type DatabaseOperations, type DebuggingOperations, type DeployEdgeFunctionOptions, type DevelopmentOperations, type EdgeFunction, type EdgeFunctionWithBody, type EdgeFunctionsOperations, type ExecuteSqlOptions, type FeedbackOperations, type GenerateTypescriptTypesResult, type GetLogsOptions, type ListMigrationsResult, type LogsDialect, type LogsService, type Migration, type Notebook, type NotebookCell, type NotebookOperations, type NotebookWithContent, type Organization, type Project, type QueryLogsOptions, type ResetBranchOptions, ResultTooLargeError, type SecretOperations, type StorageBucket, type StorageConfig, type StorageOperations, type SuccessResponse, type SupabasePlatform, apiKeyTypeSchema, applyMigrationOptionsSchema, branchSchema, createBranchOptionsSchema, createNotebookOptionsSchema, createProjectOptionsSchema, deployEdgeFunctionOptionsSchema, edgeFunctionSchema, edgeFunctionWithBodySchema, executeSqlOptionsSchema, generateTypescriptTypesResultSchema, getLogsOptionsSchema, logsServiceSchema, migrationSchema, notebookCellSchema, notebookSchema, notebookWithContentSchema, organizationSchema, projectSchema, queryLogsOptionsSchema, resetBranchOptionsSchema, storageBucketSchema, storageConfigSchema };
|
package/dist/platform/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-LU6L7C36.js";import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,w as v}from"../chunk-
|
|
1
|
+
import"../chunk-LU6L7C36.js";import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k,m as l,n as m,o as n,p as o,q as p,r as q,s as r,t as s,u as t,v as u,w as v,x as w,y as x}from"../chunk-LL3YUIO5.js";export{l as ResultTooLargeError,x as apiKeyTypeSchema,n as applyMigrationOptionsSchema,e as branchSchema,i as createBranchOptionsSchema,u as createNotebookOptionsSchema,h as createProjectOptionsSchema,k as deployEdgeFunctionOptionsSchema,f as edgeFunctionSchema,g as edgeFunctionWithBodySchema,m as executeSqlOptionsSchema,s as generateTypescriptTypesResultSchema,q as getLogsOptionsSchema,p as logsServiceSchema,o as migrationSchema,t as notebookCellSchema,v as notebookSchema,w as notebookWithContentSchema,c as organizationSchema,d as projectSchema,r as queryLogsOptionsSchema,j as resetBranchOptionsSchema,a as storageBucketSchema,b as storageConfigSchema};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/dist/chunk-3U2UNU3O.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var m={name:"@supabase/mcp-server-supabase",mcpName:"com.supabase/mcp",version:"0.14.0",description:"MCP server for interacting with Supabase",license:"Apache-2.0",repository:{type:"git",url:"https://github.com/supabase/mcp.git"},type:"module",main:"dist/index.cjs",types:"dist/index.d.ts",sideEffects:!1,scripts:{build:"tsup --clean",dev:"tsup --watch",typecheck:"tsc --noEmit",prebuild:"pnpm typecheck",prepublishOnly:"pnpm build","registry:update":"tsx scripts/registry/update-version.ts && biome format --write server.json","registry:login":"scripts/registry/login.sh","registry:publish":"mcp-publisher publish",test:"vitest","test:unit":"vitest --project unit","test:e2e":"vitest --project e2e","test:integration":"vitest --project integration","test:coverage":"vitest --coverage","generate:management-api-types":"node scripts/generate-management-api-types.mjs"},files:["dist/**/*"],bin:{"mcp-server-supabase":"./dist/cli.js"},exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",default:"./dist/index.cjs"},"./platform":{types:"./dist/platform/index.d.ts",import:"./dist/platform/index.js",default:"./dist/platform/index.cjs"},"./platform/api":{types:"./dist/platform/api-platform.d.ts",import:"./dist/platform/api-platform.js",default:"./dist/platform/api-platform.cjs"}},dependencies:{"@mjackson/multipart-parser":"^0.10.1","@modelcontextprotocol/node":"catalog:","@supabase/mcp-utils":"workspace:^","common-tags":"^1.8.2",gqlmin:"^0.3.1",graphql:"^16.11.0","openapi-fetch":"^0.13.5"},peerDependencies:{"@modelcontextprotocol/server":"catalog:",zod:"catalog:"},devDependencies:{"@ai-sdk/anthropic":"catalog:","@ai-sdk/mcp":"catalog:","@electric-sql/pglite":"^0.2.17","@modelcontextprotocol/client":"catalog:","@modelcontextprotocol/server":"catalog:","@total-typescript/tsconfig":"^1.0.4","@types/common-tags":"^1.8.4","@types/node":"^22.8.6","@vitest/coverage-v8":"^2.1.9",ai:"catalog:","date-fns":"^4.1.0",dotenv:"^16.5.0",msw:"^2.7.3",nanoid:"^5.1.5","openapi-typescript":"^7.5.0","openapi-typescript-helpers":"^0.0.15",prettier:"^3.3.3",tsup:"^8.3.5",tsx:"^4.19.2",typescript:"^5.6.3",vite:"^5.4.19",vitest:"^2.1.9",zod:"catalog:"}};var _commontags = require('common-tags');var _path = require('path');function u(e,t,i){return`${e}_${t}_${i}`}function a(e){return`/tmp/user_fn_${e}/`}function r(e,t){return e.startsWith(t)?e.slice(t.length):e}function f({deploymentId:e,filename:t}){let i=a(e),s=_path.resolve.call(void 0, i,t);return s=r(s,i),s=r(s,"source/"),s}var y=_commontags.codeBlock`
|
|
2
|
-
import "jsr:@supabase/functions-js/edge-runtime.d.ts";
|
|
3
|
-
|
|
4
|
-
Deno.serve(async (req: Request) => {
|
|
5
|
-
const data = {
|
|
6
|
-
message: "Hello there!"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
return new Response(JSON.stringify(data), {
|
|
10
|
-
headers: {
|
|
11
|
-
'Content-Type': 'application/json',
|
|
12
|
-
'Connection': 'keep-alive'
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
`;exports.a = m; exports.b = u; exports.c = f; exports.d = y;
|
|
17
|
-
//# sourceMappingURL=chunk-3U2UNU3O.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/edge-function.ts","/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/chunk-3U2UNU3O.cjs"],"names":["package_default","getDeploymentId","projectId","functionId","functionVersion"],"mappings":"AAAA,6EAAAA,CAAAA,CAAA,CACE,IAAA,CAAQ,+BAAA,CACR,OAAA,CAAW,kBAAA,CACX,OAAA,CAAW,QAAA,CACX,WAAA,CAAe,0CAAA,CACf,OAAA,CAAW,YAAA,CACX,UAAA,CAAc,CACZ,IAAA,CAAQ,KAAA,CACR,GAAA,CAAO,qCACT,CAAA,CACA,IAAA,CAAQ,QAAA,CACR,IAAA,CAAQ,gBAAA,CACR,KAAA,CAAS,iBAAA,CACT,WAAA,CAAe,CAAA,CAAA,CACf,OAAA,CAAW,CACT,KAAA,CAAS,cAAA,CACT,GAAA,CAAO,cAAA,CACP,SAAA,CAAa,cAAA,CACb,QAAA,CAAY,gBAAA,CACZ,cAAA,CAAkB,YAAA,CAClB,iBAAA,CAAmB,4EAAA,CACnB,gBAAA,CAAkB,2BAAA,CAClB,kBAAA,CAAoB,uBAAA,CACpB,IAAA,CAAQ,QAAA,CACR,WAAA,CAAa,uBAAA,CACb,UAAA,CAAY,sBAAA,CACZ,kBAAA,CAAoB,8BAAA,CACpB,eAAA,CAAiB,mBAAA,CACjB,+BAAA,CAAiC,gDACnC,CAAA,CACA,KAAA,CAAS,CACP,WACF,CAAA,CACA,GAAA,CAAO,CACL,qBAAA,CAAuB,eACzB,CAAA,CACA,OAAA,CAAW,CACT,GAAA,CAAK,CACH,KAAA,CAAS,mBAAA,CACT,MAAA,CAAU,iBAAA,CACV,OAAA,CAAW,kBACb,CAAA,CACA,YAAA,CAAc,CACZ,KAAA,CAAS,4BAAA,CACT,MAAA,CAAU,0BAAA,CACV,OAAA,CAAW,2BACb,CAAA,CACA,gBAAA,CAAkB,CAChB,KAAA,CAAS,mCAAA,CACT,MAAA,CAAU,iCAAA,CACV,OAAA,CAAW,kCACb,CACF,CAAA,CACA,YAAA,CAAgB,CACd,4BAAA,CAA8B,SAAA,CAC9B,4BAAA,CAA8B,UAAA,CAC9B,qBAAA,CAAuB,aAAA,CACvB,aAAA,CAAe,QAAA,CACf,MAAA,CAAU,QAAA,CACV,OAAA,CAAW,UAAA,CACX,eAAA,CAAiB,SACnB,CAAA,CACA,gBAAA,CAAoB,CAClB,8BAAA,CAAgC,UAAA,CAChC,GAAA,CAAO,UACT,CAAA,CACA,eAAA,CAAmB,CACjB,mBAAA,CAAqB,UAAA,CACrB,aAAA,CAAe,UAAA,CACf,sBAAA,CAAwB,SAAA,CACxB,8BAAA,CAAgC,UAAA,CAChC,8BAAA,CAAgC,UAAA,CAChC,4BAAA,CAA8B,QAAA,CAC9B,oBAAA,CAAsB,QAAA,CACtB,aAAA,CAAe,SAAA,CACf,qBAAA,CAAuB,QAAA,CACvB,EAAA,CAAM,UAAA,CACN,UAAA,CAAY,QAAA,CACZ,MAAA,CAAU,SAAA,CACV,GAAA,CAAO,QAAA,CACP,MAAA,CAAU,QAAA,CACV,oBAAA,CAAsB,QAAA,CACtB,4BAAA,CAA8B,SAAA,CAC9B,QAAA,CAAY,QAAA,CACZ,IAAA,CAAQ,QAAA,CACR,GAAA,CAAO,SAAA,CACP,UAAA,CAAc,QAAA,CACd,IAAA,CAAQ,SAAA,CACR,MAAA,CAAU,QAAA,CACV,GAAA,CAAO,UACT,CACF,CAAA,CC3FA,yCAA0B,4BACF,SAKRC,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACQ,CACR,MAAO,CAAA,EAAA;AAqC0B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACjC0qE","file":"/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/chunk-3U2UNU3O.cjs","sourcesContent":["{\n \"name\": \"@supabase/mcp-server-supabase\",\n \"mcpName\": \"com.supabase/mcp\",\n \"version\": \"0.14.0\",\n \"description\": \"MCP server for interacting with Supabase\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/supabase/mcp.git\"\n },\n \"type\": \"module\",\n \"main\": \"dist/index.cjs\",\n \"types\": \"dist/index.d.ts\",\n \"sideEffects\": false,\n \"scripts\": {\n \"build\": \"tsup --clean\",\n \"dev\": \"tsup --watch\",\n \"typecheck\": \"tsc --noEmit\",\n \"prebuild\": \"pnpm typecheck\",\n \"prepublishOnly\": \"pnpm build\",\n \"registry:update\": \"tsx scripts/registry/update-version.ts && biome format --write server.json\",\n \"registry:login\": \"scripts/registry/login.sh\",\n \"registry:publish\": \"mcp-publisher publish\",\n \"test\": \"vitest\",\n \"test:unit\": \"vitest --project unit\",\n \"test:e2e\": \"vitest --project e2e\",\n \"test:integration\": \"vitest --project integration\",\n \"test:coverage\": \"vitest --coverage\",\n \"generate:management-api-types\": \"node scripts/generate-management-api-types.mjs\"\n },\n \"files\": [\n \"dist/**/*\"\n ],\n \"bin\": {\n \"mcp-server-supabase\": \"./dist/cli.js\"\n },\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\",\n \"default\": \"./dist/index.cjs\"\n },\n \"./platform\": {\n \"types\": \"./dist/platform/index.d.ts\",\n \"import\": \"./dist/platform/index.js\",\n \"default\": \"./dist/platform/index.cjs\"\n },\n \"./platform/api\": {\n \"types\": \"./dist/platform/api-platform.d.ts\",\n \"import\": \"./dist/platform/api-platform.js\",\n \"default\": \"./dist/platform/api-platform.cjs\"\n }\n },\n \"dependencies\": {\n \"@mjackson/multipart-parser\": \"^0.10.1\",\n \"@modelcontextprotocol/node\": \"catalog:\",\n \"@supabase/mcp-utils\": \"workspace:^\",\n \"common-tags\": \"^1.8.2\",\n \"gqlmin\": \"^0.3.1\",\n \"graphql\": \"^16.11.0\",\n \"openapi-fetch\": \"^0.13.5\"\n },\n \"peerDependencies\": {\n \"@modelcontextprotocol/server\": \"catalog:\",\n \"zod\": \"catalog:\"\n },\n \"devDependencies\": {\n \"@ai-sdk/anthropic\": \"catalog:\",\n \"@ai-sdk/mcp\": \"catalog:\",\n \"@electric-sql/pglite\": \"^0.2.17\",\n \"@modelcontextprotocol/client\": \"catalog:\",\n \"@modelcontextprotocol/server\": \"catalog:\",\n \"@total-typescript/tsconfig\": \"^1.0.4\",\n \"@types/common-tags\": \"^1.8.4\",\n \"@types/node\": \"^22.8.6\",\n \"@vitest/coverage-v8\": \"^2.1.9\",\n \"ai\": \"catalog:\",\n \"date-fns\": \"^4.1.0\",\n \"dotenv\": \"^16.5.0\",\n \"msw\": \"^2.7.3\",\n \"nanoid\": \"^5.1.5\",\n \"openapi-typescript\": \"^7.5.0\",\n \"openapi-typescript-helpers\": \"^0.0.15\",\n \"prettier\": \"^3.3.3\",\n \"tsup\": \"^8.3.5\",\n \"tsx\": \"^4.19.2\",\n \"typescript\": \"^5.6.3\",\n \"vite\": \"^5.4.19\",\n \"vitest\": \"^2.1.9\",\n \"zod\": \"catalog:\"\n }\n}\n","import { codeBlock } from 'common-tags';\nimport { resolve } from 'node:path';\n\n/**\n * Gets the deployment ID for an Edge Function.\n */\nexport function getDeploymentId(\n projectId: string,\n functionId: string,\n functionVersion: number\n): string {\n return `${projectId}_${functionId}_${functionVersion}`;\n}\n\n/**\n * Gets the path prefix applied to each file in an Edge Function.\n */\nexport function getPathPrefix(deploymentId: string) {\n return `/tmp/user_fn_${deploymentId}/`;\n}\n\n/**\n * Strips a prefix from a string.\n */\nfunction withoutPrefix(value: string, prefix: string) {\n return value.startsWith(prefix) ? value.slice(prefix.length) : value;\n}\n\n/**\n * Strips prefix from edge function file names, accounting for Deno 1 and 2.\n */\nexport function normalizeFilename({\n deploymentId,\n filename,\n}: { deploymentId: string; filename: string }) {\n const pathPrefix = getPathPrefix(deploymentId);\n\n // Deno 2 uses relative filenames, Deno 1 uses absolute. Resolve both to absolute first.\n const filenameAbsolute = resolve(pathPrefix, filename);\n\n // Strip prefix(es)\n let filenameWithoutPrefix = filenameAbsolute;\n filenameWithoutPrefix = withoutPrefix(filenameWithoutPrefix, pathPrefix);\n filenameWithoutPrefix = withoutPrefix(filenameWithoutPrefix, 'source/');\n\n return filenameWithoutPrefix;\n}\n\nexport const edgeFunctionExample = codeBlock`\n import \"jsr:@supabase/functions-js/edge-runtime.d.ts\";\n\n Deno.serve(async (req: Request) => {\n const data = {\n message: \"Hello there!\"\n };\n \n return new Response(JSON.stringify(data), {\n headers: {\n 'Content-Type': 'application/json',\n 'Connection': 'keep-alive'\n }\n });\n });\n`;\n",null]}
|