@supabase/mcp-server-supabase 0.5.10 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
  import { InitData } from '@supabase/mcp-utils';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v4';
3
3
 
4
4
  type SuccessResponse = {
5
5
  success: true;
@@ -11,93 +11,25 @@ declare const storageBucketSchema: z.ZodObject<{
11
11
  created_at: z.ZodString;
12
12
  updated_at: z.ZodString;
13
13
  public: z.ZodBoolean;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- name: string;
17
- created_at: string;
18
- updated_at: string;
19
- public: boolean;
20
- owner: string;
21
- }, {
22
- id: string;
23
- name: string;
24
- created_at: string;
25
- updated_at: string;
26
- public: boolean;
27
- owner: string;
28
- }>;
14
+ }, z.core.$strip>;
29
15
  declare const storageConfigSchema: z.ZodObject<{
30
16
  fileSizeLimit: z.ZodNumber;
31
17
  features: z.ZodObject<{
32
18
  imageTransformation: z.ZodObject<{
33
19
  enabled: z.ZodBoolean;
34
- }, "strip", z.ZodTypeAny, {
35
- enabled: boolean;
36
- }, {
37
- enabled: boolean;
38
- }>;
20
+ }, z.core.$strip>;
39
21
  s3Protocol: z.ZodObject<{
40
22
  enabled: z.ZodBoolean;
41
- }, "strip", z.ZodTypeAny, {
42
- enabled: boolean;
43
- }, {
44
- enabled: boolean;
45
- }>;
46
- }, "strip", z.ZodTypeAny, {
47
- imageTransformation: {
48
- enabled: boolean;
49
- };
50
- s3Protocol: {
51
- enabled: boolean;
52
- };
53
- }, {
54
- imageTransformation: {
55
- enabled: boolean;
56
- };
57
- s3Protocol: {
58
- enabled: boolean;
59
- };
60
- }>;
61
- }, "strip", z.ZodTypeAny, {
62
- fileSizeLimit: number;
63
- features: {
64
- imageTransformation: {
65
- enabled: boolean;
66
- };
67
- s3Protocol: {
68
- enabled: boolean;
69
- };
70
- };
71
- }, {
72
- fileSizeLimit: number;
73
- features: {
74
- imageTransformation: {
75
- enabled: boolean;
76
- };
77
- s3Protocol: {
78
- enabled: boolean;
79
- };
80
- };
81
- }>;
23
+ }, z.core.$strip>;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>;
82
26
  declare const organizationSchema: z.ZodObject<{
83
27
  id: z.ZodString;
84
28
  name: z.ZodString;
85
29
  plan: z.ZodOptional<z.ZodString>;
86
- allowed_release_channels: z.ZodArray<z.ZodString, "many">;
87
- opt_in_tags: z.ZodArray<z.ZodString, "many">;
88
- }, "strip", z.ZodTypeAny, {
89
- id: string;
90
- name: string;
91
- allowed_release_channels: string[];
92
- opt_in_tags: string[];
93
- plan?: string | undefined;
94
- }, {
95
- id: string;
96
- name: string;
97
- allowed_release_channels: string[];
98
- opt_in_tags: string[];
99
- plan?: string | undefined;
100
- }>;
30
+ allowed_release_channels: z.ZodArray<z.ZodString>;
31
+ opt_in_tags: z.ZodArray<z.ZodString>;
32
+ }, z.core.$strip>;
101
33
  declare const projectSchema: z.ZodObject<{
102
34
  id: z.ZodString;
103
35
  organization_id: z.ZodString;
@@ -105,21 +37,7 @@ declare const projectSchema: z.ZodObject<{
105
37
  status: z.ZodString;
106
38
  created_at: z.ZodString;
107
39
  region: z.ZodString;
108
- }, "strip", z.ZodTypeAny, {
109
- status: string;
110
- id: string;
111
- name: string;
112
- organization_id: string;
113
- created_at: string;
114
- region: string;
115
- }, {
116
- status: string;
117
- id: string;
118
- name: string;
119
- organization_id: string;
120
- created_at: string;
121
- region: string;
122
- }>;
40
+ }, z.core.$strip>;
123
41
  declare const branchSchema: z.ZodObject<{
124
42
  id: z.ZodString;
125
43
  name: z.ZodString;
@@ -130,36 +48,17 @@ declare const branchSchema: z.ZodObject<{
130
48
  pr_number: z.ZodOptional<z.ZodNumber>;
131
49
  latest_check_run_id: z.ZodOptional<z.ZodNumber>;
132
50
  persistent: z.ZodBoolean;
133
- status: z.ZodEnum<["CREATING_PROJECT", "RUNNING_MIGRATIONS", "MIGRATIONS_PASSED", "MIGRATIONS_FAILED", "FUNCTIONS_DEPLOYED", "FUNCTIONS_FAILED"]>;
51
+ status: z.ZodEnum<{
52
+ CREATING_PROJECT: "CREATING_PROJECT";
53
+ RUNNING_MIGRATIONS: "RUNNING_MIGRATIONS";
54
+ MIGRATIONS_PASSED: "MIGRATIONS_PASSED";
55
+ MIGRATIONS_FAILED: "MIGRATIONS_FAILED";
56
+ FUNCTIONS_DEPLOYED: "FUNCTIONS_DEPLOYED";
57
+ FUNCTIONS_FAILED: "FUNCTIONS_FAILED";
58
+ }>;
134
59
  created_at: z.ZodString;
135
60
  updated_at: z.ZodString;
136
- }, "strip", z.ZodTypeAny, {
137
- status: "CREATING_PROJECT" | "RUNNING_MIGRATIONS" | "MIGRATIONS_PASSED" | "MIGRATIONS_FAILED" | "FUNCTIONS_DEPLOYED" | "FUNCTIONS_FAILED";
138
- id: string;
139
- name: string;
140
- created_at: string;
141
- project_ref: string;
142
- parent_project_ref: string;
143
- is_default: boolean;
144
- persistent: boolean;
145
- updated_at: string;
146
- git_branch?: string | undefined;
147
- pr_number?: number | undefined;
148
- latest_check_run_id?: number | undefined;
149
- }, {
150
- status: "CREATING_PROJECT" | "RUNNING_MIGRATIONS" | "MIGRATIONS_PASSED" | "MIGRATIONS_FAILED" | "FUNCTIONS_DEPLOYED" | "FUNCTIONS_FAILED";
151
- id: string;
152
- name: string;
153
- created_at: string;
154
- project_ref: string;
155
- parent_project_ref: string;
156
- is_default: boolean;
157
- persistent: boolean;
158
- updated_at: string;
159
- git_branch?: string | undefined;
160
- pr_number?: number | undefined;
161
- latest_check_run_id?: number | undefined;
162
- }>;
61
+ }, z.core.$strip>;
163
62
  declare const edgeFunctionSchema: z.ZodObject<{
164
63
  id: z.ZodString;
165
64
  slug: z.ZodString;
@@ -172,31 +71,7 @@ declare const edgeFunctionSchema: z.ZodObject<{
172
71
  import_map: z.ZodOptional<z.ZodBoolean>;
173
72
  import_map_path: z.ZodOptional<z.ZodString>;
174
73
  entrypoint_path: z.ZodOptional<z.ZodString>;
175
- }, "strip", z.ZodTypeAny, {
176
- status: string;
177
- id: string;
178
- name: string;
179
- version: number;
180
- slug: string;
181
- created_at?: number | undefined;
182
- updated_at?: number | undefined;
183
- verify_jwt?: boolean | undefined;
184
- import_map?: boolean | undefined;
185
- import_map_path?: string | undefined;
186
- entrypoint_path?: string | undefined;
187
- }, {
188
- status: string;
189
- id: string;
190
- name: string;
191
- version: number;
192
- slug: string;
193
- created_at?: number | undefined;
194
- updated_at?: number | undefined;
195
- verify_jwt?: boolean | undefined;
196
- import_map?: boolean | undefined;
197
- import_map_path?: string | undefined;
198
- entrypoint_path?: string | undefined;
199
- }>;
74
+ }, z.core.$strip>;
200
75
  declare const edgeFunctionWithBodySchema: z.ZodObject<{
201
76
  id: z.ZodString;
202
77
  slug: z.ZodString;
@@ -209,80 +84,40 @@ declare const edgeFunctionWithBodySchema: z.ZodObject<{
209
84
  import_map: z.ZodOptional<z.ZodBoolean>;
210
85
  import_map_path: z.ZodOptional<z.ZodString>;
211
86
  entrypoint_path: z.ZodOptional<z.ZodString>;
212
- } & {
213
87
  files: z.ZodArray<z.ZodObject<{
214
88
  name: z.ZodString;
215
89
  content: z.ZodString;
216
- }, "strip", z.ZodTypeAny, {
217
- name: string;
218
- content: string;
219
- }, {
220
- name: string;
221
- content: string;
222
- }>, "many">;
223
- }, "strip", z.ZodTypeAny, {
224
- status: string;
225
- id: string;
226
- name: string;
227
- version: number;
228
- slug: string;
229
- files: {
230
- name: string;
231
- content: string;
232
- }[];
233
- created_at?: number | undefined;
234
- updated_at?: number | undefined;
235
- verify_jwt?: boolean | undefined;
236
- import_map?: boolean | undefined;
237
- import_map_path?: string | undefined;
238
- entrypoint_path?: string | undefined;
239
- }, {
240
- status: string;
241
- id: string;
242
- name: string;
243
- version: number;
244
- slug: string;
245
- files: {
246
- name: string;
247
- content: string;
248
- }[];
249
- created_at?: number | undefined;
250
- updated_at?: number | undefined;
251
- verify_jwt?: boolean | undefined;
252
- import_map?: boolean | undefined;
253
- import_map_path?: string | undefined;
254
- entrypoint_path?: string | undefined;
255
- }>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>;
256
92
  declare const createProjectOptionsSchema: z.ZodObject<{
257
93
  name: z.ZodString;
258
94
  organization_id: z.ZodString;
259
- region: z.ZodEnum<["sa-east-1", "ap-southeast-2", "ap-northeast-2", "ap-northeast-1", "ap-southeast-1", "ap-south-1", "eu-north-1", "eu-central-2", "eu-central-1", "eu-west-3", "eu-west-2", "eu-west-1", "ca-central-1", "us-east-2", "us-east-1", "us-west-1"]>;
95
+ region: z.ZodEnum<{
96
+ "us-west-1": "us-west-1";
97
+ "us-east-1": "us-east-1";
98
+ "us-east-2": "us-east-2";
99
+ "ca-central-1": "ca-central-1";
100
+ "eu-west-1": "eu-west-1";
101
+ "eu-west-2": "eu-west-2";
102
+ "eu-west-3": "eu-west-3";
103
+ "eu-central-1": "eu-central-1";
104
+ "eu-central-2": "eu-central-2";
105
+ "eu-north-1": "eu-north-1";
106
+ "ap-south-1": "ap-south-1";
107
+ "ap-southeast-1": "ap-southeast-1";
108
+ "ap-northeast-1": "ap-northeast-1";
109
+ "ap-northeast-2": "ap-northeast-2";
110
+ "ap-southeast-2": "ap-southeast-2";
111
+ "sa-east-1": "sa-east-1";
112
+ }>;
260
113
  db_pass: z.ZodOptional<z.ZodString>;
261
- }, "strip", z.ZodTypeAny, {
262
- name: string;
263
- organization_id: string;
264
- region: "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";
265
- db_pass?: string | undefined;
266
- }, {
267
- name: string;
268
- organization_id: string;
269
- region: "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";
270
- db_pass?: string | undefined;
271
- }>;
114
+ }, z.core.$strip>;
272
115
  declare const createBranchOptionsSchema: z.ZodObject<{
273
116
  name: z.ZodString;
274
- }, "strip", z.ZodTypeAny, {
275
- name: string;
276
- }, {
277
- name: string;
278
- }>;
117
+ }, z.core.$strip>;
279
118
  declare const resetBranchOptionsSchema: z.ZodObject<{
280
119
  migration_version: z.ZodOptional<z.ZodString>;
281
- }, "strip", z.ZodTypeAny, {
282
- migration_version?: string | undefined;
283
- }, {
284
- migration_version?: string | undefined;
285
- }>;
120
+ }, z.core.$strip>;
286
121
  declare const deployEdgeFunctionOptionsSchema: z.ZodObject<{
287
122
  name: z.ZodString;
288
123
  entrypoint_path: z.ZodString;
@@ -291,86 +126,46 @@ declare const deployEdgeFunctionOptionsSchema: z.ZodObject<{
291
126
  files: z.ZodArray<z.ZodObject<{
292
127
  name: z.ZodString;
293
128
  content: z.ZodString;
294
- }, "strip", z.ZodTypeAny, {
295
- name: string;
296
- content: string;
297
- }, {
298
- name: string;
299
- content: string;
300
- }>, "many">;
301
- }, "strip", z.ZodTypeAny, {
302
- name: string;
303
- entrypoint_path: string;
304
- files: {
305
- name: string;
306
- content: string;
307
- }[];
308
- verify_jwt?: boolean | undefined;
309
- import_map_path?: string | undefined;
310
- }, {
311
- name: string;
312
- entrypoint_path: string;
313
- files: {
314
- name: string;
315
- content: string;
316
- }[];
317
- verify_jwt?: boolean | undefined;
318
- import_map_path?: string | undefined;
319
- }>;
129
+ }, z.core.$strip>>;
130
+ }, z.core.$strip>;
320
131
  declare const executeSqlOptionsSchema: z.ZodObject<{
321
132
  query: z.ZodString;
322
- parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
133
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
323
134
  read_only: z.ZodOptional<z.ZodBoolean>;
324
- }, "strip", z.ZodTypeAny, {
325
- query: string;
326
- parameters?: unknown[] | undefined;
327
- read_only?: boolean | undefined;
328
- }, {
329
- query: string;
330
- parameters?: unknown[] | undefined;
331
- read_only?: boolean | undefined;
332
- }>;
135
+ }, z.core.$strip>;
333
136
  declare const applyMigrationOptionsSchema: z.ZodObject<{
334
137
  name: z.ZodString;
335
138
  query: z.ZodString;
336
- }, "strip", z.ZodTypeAny, {
337
- query: string;
338
- name: string;
339
- }, {
340
- query: string;
341
- name: string;
342
- }>;
139
+ }, z.core.$strip>;
343
140
  declare const migrationSchema: z.ZodObject<{
344
141
  version: z.ZodString;
345
142
  name: z.ZodOptional<z.ZodString>;
346
- }, "strip", z.ZodTypeAny, {
347
- version: string;
348
- name?: string | undefined;
349
- }, {
350
- version: string;
351
- name?: string | undefined;
143
+ }, z.core.$strip>;
144
+ declare const logsServiceSchema: z.ZodEnum<{
145
+ api: "api";
146
+ "branch-action": "branch-action";
147
+ postgres: "postgres";
148
+ "edge-function": "edge-function";
149
+ auth: "auth";
150
+ storage: "storage";
151
+ realtime: "realtime";
352
152
  }>;
353
- declare const logsServiceSchema: z.ZodEnum<["api", "branch-action", "postgres", "edge-function", "auth", "storage", "realtime"]>;
354
153
  declare const getLogsOptionsSchema: z.ZodObject<{
355
- service: z.ZodEnum<["api", "branch-action", "postgres", "edge-function", "auth", "storage", "realtime"]>;
154
+ service: z.ZodEnum<{
155
+ api: "api";
156
+ "branch-action": "branch-action";
157
+ postgres: "postgres";
158
+ "edge-function": "edge-function";
159
+ auth: "auth";
160
+ storage: "storage";
161
+ realtime: "realtime";
162
+ }>;
356
163
  iso_timestamp_start: z.ZodOptional<z.ZodString>;
357
164
  iso_timestamp_end: z.ZodOptional<z.ZodString>;
358
- }, "strip", z.ZodTypeAny, {
359
- service: "api" | "branch-action" | "postgres" | "edge-function" | "auth" | "storage" | "realtime";
360
- iso_timestamp_start?: string | undefined;
361
- iso_timestamp_end?: string | undefined;
362
- }, {
363
- service: "api" | "branch-action" | "postgres" | "edge-function" | "auth" | "storage" | "realtime";
364
- iso_timestamp_start?: string | undefined;
365
- iso_timestamp_end?: string | undefined;
366
- }>;
165
+ }, z.core.$strip>;
367
166
  declare const generateTypescriptTypesResultSchema: z.ZodObject<{
368
167
  types: z.ZodString;
369
- }, "strip", z.ZodTypeAny, {
370
- types: string;
371
- }, {
372
- types: string;
373
- }>;
168
+ }, z.core.$strip>;
374
169
  type Organization = z.infer<typeof organizationSchema>;
375
170
  type Project = z.infer<typeof projectSchema>;
376
171
  type Branch = z.infer<typeof branchSchema>;
@@ -413,7 +208,10 @@ type DebuggingOperations = {
413
208
  getSecurityAdvisors(projectId: string): Promise<unknown>;
414
209
  getPerformanceAdvisors(projectId: string): Promise<unknown>;
415
210
  };
416
- declare const apiKeyTypeSchema: z.ZodEnum<["legacy", "publishable"]>;
211
+ declare const apiKeyTypeSchema: z.ZodEnum<{
212
+ legacy: "legacy";
213
+ publishable: "publishable";
214
+ }>;
417
215
  type ApiKeyType = z.infer<typeof apiKeyTypeSchema>;
418
216
  type ApiKey = {
419
217
  api_key: string;