@supabase/mcp-server-supabase 0.13.0 → 0.14.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-UY7NVUDB.cjs → chunk-3U2UNU3O.cjs} +2 -2
- package/dist/{chunk-UY7NVUDB.cjs.map → chunk-3U2UNU3O.cjs.map} +1 -1
- package/dist/chunk-A3TWEVBP.cjs +280 -0
- package/dist/chunk-A3TWEVBP.cjs.map +1 -0
- package/dist/chunk-BMLW4U6Y.cjs +2 -0
- package/dist/chunk-BMLW4U6Y.cjs.map +1 -0
- package/dist/chunk-I7QY5ONI.cjs +50 -0
- package/dist/chunk-I7QY5ONI.cjs.map +1 -0
- package/dist/chunk-QSCBBEAT.js +280 -0
- package/dist/chunk-QSCBBEAT.js.map +1 -0
- package/dist/chunk-SBJ5JXIL.js +2 -0
- package/dist/chunk-SBJ5JXIL.js.map +1 -0
- package/dist/{chunk-MGV6E7CY.js → chunk-XE4XPC4G.js} +2 -2
- package/dist/{chunk-MGV6E7CY.js.map → chunk-XE4XPC4G.js.map} +1 -1
- package/dist/chunk-Y5HKS7Z3.js +50 -0
- package/dist/chunk-Y5HKS7Z3.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +194 -18
- package/dist/index.d.ts +194 -18
- 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 +195 -5
- package/dist/platform/index.d.ts +195 -5
- package/dist/platform/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-536WYGSZ.cjs +0 -2
- package/dist/chunk-536WYGSZ.cjs.map +0 -1
- package/dist/chunk-BAHK6DOT.js +0 -280
- package/dist/chunk-BAHK6DOT.js.map +0 -1
- package/dist/chunk-ETDG2YWQ.cjs +0 -50
- package/dist/chunk-ETDG2YWQ.cjs.map +0 -1
- package/dist/chunk-HJCSISZG.cjs +0 -280
- package/dist/chunk-HJCSISZG.cjs.map +0 -1
- package/dist/chunk-LGYQEOKZ.js +0 -2
- package/dist/chunk-LGYQEOKZ.js.map +0 -1
- package/dist/chunk-ZKX2YAIQ.js +0 -50
- package/dist/chunk-ZKX2YAIQ.js.map +0 -1
package/dist/platform/index.d.ts
CHANGED
|
@@ -144,25 +144,25 @@ declare const migrationSchema: z.ZodObject<{
|
|
|
144
144
|
name: z.ZodOptional<z.ZodString>;
|
|
145
145
|
}, z.core.$strip>;
|
|
146
146
|
declare const logsServiceSchema: z.ZodEnum<{
|
|
147
|
+
auth: "auth";
|
|
148
|
+
realtime: "realtime";
|
|
147
149
|
storage: "storage";
|
|
148
150
|
api: "api";
|
|
149
151
|
"branch-action": "branch-action";
|
|
150
152
|
postgres: "postgres";
|
|
151
153
|
"edge-function": "edge-function";
|
|
152
154
|
"edge-function-runtime": "edge-function-runtime";
|
|
153
|
-
auth: "auth";
|
|
154
|
-
realtime: "realtime";
|
|
155
155
|
}>;
|
|
156
156
|
declare const getLogsOptionsSchema: z.ZodObject<{
|
|
157
157
|
service: z.ZodEnum<{
|
|
158
|
+
auth: "auth";
|
|
159
|
+
realtime: "realtime";
|
|
158
160
|
storage: "storage";
|
|
159
161
|
api: "api";
|
|
160
162
|
"branch-action": "branch-action";
|
|
161
163
|
postgres: "postgres";
|
|
162
164
|
"edge-function": "edge-function";
|
|
163
165
|
"edge-function-runtime": "edge-function-runtime";
|
|
164
|
-
auth: "auth";
|
|
165
|
-
realtime: "realtime";
|
|
166
166
|
}>;
|
|
167
167
|
iso_timestamp_start: z.ZodOptional<z.ZodString>;
|
|
168
168
|
iso_timestamp_end: z.ZodOptional<z.ZodString>;
|
|
@@ -175,6 +175,187 @@ declare const queryLogsOptionsSchema: z.ZodObject<{
|
|
|
175
175
|
declare const generateTypescriptTypesResultSchema: z.ZodObject<{
|
|
176
176
|
types: z.ZodString;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
|
+
declare const notebookCellSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
type: z.ZodLiteral<"markdown">;
|
|
181
|
+
text: z.ZodString;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
type: z.ZodLiteral<"database">;
|
|
185
|
+
sql: z.ZodString;
|
|
186
|
+
row_limit: z.ZodNumber;
|
|
187
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
188
|
+
title: z.ZodOptional<z.ZodString>;
|
|
189
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
table: "table";
|
|
191
|
+
chart: "chart";
|
|
192
|
+
}>>;
|
|
193
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
type: z.ZodEnum<{
|
|
195
|
+
bar: "bar";
|
|
196
|
+
line: "line";
|
|
197
|
+
}>;
|
|
198
|
+
x_column: z.ZodString;
|
|
199
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
200
|
+
column: z.ZodString;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
scale: z.ZodEnum<{
|
|
203
|
+
linear: "linear";
|
|
204
|
+
log: "log";
|
|
205
|
+
}>;
|
|
206
|
+
cumulative: z.ZodBoolean;
|
|
207
|
+
show_labels: z.ZodBoolean;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
id: z.ZodString;
|
|
211
|
+
type: z.ZodLiteral<"log">;
|
|
212
|
+
sql: z.ZodString;
|
|
213
|
+
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"absolute">;
|
|
215
|
+
start: z.ZodString;
|
|
216
|
+
end: z.ZodString;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"relative">;
|
|
219
|
+
unit: z.ZodEnum<{
|
|
220
|
+
minute: "minute";
|
|
221
|
+
hour: "hour";
|
|
222
|
+
day: "day";
|
|
223
|
+
week: "week";
|
|
224
|
+
month: "month";
|
|
225
|
+
year: "year";
|
|
226
|
+
}>;
|
|
227
|
+
amount: z.ZodNumber;
|
|
228
|
+
}, z.core.$strip>]>;
|
|
229
|
+
title: z.ZodOptional<z.ZodString>;
|
|
230
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
table: "table";
|
|
232
|
+
chart: "chart";
|
|
233
|
+
}>>;
|
|
234
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
type: z.ZodEnum<{
|
|
236
|
+
bar: "bar";
|
|
237
|
+
line: "line";
|
|
238
|
+
}>;
|
|
239
|
+
x_column: z.ZodString;
|
|
240
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
241
|
+
column: z.ZodString;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
scale: z.ZodEnum<{
|
|
244
|
+
linear: "linear";
|
|
245
|
+
log: "log";
|
|
246
|
+
}>;
|
|
247
|
+
cumulative: z.ZodBoolean;
|
|
248
|
+
show_labels: z.ZodBoolean;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
}, z.core.$strip>], "type">;
|
|
251
|
+
declare const notebookSchema: z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
description: z.ZodNullable<z.ZodString>;
|
|
255
|
+
favorite: z.ZodBoolean;
|
|
256
|
+
inserted_at: z.ZodString;
|
|
257
|
+
updated_at: z.ZodString;
|
|
258
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
259
|
+
id: z.ZodNumber;
|
|
260
|
+
username: z.ZodString;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
updated_by: z.ZodNullable<z.ZodObject<{
|
|
263
|
+
id: z.ZodNumber;
|
|
264
|
+
username: z.ZodString;
|
|
265
|
+
}, z.core.$strip>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
declare const notebookWithContentSchema: z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
name: z.ZodString;
|
|
270
|
+
description: z.ZodNullable<z.ZodString>;
|
|
271
|
+
favorite: z.ZodBoolean;
|
|
272
|
+
inserted_at: z.ZodString;
|
|
273
|
+
updated_at: z.ZodString;
|
|
274
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
275
|
+
id: z.ZodNumber;
|
|
276
|
+
username: z.ZodString;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
updated_by: z.ZodNullable<z.ZodObject<{
|
|
279
|
+
id: z.ZodNumber;
|
|
280
|
+
username: z.ZodString;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
content: z.ZodObject<{
|
|
283
|
+
schema_version: z.ZodNumber;
|
|
284
|
+
cells: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
type: z.ZodLiteral<"markdown">;
|
|
287
|
+
text: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
type: z.ZodLiteral<"database">;
|
|
291
|
+
sql: z.ZodString;
|
|
292
|
+
row_limit: z.ZodNumber;
|
|
293
|
+
database_identifier: z.ZodOptional<z.ZodString>;
|
|
294
|
+
title: z.ZodOptional<z.ZodString>;
|
|
295
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
table: "table";
|
|
297
|
+
chart: "chart";
|
|
298
|
+
}>>;
|
|
299
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
type: z.ZodEnum<{
|
|
301
|
+
bar: "bar";
|
|
302
|
+
line: "line";
|
|
303
|
+
}>;
|
|
304
|
+
x_column: z.ZodString;
|
|
305
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
306
|
+
column: z.ZodString;
|
|
307
|
+
}, z.core.$strip>>;
|
|
308
|
+
scale: z.ZodEnum<{
|
|
309
|
+
linear: "linear";
|
|
310
|
+
log: "log";
|
|
311
|
+
}>;
|
|
312
|
+
cumulative: z.ZodBoolean;
|
|
313
|
+
show_labels: z.ZodBoolean;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
type: z.ZodLiteral<"log">;
|
|
318
|
+
sql: z.ZodString;
|
|
319
|
+
time_range: z.ZodUnion<readonly [z.ZodObject<{
|
|
320
|
+
type: z.ZodLiteral<"absolute">;
|
|
321
|
+
start: z.ZodString;
|
|
322
|
+
end: z.ZodString;
|
|
323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"relative">;
|
|
325
|
+
unit: z.ZodEnum<{
|
|
326
|
+
minute: "minute";
|
|
327
|
+
hour: "hour";
|
|
328
|
+
day: "day";
|
|
329
|
+
week: "week";
|
|
330
|
+
month: "month";
|
|
331
|
+
year: "year";
|
|
332
|
+
}>;
|
|
333
|
+
amount: z.ZodNumber;
|
|
334
|
+
}, z.core.$strip>]>;
|
|
335
|
+
title: z.ZodOptional<z.ZodString>;
|
|
336
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
337
|
+
table: "table";
|
|
338
|
+
chart: "chart";
|
|
339
|
+
}>>;
|
|
340
|
+
chart: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
type: z.ZodEnum<{
|
|
342
|
+
bar: "bar";
|
|
343
|
+
line: "line";
|
|
344
|
+
}>;
|
|
345
|
+
x_column: z.ZodString;
|
|
346
|
+
y_series: z.ZodArray<z.ZodObject<{
|
|
347
|
+
column: z.ZodString;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
scale: z.ZodEnum<{
|
|
350
|
+
linear: "linear";
|
|
351
|
+
log: "log";
|
|
352
|
+
}>;
|
|
353
|
+
cumulative: z.ZodBoolean;
|
|
354
|
+
show_labels: z.ZodBoolean;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
}, z.core.$strip>], "type">>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
}, z.core.$strip>;
|
|
178
359
|
type Organization = z.infer<typeof organizationSchema>;
|
|
179
360
|
type Project = z.infer<typeof projectSchema>;
|
|
180
361
|
type Branch = z.infer<typeof branchSchema>;
|
|
@@ -194,6 +375,9 @@ type QueryLogsOptions = z.infer<typeof queryLogsOptionsSchema>;
|
|
|
194
375
|
type GenerateTypescriptTypesResult = z.infer<typeof generateTypescriptTypesResultSchema>;
|
|
195
376
|
type StorageConfig = z.infer<typeof storageConfigSchema>;
|
|
196
377
|
type StorageBucket = z.infer<typeof storageBucketSchema>;
|
|
378
|
+
type NotebookCell = z.infer<typeof notebookCellSchema>;
|
|
379
|
+
type Notebook = z.infer<typeof notebookSchema>;
|
|
380
|
+
type NotebookWithContent = z.infer<typeof notebookWithContentSchema>;
|
|
197
381
|
type DatabaseOperations = {
|
|
198
382
|
executeSql<T>(projectId: string, options: ExecuteSqlOptions): Promise<T[]>;
|
|
199
383
|
listMigrations(projectId: string): Promise<Migration[]>;
|
|
@@ -234,6 +418,7 @@ type DebuggingOperations = {
|
|
|
234
418
|
queryLogs?(projectId: string, options: QueryLogsOptions): Promise<unknown>;
|
|
235
419
|
getSecurityAdvisors(projectId: string): Promise<unknown>;
|
|
236
420
|
getPerformanceAdvisors(projectId: string): Promise<unknown>;
|
|
421
|
+
getHealthAdvisors?(projectId: string): Promise<unknown>;
|
|
237
422
|
};
|
|
238
423
|
declare const apiKeyTypeSchema: z.ZodEnum<{
|
|
239
424
|
legacy: "legacy";
|
|
@@ -273,6 +458,10 @@ type BranchingOperations = {
|
|
|
273
458
|
type SecretOperations = {
|
|
274
459
|
getUpdatedAt(projectId: string, name: string): Promise<Date | undefined>;
|
|
275
460
|
};
|
|
461
|
+
type NotebookOperations = {
|
|
462
|
+
listNotebooks(projectId: string): Promise<Notebook[]>;
|
|
463
|
+
getNotebook(projectId: string, notebookId: string): Promise<NotebookWithContent>;
|
|
464
|
+
};
|
|
276
465
|
type SupabasePlatform = {
|
|
277
466
|
init?(info: InitData): Promise<void>;
|
|
278
467
|
account?: AccountOperations;
|
|
@@ -283,6 +472,7 @@ type SupabasePlatform = {
|
|
|
283
472
|
storage?: StorageOperations;
|
|
284
473
|
branching?: BranchingOperations;
|
|
285
474
|
secrets?: SecretOperations;
|
|
475
|
+
notebooks?: NotebookOperations;
|
|
286
476
|
};
|
|
287
477
|
|
|
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 };
|
|
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 };
|
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}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}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};
|
|
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.
|
|
4
|
+
"version": "0.14.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.
|
|
45
|
+
"@supabase/mcp-utils": "^0.9.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@modelcontextprotocol/server": "^2.0.0",
|
package/dist/chunk-536WYGSZ.cjs
DELETED
|
@@ -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,gBAAA,CACA,WACF,CAAA,CDTO,IAAMC,CAAAA,CAAsBC,KAAAA,CAAE,MAAA,CAAO,CAC1C,EAAA,CAAIA,KAAAA,CAAE,MAAA,CAAO,CAAA,CACb,IAAA,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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"]}
|