@supabase/mcp-server-supabase 0.14.0 → 0.15.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.
Files changed (50) hide show
  1. package/dist/chunk-6CRL5K4W.cjs +2 -0
  2. package/dist/chunk-6CRL5K4W.cjs.map +1 -0
  3. package/dist/chunk-AO46QKX4.js +2 -0
  4. package/dist/chunk-AO46QKX4.js.map +1 -0
  5. package/dist/chunk-K35CHAKZ.js +2 -0
  6. package/dist/chunk-K35CHAKZ.js.map +1 -0
  7. package/dist/chunk-MCGVYF75.cjs +285 -0
  8. package/dist/chunk-MCGVYF75.cjs.map +1 -0
  9. package/dist/chunk-MYMWFJP6.cjs +65 -0
  10. package/dist/chunk-MYMWFJP6.cjs.map +1 -0
  11. package/dist/chunk-RAFOVMAQ.cjs +2 -0
  12. package/dist/chunk-RAFOVMAQ.cjs.map +1 -0
  13. package/dist/chunk-RARMLKMM.js +285 -0
  14. package/dist/chunk-RARMLKMM.js.map +1 -0
  15. package/dist/chunk-VZ3JIRKN.js +65 -0
  16. package/dist/chunk-VZ3JIRKN.js.map +1 -0
  17. package/dist/cli.cjs +1 -1
  18. package/dist/cli.cjs.map +1 -1
  19. package/dist/cli.js +1 -1
  20. package/dist/cli.js.map +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +375 -18
  24. package/dist/index.d.ts +375 -18
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/platform/api-platform.cjs +1 -1
  28. package/dist/platform/api-platform.js +1 -1
  29. package/dist/platform/index.cjs +1 -1
  30. package/dist/platform/index.cjs.map +1 -1
  31. package/dist/platform/index.d.cts +104 -5
  32. package/dist/platform/index.d.ts +104 -5
  33. package/dist/platform/index.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-3U2UNU3O.cjs +0 -17
  36. package/dist/chunk-3U2UNU3O.cjs.map +0 -1
  37. package/dist/chunk-A3TWEVBP.cjs +0 -280
  38. package/dist/chunk-A3TWEVBP.cjs.map +0 -1
  39. package/dist/chunk-BMLW4U6Y.cjs +0 -2
  40. package/dist/chunk-BMLW4U6Y.cjs.map +0 -1
  41. package/dist/chunk-I7QY5ONI.cjs +0 -50
  42. package/dist/chunk-I7QY5ONI.cjs.map +0 -1
  43. package/dist/chunk-QSCBBEAT.js +0 -280
  44. package/dist/chunk-QSCBBEAT.js.map +0 -1
  45. package/dist/chunk-SBJ5JXIL.js +0 -2
  46. package/dist/chunk-SBJ5JXIL.js.map +0 -1
  47. package/dist/chunk-XE4XPC4G.js +0 -17
  48. package/dist/chunk-XE4XPC4G.js.map +0 -1
  49. package/dist/chunk-Y5HKS7Z3.js +0 -50
  50. package/dist/chunk-Y5HKS7Z3.js.map +0 -1
@@ -134,6 +134,7 @@ declare const executeSqlOptionsSchema: z.ZodObject<{
134
134
  query: z.ZodString;
135
135
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
136
136
  read_only: z.ZodOptional<z.ZodBoolean>;
137
+ max_result_bytes: z.ZodOptional<z.ZodNumber>;
137
138
  }, z.core.$strip>;
138
139
  declare const applyMigrationOptionsSchema: z.ZodObject<{
139
140
  name: z.ZodString;
@@ -144,25 +145,25 @@ declare const migrationSchema: z.ZodObject<{
144
145
  name: z.ZodOptional<z.ZodString>;
145
146
  }, z.core.$strip>;
146
147
  declare const logsServiceSchema: z.ZodEnum<{
147
- auth: "auth";
148
- realtime: "realtime";
149
148
  storage: "storage";
150
149
  api: "api";
151
150
  "branch-action": "branch-action";
152
151
  postgres: "postgres";
153
152
  "edge-function": "edge-function";
154
153
  "edge-function-runtime": "edge-function-runtime";
154
+ auth: "auth";
155
+ realtime: "realtime";
155
156
  }>;
156
157
  declare const getLogsOptionsSchema: z.ZodObject<{
157
158
  service: z.ZodEnum<{
158
- auth: "auth";
159
- realtime: "realtime";
160
159
  storage: "storage";
161
160
  api: "api";
162
161
  "branch-action": "branch-action";
163
162
  postgres: "postgres";
164
163
  "edge-function": "edge-function";
165
164
  "edge-function-runtime": "edge-function-runtime";
165
+ auth: "auth";
166
+ realtime: "realtime";
166
167
  }>;
167
168
  iso_timestamp_start: z.ZodOptional<z.ZodString>;
168
169
  iso_timestamp_end: z.ZodOptional<z.ZodString>;
@@ -248,6 +249,82 @@ declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
248
249
  show_labels: z.ZodBoolean;
249
250
  }, z.core.$strip>>;
250
251
  }, z.core.$strip>], "type">;
252
+ declare const createNotebookOptionsSchema: z.ZodObject<{
253
+ name: z.ZodString;
254
+ description: z.ZodOptional<z.ZodString>;
255
+ content: z.ZodObject<{
256
+ cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ type: z.ZodLiteral<"markdown">;
258
+ text: z.ZodString;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"database">;
261
+ title: z.ZodOptional<z.ZodString>;
262
+ view: z.ZodOptional<z.ZodEnum<{
263
+ table: "table";
264
+ chart: "chart";
265
+ }>>;
266
+ sql: z.ZodString;
267
+ row_limit: z.ZodNumber;
268
+ database_identifier: z.ZodOptional<z.ZodString>;
269
+ chart: z.ZodOptional<z.ZodObject<{
270
+ type: z.ZodEnum<{
271
+ bar: "bar";
272
+ line: "line";
273
+ }>;
274
+ x_column: z.ZodString;
275
+ scale: z.ZodEnum<{
276
+ linear: "linear";
277
+ log: "log";
278
+ }>;
279
+ cumulative: z.ZodBoolean;
280
+ show_labels: z.ZodBoolean;
281
+ y_series: z.ZodArray<z.ZodObject<{
282
+ column: z.ZodString;
283
+ }, z.core.$strict>>;
284
+ }, z.core.$strict>>;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ type: z.ZodLiteral<"log">;
287
+ title: z.ZodOptional<z.ZodString>;
288
+ view: z.ZodOptional<z.ZodEnum<{
289
+ table: "table";
290
+ chart: "chart";
291
+ }>>;
292
+ sql: z.ZodString;
293
+ time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
294
+ type: z.ZodLiteral<"absolute">;
295
+ start: z.ZodISODateTime;
296
+ end: z.ZodISODateTime;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ type: z.ZodLiteral<"relative">;
299
+ unit: z.ZodEnum<{
300
+ minute: "minute";
301
+ hour: "hour";
302
+ day: "day";
303
+ week: "week";
304
+ month: "month";
305
+ year: "year";
306
+ }>;
307
+ amount: z.ZodNumber;
308
+ }, z.core.$strict>], "type">;
309
+ chart: z.ZodOptional<z.ZodObject<{
310
+ type: z.ZodEnum<{
311
+ bar: "bar";
312
+ line: "line";
313
+ }>;
314
+ x_column: z.ZodString;
315
+ scale: z.ZodEnum<{
316
+ linear: "linear";
317
+ log: "log";
318
+ }>;
319
+ cumulative: z.ZodBoolean;
320
+ show_labels: z.ZodBoolean;
321
+ y_series: z.ZodArray<z.ZodObject<{
322
+ column: z.ZodString;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>>;
325
+ }, z.core.$strict>], "type">>;
326
+ }, z.core.$strip>;
327
+ }, z.core.$strip>;
251
328
  declare const notebookSchema: z.ZodObject<{
252
329
  id: z.ZodString;
253
330
  name: z.ZodString;
@@ -376,6 +453,7 @@ type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResul
376
453
  type StorageConfig = z.infer<typeof storageConfigSchema>;
377
454
  type StorageBucket = z.infer<typeof storageBucketSchema>;
378
455
  type NotebookCell = z.infer<typeof notebookCellSchema>;
456
+ type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
379
457
  type Notebook = z.infer<typeof notebookSchema>;
380
458
  type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
381
459
  type DatabaseOperations = {
@@ -459,9 +537,29 @@ type SecretOperations = {
459
537
  getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
460
538
  };
461
539
  type NotebookOperations = {
540
+ /** Optional for platforms that only support reading notebooks. */
541
+ createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
462
542
  listNotebooks(projectId: string): Promise<Notebook[]>;
463
543
  getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
464
544
  };
545
+ type FeedbackOperations = {
546
+ submit(input: {
547
+ feedback: string;
548
+ projectId?: string;
549
+ clientInfo?: {
550
+ name: string;
551
+ version: string;
552
+ };
553
+ }): Promise<{
554
+ deleteToken: string;
555
+ }>;
556
+ delete(input: {
557
+ deleteToken: string;
558
+ projectId?: string;
559
+ }): Promise<{
560
+ deleted: boolean;
561
+ }>;
562
+ };
465
563
  type SupabasePlatform = {
466
564
  init?(info: InitData): Promise<void>;
467
565
  account?: AccountOperations;
@@ -473,6 +571,7 @@ type SupabasePlatform = {
473
571
  branching?: BranchingOperations;
474
572
  secrets?: SecretOperations;
475
573
  notebooks?: NotebookOperations;
574
+ feedback?: FeedbackOperations;
476
575
  };
477
576
 
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 };
577
+ 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, 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 };
@@ -134,6 +134,7 @@ declare const executeSqlOptionsSchema: z.ZodObject<{
134
134
  query: z.ZodString;
135
135
  parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
136
136
  read_only: z.ZodOptional<z.ZodBoolean>;
137
+ max_result_bytes: z.ZodOptional<z.ZodNumber>;
137
138
  }, z.core.$strip>;
138
139
  declare const applyMigrationOptionsSchema: z.ZodObject<{
139
140
  name: z.ZodString;
@@ -144,25 +145,25 @@ declare const migrationSchema: z.ZodObject<{
144
145
  name: z.ZodOptional<z.ZodString>;
145
146
  }, z.core.$strip>;
146
147
  declare const logsServiceSchema: z.ZodEnum<{
147
- auth: "auth";
148
- realtime: "realtime";
149
148
  storage: "storage";
150
149
  api: "api";
151
150
  "branch-action": "branch-action";
152
151
  postgres: "postgres";
153
152
  "edge-function": "edge-function";
154
153
  "edge-function-runtime": "edge-function-runtime";
154
+ auth: "auth";
155
+ realtime: "realtime";
155
156
  }>;
156
157
  declare const getLogsOptionsSchema: z.ZodObject<{
157
158
  service: z.ZodEnum<{
158
- auth: "auth";
159
- realtime: "realtime";
160
159
  storage: "storage";
161
160
  api: "api";
162
161
  "branch-action": "branch-action";
163
162
  postgres: "postgres";
164
163
  "edge-function": "edge-function";
165
164
  "edge-function-runtime": "edge-function-runtime";
165
+ auth: "auth";
166
+ realtime: "realtime";
166
167
  }>;
167
168
  iso_timestamp_start: z.ZodOptional<z.ZodString>;
168
169
  iso_timestamp_end: z.ZodOptional<z.ZodString>;
@@ -248,6 +249,82 @@ declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
248
249
  show_labels: z.ZodBoolean;
249
250
  }, z.core.$strip>>;
250
251
  }, z.core.$strip>], "type">;
252
+ declare const createNotebookOptionsSchema: z.ZodObject<{
253
+ name: z.ZodString;
254
+ description: z.ZodOptional<z.ZodString>;
255
+ content: z.ZodObject<{
256
+ cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ type: z.ZodLiteral<"markdown">;
258
+ text: z.ZodString;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"database">;
261
+ title: z.ZodOptional<z.ZodString>;
262
+ view: z.ZodOptional<z.ZodEnum<{
263
+ table: "table";
264
+ chart: "chart";
265
+ }>>;
266
+ sql: z.ZodString;
267
+ row_limit: z.ZodNumber;
268
+ database_identifier: z.ZodOptional<z.ZodString>;
269
+ chart: z.ZodOptional<z.ZodObject<{
270
+ type: z.ZodEnum<{
271
+ bar: "bar";
272
+ line: "line";
273
+ }>;
274
+ x_column: z.ZodString;
275
+ scale: z.ZodEnum<{
276
+ linear: "linear";
277
+ log: "log";
278
+ }>;
279
+ cumulative: z.ZodBoolean;
280
+ show_labels: z.ZodBoolean;
281
+ y_series: z.ZodArray<z.ZodObject<{
282
+ column: z.ZodString;
283
+ }, z.core.$strict>>;
284
+ }, z.core.$strict>>;
285
+ }, z.core.$strict>, z.ZodObject<{
286
+ type: z.ZodLiteral<"log">;
287
+ title: z.ZodOptional<z.ZodString>;
288
+ view: z.ZodOptional<z.ZodEnum<{
289
+ table: "table";
290
+ chart: "chart";
291
+ }>>;
292
+ sql: z.ZodString;
293
+ time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
294
+ type: z.ZodLiteral<"absolute">;
295
+ start: z.ZodISODateTime;
296
+ end: z.ZodISODateTime;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ type: z.ZodLiteral<"relative">;
299
+ unit: z.ZodEnum<{
300
+ minute: "minute";
301
+ hour: "hour";
302
+ day: "day";
303
+ week: "week";
304
+ month: "month";
305
+ year: "year";
306
+ }>;
307
+ amount: z.ZodNumber;
308
+ }, z.core.$strict>], "type">;
309
+ chart: z.ZodOptional<z.ZodObject<{
310
+ type: z.ZodEnum<{
311
+ bar: "bar";
312
+ line: "line";
313
+ }>;
314
+ x_column: z.ZodString;
315
+ scale: z.ZodEnum<{
316
+ linear: "linear";
317
+ log: "log";
318
+ }>;
319
+ cumulative: z.ZodBoolean;
320
+ show_labels: z.ZodBoolean;
321
+ y_series: z.ZodArray<z.ZodObject<{
322
+ column: z.ZodString;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>>;
325
+ }, z.core.$strict>], "type">>;
326
+ }, z.core.$strip>;
327
+ }, z.core.$strip>;
251
328
  declare const notebookSchema: z.ZodObject<{
252
329
  id: z.ZodString;
253
330
  name: z.ZodString;
@@ -376,6 +453,7 @@ type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResul
376
453
  type StorageConfig = z.infer<typeof storageConfigSchema>;
377
454
  type StorageBucket = z.infer<typeof storageBucketSchema>;
378
455
  type NotebookCell = z.infer<typeof notebookCellSchema>;
456
+ type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
379
457
  type Notebook = z.infer<typeof notebookSchema>;
380
458
  type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
381
459
  type DatabaseOperations = {
@@ -459,9 +537,29 @@ type SecretOperations = {
459
537
  getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
460
538
  };
461
539
  type NotebookOperations = {
540
+ /** Optional for platforms that only support reading notebooks. */
541
+ createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
462
542
  listNotebooks(projectId: string): Promise<Notebook[]>;
463
543
  getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
464
544
  };
545
+ type FeedbackOperations = {
546
+ submit(input: {
547
+ feedback: string;
548
+ projectId?: string;
549
+ clientInfo?: {
550
+ name: string;
551
+ version: string;
552
+ };
553
+ }): Promise<{
554
+ deleteToken: string;
555
+ }>;
556
+ delete(input: {
557
+ deleteToken: string;
558
+ projectId?: string;
559
+ }): Promise<{
560
+ deleted: boolean;
561
+ }>;
562
+ };
465
563
  type SupabasePlatform = {
466
564
  init?(info: InitData): Promise<void>;
467
565
  account?: AccountOperations;
@@ -473,6 +571,7 @@ type SupabasePlatform = {
473
571
  branching?: BranchingOperations;
474
572
  secrets?: SecretOperations;
475
573
  notebooks?: NotebookOperations;
574
+ feedback?: FeedbackOperations;
476
575
  };
477
576
 
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 };
577
+ 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, 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 };
@@ -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-SBJ5JXIL.js";export{v as apiKeyTypeSchema,m as applyMigrationOptionsSchema,e as branchSchema,i as createBranchOptionsSchema,h as createProjectOptionsSchema,k as deployEdgeFunctionOptionsSchema,f as edgeFunctionSchema,g as edgeFunctionWithBodySchema,l as executeSqlOptionsSchema,r as generateTypescriptTypesResultSchema,p as getLogsOptionsSchema,o as logsServiceSchema,n as migrationSchema,s as notebookCellSchema,t as notebookSchema,u as notebookWithContentSchema,c as organizationSchema,d as projectSchema,q as queryLogsOptionsSchema,j as resetBranchOptionsSchema,a as storageBucketSchema,b as storageConfigSchema};
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}from"../chunk-K35CHAKZ.js";export{w as apiKeyTypeSchema,m as applyMigrationOptionsSchema,e as branchSchema,i as createBranchOptionsSchema,t as createNotebookOptionsSchema,h as createProjectOptionsSchema,k as deployEdgeFunctionOptionsSchema,f as edgeFunctionSchema,g as edgeFunctionWithBodySchema,l as executeSqlOptionsSchema,r as generateTypescriptTypesResultSchema,p as getLogsOptionsSchema,o as logsServiceSchema,n as migrationSchema,s as notebookCellSchema,u as notebookSchema,v as notebookWithContentSchema,c as organizationSchema,d as projectSchema,q as queryLogsOptionsSchema,j as resetBranchOptionsSchema,a as storageBucketSchema,b as storageConfigSchema};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@supabase/mcp-server-supabase",
3
3
  "mcpName": "com.supabase/mcp",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "description": "MCP server for interacting with Supabase",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -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]}