@supabase/mcp-server-supabase 0.13.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 +550 -17
  24. package/dist/index.d.ts +550 -17
  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 +290 -1
  32. package/dist/platform/index.d.ts +290 -1
  33. package/dist/platform/index.js +1 -1
  34. package/package.json +2 -2
  35. package/dist/chunk-536WYGSZ.cjs +0 -2
  36. package/dist/chunk-536WYGSZ.cjs.map +0 -1
  37. package/dist/chunk-BAHK6DOT.js +0 -280
  38. package/dist/chunk-BAHK6DOT.js.map +0 -1
  39. package/dist/chunk-ETDG2YWQ.cjs +0 -50
  40. package/dist/chunk-ETDG2YWQ.cjs.map +0 -1
  41. package/dist/chunk-HJCSISZG.cjs +0 -280
  42. package/dist/chunk-HJCSISZG.cjs.map +0 -1
  43. package/dist/chunk-LGYQEOKZ.js +0 -2
  44. package/dist/chunk-LGYQEOKZ.js.map +0 -1
  45. package/dist/chunk-MGV6E7CY.js +0 -17
  46. package/dist/chunk-MGV6E7CY.js.map +0 -1
  47. package/dist/chunk-UY7NVUDB.cjs +0 -17
  48. package/dist/chunk-UY7NVUDB.cjs.map +0 -1
  49. package/dist/chunk-ZKX2YAIQ.js +0 -50
  50. package/dist/chunk-ZKX2YAIQ.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;
@@ -175,6 +176,263 @@ declare const queryLogsOptionsSchema: z.ZodObject<{
175
176
  declare const generateTypescriptTypesResultSchema: z.ZodObject<{
176
177
  types: z.ZodString;
177
178
  }, z.core.$strip>;
179
+ declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
180
+ id: z.ZodString;
181
+ type: z.ZodLiteral<"markdown">;
182
+ text: z.ZodString;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ id: z.ZodString;
185
+ type: z.ZodLiteral<"database">;
186
+ sql: z.ZodString;
187
+ row_limit: z.ZodNumber;
188
+ database_identifier: z.ZodOptional<z.ZodString>;
189
+ title: z.ZodOptional<z.ZodString>;
190
+ view: z.ZodOptional<z.ZodEnum<{
191
+ table: "table";
192
+ chart: "chart";
193
+ }>>;
194
+ chart: z.ZodOptional<z.ZodObject<{
195
+ type: z.ZodEnum<{
196
+ bar: "bar";
197
+ line: "line";
198
+ }>;
199
+ x_column: z.ZodString;
200
+ y_series: z.ZodArray<z.ZodObject<{
201
+ column: z.ZodString;
202
+ }, z.core.$strip>>;
203
+ scale: z.ZodEnum<{
204
+ linear: "linear";
205
+ log: "log";
206
+ }>;
207
+ cumulative: z.ZodBoolean;
208
+ show_labels: z.ZodBoolean;
209
+ }, z.core.$strip>>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ id: z.ZodString;
212
+ type: z.ZodLiteral<"log">;
213
+ sql: z.ZodString;
214
+ time_range: z.ZodUnion<readonly [z.ZodObject<{
215
+ type: z.ZodLiteral<"absolute">;
216
+ start: z.ZodString;
217
+ end: z.ZodString;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ type: z.ZodLiteral<"relative">;
220
+ unit: z.ZodEnum<{
221
+ minute: "minute";
222
+ hour: "hour";
223
+ day: "day";
224
+ week: "week";
225
+ month: "month";
226
+ year: "year";
227
+ }>;
228
+ amount: z.ZodNumber;
229
+ }, z.core.$strip>]>;
230
+ title: z.ZodOptional<z.ZodString>;
231
+ view: z.ZodOptional<z.ZodEnum<{
232
+ table: "table";
233
+ chart: "chart";
234
+ }>>;
235
+ chart: z.ZodOptional<z.ZodObject<{
236
+ type: z.ZodEnum<{
237
+ bar: "bar";
238
+ line: "line";
239
+ }>;
240
+ x_column: z.ZodString;
241
+ y_series: z.ZodArray<z.ZodObject<{
242
+ column: z.ZodString;
243
+ }, z.core.$strip>>;
244
+ scale: z.ZodEnum<{
245
+ linear: "linear";
246
+ log: "log";
247
+ }>;
248
+ cumulative: z.ZodBoolean;
249
+ show_labels: z.ZodBoolean;
250
+ }, z.core.$strip>>;
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>;
328
+ declare const notebookSchema: z.ZodObject<{
329
+ id: z.ZodString;
330
+ name: z.ZodString;
331
+ description: z.ZodNullable<z.ZodString>;
332
+ favorite: z.ZodBoolean;
333
+ inserted_at: z.ZodString;
334
+ updated_at: z.ZodString;
335
+ owner: z.ZodNullable<z.ZodObject<{
336
+ id: z.ZodNumber;
337
+ username: z.ZodString;
338
+ }, z.core.$strip>>;
339
+ updated_by: z.ZodNullable<z.ZodObject<{
340
+ id: z.ZodNumber;
341
+ username: z.ZodString;
342
+ }, z.core.$strip>>;
343
+ }, z.core.$strip>;
344
+ declare const notebookWithContentSchema: z.ZodObject<{
345
+ id: z.ZodString;
346
+ name: z.ZodString;
347
+ description: z.ZodNullable<z.ZodString>;
348
+ favorite: z.ZodBoolean;
349
+ inserted_at: z.ZodString;
350
+ updated_at: z.ZodString;
351
+ owner: z.ZodNullable<z.ZodObject<{
352
+ id: z.ZodNumber;
353
+ username: z.ZodString;
354
+ }, z.core.$strip>>;
355
+ updated_by: z.ZodNullable<z.ZodObject<{
356
+ id: z.ZodNumber;
357
+ username: z.ZodString;
358
+ }, z.core.$strip>>;
359
+ content: z.ZodObject<{
360
+ schema_version: z.ZodNumber;
361
+ cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
362
+ id: z.ZodString;
363
+ type: z.ZodLiteral<"markdown">;
364
+ text: z.ZodString;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ id: z.ZodString;
367
+ type: z.ZodLiteral<"database">;
368
+ sql: z.ZodString;
369
+ row_limit: z.ZodNumber;
370
+ database_identifier: z.ZodOptional<z.ZodString>;
371
+ title: z.ZodOptional<z.ZodString>;
372
+ view: z.ZodOptional<z.ZodEnum<{
373
+ table: "table";
374
+ chart: "chart";
375
+ }>>;
376
+ chart: z.ZodOptional<z.ZodObject<{
377
+ type: z.ZodEnum<{
378
+ bar: "bar";
379
+ line: "line";
380
+ }>;
381
+ x_column: z.ZodString;
382
+ y_series: z.ZodArray<z.ZodObject<{
383
+ column: z.ZodString;
384
+ }, z.core.$strip>>;
385
+ scale: z.ZodEnum<{
386
+ linear: "linear";
387
+ log: "log";
388
+ }>;
389
+ cumulative: z.ZodBoolean;
390
+ show_labels: z.ZodBoolean;
391
+ }, z.core.$strip>>;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ id: z.ZodString;
394
+ type: z.ZodLiteral<"log">;
395
+ sql: z.ZodString;
396
+ time_range: z.ZodUnion<readonly [z.ZodObject<{
397
+ type: z.ZodLiteral<"absolute">;
398
+ start: z.ZodString;
399
+ end: z.ZodString;
400
+ }, z.core.$strip>, z.ZodObject<{
401
+ type: z.ZodLiteral<"relative">;
402
+ unit: z.ZodEnum<{
403
+ minute: "minute";
404
+ hour: "hour";
405
+ day: "day";
406
+ week: "week";
407
+ month: "month";
408
+ year: "year";
409
+ }>;
410
+ amount: z.ZodNumber;
411
+ }, z.core.$strip>]>;
412
+ title: z.ZodOptional<z.ZodString>;
413
+ view: z.ZodOptional<z.ZodEnum<{
414
+ table: "table";
415
+ chart: "chart";
416
+ }>>;
417
+ chart: z.ZodOptional<z.ZodObject<{
418
+ type: z.ZodEnum<{
419
+ bar: "bar";
420
+ line: "line";
421
+ }>;
422
+ x_column: z.ZodString;
423
+ y_series: z.ZodArray<z.ZodObject<{
424
+ column: z.ZodString;
425
+ }, z.core.$strip>>;
426
+ scale: z.ZodEnum<{
427
+ linear: "linear";
428
+ log: "log";
429
+ }>;
430
+ cumulative: z.ZodBoolean;
431
+ show_labels: z.ZodBoolean;
432
+ }, z.core.$strip>>;
433
+ }, z.core.$strip>], "type">>;
434
+ }, z.core.$strip>;
435
+ }, z.core.$strip>;
178
436
  type Organization = z.infer<typeof organizationSchema>;
179
437
  type Project = z.infer<typeof projectSchema>;
180
438
  type Branch = z.infer<typeof branchSchema>;
@@ -194,6 +452,10 @@ type QueryLogsOptions = z.infer<typeof queryLogsOptionsSchema>;
194
452
  type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResultSchema>;
195
453
  type StorageConfig = z.infer<typeof storageConfigSchema>;
196
454
  type StorageBucket = z.infer<typeof storageBucketSchema>;
455
+ type NotebookCell = z.infer<typeof notebookCellSchema>;
456
+ type CreateNotebookOptions = z.infer<typeof createNotebookOptionsSchema>;
457
+ type Notebook = z.infer<typeof notebookSchema>;
458
+ type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
197
459
  type DatabaseOperations = {
198
460
  executeSql<T>(projectId: string, options: ExecuteSqlOptions): Promise<T[]>;
199
461
  listMigrations(projectId: string): Promise<Migration[]>;
@@ -234,6 +496,7 @@ type DebuggingOperations = {
234
496
  queryLogs?(projectId: string, options: QueryLogsOptions): Promise<unknown>;
235
497
  getSecurityAdvisors(projectId: string): Promise<unknown>;
236
498
  getPerformanceAdvisors(projectId: string): Promise<unknown>;
499
+ getHealthAdvisors?(projectId: string): Promise<unknown>;
237
500
  };
238
501
  declare const apiKeyTypeSchema: z.ZodEnum<{
239
502
  legacy: "legacy";
@@ -273,6 +536,30 @@ type BranchingOperations = {
273
536
  type SecretOperations = {
274
537
  getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
275
538
  };
539
+ type NotebookOperations = {
540
+ /** Optional for platforms that only support reading notebooks. */
541
+ createNotebook?(projectId: string, options: CreateNotebookOptions): Promise<NotebookWithContent>;
542
+ listNotebooks(projectId: string): Promise<Notebook[]>;
543
+ getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
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
+ };
276
563
  type SupabasePlatform = {
277
564
  init?(info: InitData): Promise<void>;
278
565
  account?: AccountOperations;
@@ -283,6 +570,8 @@ type SupabasePlatform = {
283
570
  storage?: StorageOperations;
284
571
  branching?: BranchingOperations;
285
572
  secrets?: SecretOperations;
573
+ notebooks?: NotebookOperations;
574
+ feedback?: FeedbackOperations;
286
575
  };
287
576
 
288
- 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 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, 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}from"../chunk-LGYQEOKZ.js";export{s 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,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.13.0",
4
+ "version": "0.15.0",
5
5
  "description": "MCP server for interacting with Supabase",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "gqlmin": "^0.3.1",
43
43
  "graphql": "^16.11.0",
44
44
  "openapi-fetch": "^0.13.5",
45
- "@supabase/mcp-utils": "^0.8.0"
45
+ "@supabase/mcp-utils": "^0.9.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@modelcontextprotocol/server": "^2.0.0",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _v4 = require('zod/v4');var t=["us-west-1","us-east-1","us-east-2","ca-central-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-central-2","eu-north-1","ap-south-1","ap-southeast-1","ap-northeast-1","ap-northeast-2","ap-southeast-2","sa-east-1"];var a=_v4.z.object({id:_v4.z.string(),name:_v4.z.string(),owner:_v4.z.string(),created_at:_v4.z.string(),updated_at:_v4.z.string(),public:_v4.z.boolean()}),p= exports.c =_v4.z.object({fileSizeLimit:_v4.z.number().int().min(0).max(536870912e3),features:_v4.z.object({imageTransformation:_v4.z.object({enabled:_v4.z.boolean()}),s3Protocol:_v4.z.object({enabled:_v4.z.boolean()})})}),c= exports.d =_v4.z.object({id:_v4.z.string(),name:_v4.z.string(),plan:_v4.z.string().optional(),allowed_release_channels:_v4.z.array(_v4.z.string()),opt_in_tags:_v4.z.array(_v4.z.string())}),g= exports.e =_v4.z.object({id:_v4.z.string(),ref:_v4.z.string(),organization_id:_v4.z.string(),organization_slug:_v4.z.string(),name:_v4.z.string(),status:_v4.z.string(),created_at:_v4.z.string(),region:_v4.z.string()}),m= exports.f =_v4.z.object({id:_v4.z.string(),name:_v4.z.string(),project_ref:_v4.z.string(),parent_project_ref:_v4.z.string(),is_default:_v4.z.boolean(),git_branch:_v4.z.string().optional(),pr_number:_v4.z.number().optional(),latest_check_run_id:_v4.z.number().optional(),persistent:_v4.z.boolean(),status:_v4.z.enum(["CREATING_PROJECT","RUNNING_MIGRATIONS","MIGRATIONS_PASSED","MIGRATIONS_FAILED","FUNCTIONS_DEPLOYED","FUNCTIONS_FAILED"]),created_at:_v4.z.string(),updated_at:_v4.z.string()}),o= exports.g =_v4.z.object({id:_v4.z.string(),slug:_v4.z.string(),name:_v4.z.string(),status:_v4.z.string(),version:_v4.z.number(),created_at:_v4.z.number().optional(),updated_at:_v4.z.number().optional(),verify_jwt:_v4.z.boolean().optional(),import_map:_v4.z.boolean().optional(),import_map_path:_v4.z.string().optional(),entrypoint_path:_v4.z.string().optional()}),y= exports.h =o.extend({files:_v4.z.array(_v4.z.object({name:_v4.z.string(),content:_v4.z.string()}))}),u= exports.i =_v4.z.object({name:_v4.z.string().min(1).max(256),organization_id:_v4.z.string(),region:_v4.z.enum(t),db_pass:_v4.z.string().optional()}),d= exports.j =_v4.z.object({name:_v4.z.string().min(1)}),l= exports.k =_v4.z.object({migration_version:_v4.z.string().optional()}),h= exports.l =_v4.z.object({name:_v4.z.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/),entrypoint_path:_v4.z.string(),import_map_path:_v4.z.string().optional(),verify_jwt:_v4.z.boolean().optional(),files:_v4.z.array(_v4.z.object({name:_v4.z.string(),content:_v4.z.string()}))}),S= exports.m =_v4.z.object({query:_v4.z.string().min(1),parameters:_v4.z.array(_v4.z.unknown()).optional(),read_only:_v4.z.boolean().optional()}),f= exports.n =_v4.z.object({name:_v4.z.string().min(1),query:_v4.z.string().min(1)}),b= exports.o =_v4.z.object({version:_v4.z.string(),name:_v4.z.string().optional()}),n= exports.p =_v4.z.enum(["api","branch-action","postgres","edge-function","edge-function-runtime","auth","storage","realtime"]),O= exports.q =_v4.z.object({service:n,iso_timestamp_start:_v4.z.string().optional(),iso_timestamp_end:_v4.z.string().optional()}),j= exports.r =_v4.z.object({sql:_v4.z.string().min(1),iso_timestamp_start:_v4.z.string().optional(),iso_timestamp_end:_v4.z.string().optional()}),x= exports.s =_v4.z.object({types:_v4.z.string()}),_= exports.t =_v4.z.enum(["legacy","publishable"]);exports.a = t; exports.b = a; exports.c = p; exports.d = c; exports.e = g; exports.f = m; exports.g = o; exports.h = y; exports.i = u; exports.j = d; exports.k = l; exports.l = h; exports.m = S; exports.n = f; exports.o = b; exports.p = n; exports.q = O; exports.r = j; exports.s = x; exports.t = _;
2
- //# sourceMappingURL=chunk-536WYGSZ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/platform/types.ts","../src/regions.ts"],"names":["AWS_REGION_CODES","storageBucketSchema","z","storageConfigSchema","organizationSchema","projectSchema","branchSchema","edgeFunctionSchema","edgeFunctionWithBodySchema","createProjectOptionsSchema","createBranchOptionsSchema","resetBranchOptionsSchema","deployEdgeFunctionOptionsSchema","executeSqlOptionsSchema","applyMigrationOptionsSchema","migrationSchema","logsServiceSchema","getLogsOptionsSchema","queryLogsOptionsSchema","generateTypescriptTypesResultSchema","apiKeyTypeSchema"],"mappings":"AACA,qGAAkB,ICDLA,CAAAA,CAAmB,CAC9B,WAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CACA,WAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CACA,cAAA,CACA,YAAA,CACA,YAAA,CACA,gBAAA,CACA,gBAAA,CACA,gBAAA,CACA,g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AAAA,aAAsCjB,KAAAA,CAAE,MAAA,CAAO,CAC1D,KAAA,CAAOA,KAAAA,CAAE,MAAA,CAAO,CAClB,CAAC,CAAA,CAiFYkB,CAAAA,aAAmBlB,KAAAA,CAAE,IAAA,CAAK,CAAC,QAAA,CAAU,aAAa,CAAC,CAAA,CAAA,2SAAA","file":"/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/chunk-536WYGSZ.cjs","sourcesContent":["import type { InitData } from '@supabase/mcp-utils';\nimport { z } from 'zod/v4';\nimport { AWS_REGION_CODES } from '../regions.js';\n\nexport type SuccessResponse = {\n success: true;\n};\n\nexport const storageBucketSchema = z.object({\n id: z.string(),\n name: z.string(),\n owner: z.string(),\n created_at: z.string(),\n updated_at: z.string(),\n public: z.boolean(),\n});\n\nexport const storageConfigSchema = z.object({\n fileSizeLimit: z.number().int().min(0).max(536_870_912_000), // 500GB\n features: z.object({\n imageTransformation: z.object({ enabled: z.boolean() }),\n s3Protocol: z.object({ enabled: z.boolean() }),\n }),\n});\n\nexport const organizationSchema = z.object({\n id: z.string(),\n name: z.string(),\n plan: z.string().optional(),\n allowed_release_channels: z.array(z.string()),\n opt_in_tags: z.array(z.string()),\n});\n\nexport const projectSchema = z.object({\n id: z.string(),\n ref: z.string(),\n organization_id: z.string(),\n organization_slug: z.string(),\n name: z.string(),\n status: z.string(),\n created_at: z.string(),\n region: z.string(),\n});\n\nexport const branchSchema = z.object({\n id: z.string(),\n name: z.string(),\n project_ref: z.string(),\n parent_project_ref: z.string(),\n is_default: z.boolean(),\n git_branch: z.string().optional(),\n pr_number: z.number().optional(),\n latest_check_run_id: z.number().optional(),\n persistent: z.boolean(),\n status: z.enum([\n 'CREATING_PROJECT',\n 'RUNNING_MIGRATIONS',\n 'MIGRATIONS_PASSED',\n 'MIGRATIONS_FAILED',\n 'FUNCTIONS_DEPLOYED',\n 'FUNCTIONS_FAILED',\n ]),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport const edgeFunctionSchema = z.object({\n id: z.string(),\n slug: z.string(),\n name: z.string(),\n status: z.string(),\n version: z.number(),\n created_at: z.number().optional(),\n updated_at: z.number().optional(),\n verify_jwt: z.boolean().optional(),\n import_map: z.boolean().optional(),\n import_map_path: z.string().optional(),\n entrypoint_path: z.string().optional(),\n});\n\nexport const edgeFunctionWithBodySchema = edgeFunctionSchema.extend({\n files: z.array(\n z.object({\n name: z.string(),\n content: z.string(),\n })\n ),\n});\n\nexport const createProjectOptionsSchema = z.object({\n name: z.string().min(1).max(256),\n organization_id: z.string(),\n region: z.enum(AWS_REGION_CODES),\n db_pass: z.string().optional(),\n});\n\nexport const createBranchOptionsSchema = z.object({\n name: z.string().min(1),\n});\n\nexport const resetBranchOptionsSchema = z.object({\n migration_version: z.string().optional(),\n});\n\nexport const deployEdgeFunctionOptionsSchema = z.object({\n name: z.string().regex(/^[A-Za-z][A-Za-z0-9_-]*$/),\n entrypoint_path: z.string(),\n import_map_path: z.string().optional(),\n verify_jwt: z.boolean().optional(),\n files: z.array(\n z.object({\n name: z.string(),\n content: z.string(),\n })\n ),\n});\n\nexport const executeSqlOptionsSchema = z.object({\n query: z.string().min(1),\n parameters: z.array(z.unknown()).optional(),\n read_only: z.boolean().optional(),\n});\n\nexport const applyMigrationOptionsSchema = z.object({\n name: z.string().min(1),\n query: z.string().min(1),\n});\n\nexport const migrationSchema = z.object({\n version: z.string(),\n name: z.string().optional(),\n});\n\nexport const logsServiceSchema = z.enum([\n 'api',\n 'branch-action',\n 'postgres',\n 'edge-function',\n 'edge-function-runtime',\n 'auth',\n 'storage',\n 'realtime',\n]);\n\nexport const getLogsOptionsSchema = z.object({\n service: logsServiceSchema,\n iso_timestamp_start: z.string().optional(),\n iso_timestamp_end: z.string().optional(),\n});\n\nexport const queryLogsOptionsSchema = z.object({\n sql: z.string().min(1),\n iso_timestamp_start: z.string().optional(),\n iso_timestamp_end: z.string().optional(),\n});\n\nexport const generateTypescriptTypesResultSchema = z.object({\n types: z.string(),\n});\n\nexport type Organization = z.infer<typeof organizationSchema>;\nexport type Project = z.infer<typeof projectSchema>;\nexport type Branch = z.infer<typeof branchSchema>;\nexport type EdgeFunction = z.infer<typeof edgeFunctionSchema>;\nexport type EdgeFunctionWithBody = z.infer<typeof edgeFunctionWithBodySchema>;\n\nexport type CreateProjectOptions = z.infer<typeof createProjectOptionsSchema>;\nexport type CreateBranchOptions = z.infer<typeof createBranchOptionsSchema>;\nexport type ResetBranchOptions = z.infer<typeof resetBranchOptionsSchema>;\nexport type DeployEdgeFunctionOptions = z.infer<\n typeof deployEdgeFunctionOptionsSchema\n>;\n\nexport type ExecuteSqlOptions = z.infer<typeof executeSqlOptionsSchema>;\nexport type ApplyMigrationOptions = z.infer<typeof applyMigrationOptionsSchema>;\nexport type Migration = z.infer<typeof migrationSchema>;\nexport type ListMigrationsResult = z.infer<typeof migrationSchema>;\n\nexport type LogsService = z.infer<typeof logsServiceSchema>;\nexport type GetLogsOptions = z.infer<typeof getLogsOptionsSchema>;\nexport type QueryLogsOptions = z.infer<typeof queryLogsOptionsSchema>;\nexport type GenerateTypescriptTypesResult = z.infer<\n typeof generateTypescriptTypesResultSchema\n>;\n\nexport type StorageConfig = z.infer<typeof storageConfigSchema>;\nexport type StorageBucket = z.infer<typeof storageBucketSchema>;\n\nexport type DatabaseOperations = {\n executeSql<T>(projectId: string, options: ExecuteSqlOptions): Promise<T[]>;\n listMigrations(projectId: string): Promise<Migration[]>;\n applyMigration(\n projectId: string,\n options: ApplyMigrationOptions\n ): Promise<void>;\n};\n\nexport type AccountOperations = {\n listOrganizations(): Promise<{ id: string; slug: string; name: string }[]>;\n getOrganization(organizationId: string): Promise<Organization>;\n listProjects(): Promise<Project[]>;\n getProject(projectId: string): Promise<Project>;\n createProject(options: CreateProjectOptions): Promise<Project>;\n pauseProject(projectId: string): Promise<void>;\n restoreProject(projectId: string): Promise<void>;\n};\n\nexport type EdgeFunctionsOperations = {\n listEdgeFunctions(projectId: string): Promise<EdgeFunction[]>;\n getEdgeFunction(\n projectId: string,\n functionSlug: string\n ): Promise<EdgeFunctionWithBody>;\n deployEdgeFunction(\n projectId: string,\n options: DeployEdgeFunctionOptions\n ): Promise<Omit<EdgeFunction, 'files'>>;\n};\n\n/**\n * SQL dialect that a platform's logs endpoint speaks. Selects the\n * dialect-appropriate `query_logs` description and `sql` parameter hint so a\n * single tool can roll out across environments that back logs with different\n * engines (hosted ClickHouse vs. self-hosted/CLI BigQuery).\n */\nexport type LogsDialect = 'clickhouse' | 'bigquery';\n\nexport type DebuggingOperations = {\n /**\n * SQL dialect accepted by `queryLogs`. Defaults to `'clickhouse'` when unset,\n * preserving the behavior of platforms that predate this field.\n */\n logsDialect?: LogsDialect;\n getLogs(projectId: string, options: GetLogsOptions): Promise<unknown>;\n queryLogs?(projectId: string, options: QueryLogsOptions): Promise<unknown>;\n getSecurityAdvisors(projectId: string): Promise<unknown>;\n getPerformanceAdvisors(projectId: string): Promise<unknown>;\n};\n\nexport const apiKeyTypeSchema = z.enum(['legacy', 'publishable']);\nexport type ApiKeyType = z.infer<typeof apiKeyTypeSchema>;\n\nexport type ApiKey = {\n api_key: string;\n name: string;\n type: ApiKeyType;\n description?: string;\n id?: string;\n disabled?: boolean;\n};\n\nexport type DevelopmentOperations = {\n getProjectUrl(projectId: string): Promise<string>;\n getPublishableKeys(projectId: string): Promise<ApiKey[]>;\n generateTypescriptTypes(\n projectId: string\n ): Promise<GenerateTypescriptTypesResult>;\n};\n\nexport type StorageOperations = {\n getStorageConfig(projectId: string): Promise<StorageConfig>;\n updateStorageConfig(projectId: string, config: StorageConfig): Promise<void>;\n listAllBuckets(projectId: string): Promise<StorageBucket[]>;\n};\n\nexport type BranchingOperations = {\n listBranches(projectId: string): Promise<Branch[]>;\n createBranch(\n projectId: string,\n options: CreateBranchOptions\n ): Promise<Branch>;\n deleteBranch(branchId: string): Promise<void>;\n mergeBranch(branchId: string): Promise<void>;\n resetBranch(branchId: string, options: ResetBranchOptions): Promise<void>;\n rebaseBranch(branchId: string): Promise<void>;\n};\n\n/**\n * Returns only the `updated_at` timestamp of the named secret, never its\n * value or digest.\n */\nexport type SecretOperations = {\n getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;\n};\n\nexport type SupabasePlatform = {\n init?(info: InitData): Promise<void>;\n account?: AccountOperations;\n database?: DatabaseOperations;\n functions?: EdgeFunctionsOperations;\n debugging?: DebuggingOperations;\n development?: DevelopmentOperations;\n storage?: StorageOperations;\n branching?: BranchingOperations;\n secrets?: SecretOperations;\n};\n","export const AWS_REGION_CODES = [\n 'us-west-1',\n 'us-east-1',\n 'us-east-2',\n 'ca-central-1',\n 'eu-west-1',\n 'eu-west-2',\n 'eu-west-3',\n 'eu-central-1',\n 'eu-central-2',\n 'eu-north-1',\n 'ap-south-1',\n 'ap-southeast-1',\n 'ap-northeast-1',\n 'ap-northeast-2',\n 'ap-southeast-2',\n 'sa-east-1',\n] as const;\n"]}