@supabase/mcp-server-supabase 0.17.0 → 0.19.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-3BFHAE72.js +17 -0
- package/dist/chunk-3BFHAE72.js.map +1 -0
- package/dist/chunk-6DARTJRP.js +50 -0
- package/dist/chunk-6DARTJRP.js.map +1 -0
- package/dist/chunk-6QB2YXYQ.cjs +17 -0
- package/dist/chunk-6QB2YXYQ.cjs.map +1 -0
- package/dist/{chunk-SXD3C6JM.cjs → chunk-C4YUF27U.cjs} +11 -26
- package/dist/chunk-C4YUF27U.cjs.map +1 -0
- package/dist/chunk-DG3LSIFH.cjs +2 -0
- package/dist/chunk-DG3LSIFH.cjs.map +1 -0
- package/dist/chunk-OO7IZCN3.cjs +295 -0
- package/dist/chunk-OO7IZCN3.cjs.map +1 -0
- package/dist/chunk-VV4YSLRO.cjs +1 -0
- package/dist/{chunk-PHWSETKC.cjs.map → chunk-VV4YSLRO.cjs.map} +1 -1
- package/dist/chunk-W6H5VMAV.js +1 -0
- package/dist/chunk-WAYAYNQY.js +295 -0
- package/dist/chunk-WAYAYNQY.js.map +1 -0
- package/dist/chunk-YW7R6DLX.js +2 -0
- package/dist/chunk-YW7R6DLX.js.map +1 -0
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -18
- package/dist/index.d.ts +36 -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.d.cts +1 -1
- package/dist/platform/api-platform.d.ts +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 +13 -576
- package/dist/platform/index.d.ts +13 -576
- package/dist/platform/index.js +1 -1
- package/dist/types-abfpaWQw.d.cts +582 -0
- package/dist/types-abfpaWQw.d.ts +582 -0
- package/package.json +7 -3
- package/dist/chunk-6FWRABME.cjs +0 -2
- package/dist/chunk-6FWRABME.cjs.map +0 -1
- package/dist/chunk-HID6VPMI.js +0 -2
- package/dist/chunk-HID6VPMI.js.map +0 -1
- package/dist/chunk-IMPRDEX4.cjs +0 -295
- package/dist/chunk-IMPRDEX4.cjs.map +0 -1
- package/dist/chunk-LL3YUIO5.js +0 -2
- package/dist/chunk-LL3YUIO5.js.map +0 -1
- package/dist/chunk-LU6L7C36.js +0 -1
- package/dist/chunk-PHWSETKC.cjs +0 -1
- package/dist/chunk-SXD3C6JM.cjs.map +0 -1
- package/dist/chunk-VJTFZ74D.js +0 -65
- package/dist/chunk-VJTFZ74D.js.map +0 -1
- package/dist/chunk-VNQ4ISM6.js +0 -295
- package/dist/chunk-VNQ4ISM6.js.map +0 -1
- package/dist/chunk-VVFN7QGX.cjs +0 -2
- package/dist/chunk-VVFN7QGX.cjs.map +0 -1
- /package/dist/{chunk-LU6L7C36.js.map → chunk-W6H5VMAV.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObservationContext as ObservationContext$1, RequestObservation as RequestObservation$1, RequestObserver as RequestObserver$1, ToolCallCallback } from '@supabase/mcp-utils';
|
|
2
2
|
export { ObservationEnd, ObservedMethod, ToolCallCallback, ToolCallerError, ToolCallerErrorKind, isToolCallerError } from '@supabase/mcp-utils';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
|
-
import { FeedbackOperations, SupabasePlatform } from './
|
|
4
|
+
import { a7 as FeedbackOperations, S as SupabasePlatform } from './types-abfpaWQw.cjs';
|
|
5
5
|
import * as _modelcontextprotocol_server from '@modelcontextprotocol/server';
|
|
6
6
|
import { Implementation } from '@modelcontextprotocol/server';
|
|
7
7
|
|
|
@@ -11,17 +11,17 @@ declare const CURRENT_FEATURE_GROUPS: readonly ["docs", "account", "database", "
|
|
|
11
11
|
declare const featureGroupSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
12
12
|
debug: "debug";
|
|
13
13
|
}>, z.ZodEnum<{
|
|
14
|
+
storage: "storage";
|
|
15
|
+
database: "database";
|
|
16
|
+
feedback: "feedback";
|
|
14
17
|
docs: "docs";
|
|
15
18
|
account: "account";
|
|
16
|
-
database: "database";
|
|
17
19
|
debugging: "debugging";
|
|
18
20
|
development: "development";
|
|
19
21
|
functions: "functions";
|
|
20
22
|
branching: "branching";
|
|
21
|
-
storage: "storage";
|
|
22
23
|
notebooks: "notebooks";
|
|
23
|
-
|
|
24
|
-
}>]>, z.ZodTransform<"docs" | "account" | "database" | "debugging" | "development" | "functions" | "branching" | "storage" | "notebooks" | "feedback", "debug" | "docs" | "account" | "database" | "debugging" | "development" | "functions" | "branching" | "storage" | "notebooks" | "feedback">>;
|
|
24
|
+
}>]>, z.ZodTransform<"storage" | "database" | "feedback" | "docs" | "account" | "debugging" | "development" | "functions" | "branching" | "notebooks", "storage" | "database" | "feedback" | "docs" | "account" | "debugging" | "development" | "functions" | "branching" | "notebooks" | "debug">>;
|
|
25
25
|
type FeatureGroup = z.infer<typeof featureGroupSchema>;
|
|
26
26
|
|
|
27
27
|
type ObservedTool = ElicitationToolName | 'other';
|
|
@@ -116,6 +116,11 @@ type SupabaseMcpServerOptions = {
|
|
|
116
116
|
* Executes database queries in read-only mode if true.
|
|
117
117
|
*/
|
|
118
118
|
readOnly?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Enables MCP Apps: interactive views for supported tools. Experimental, off
|
|
121
|
+
* by default.
|
|
122
|
+
*/
|
|
123
|
+
experimentalApps?: boolean;
|
|
119
124
|
/**
|
|
120
125
|
* Features to enable.
|
|
121
126
|
* Options: 'account', 'branching', 'database', 'debugging', 'development', 'docs', 'feedback', 'functions', 'notebooks', 'storage'
|
|
@@ -355,6 +360,11 @@ declare const accountToolDefs: {
|
|
|
355
360
|
created_at: z.ZodString;
|
|
356
361
|
region: z.ZodString;
|
|
357
362
|
}, z.core.$strip>;
|
|
363
|
+
readonly _meta: {
|
|
364
|
+
readonly ui: {
|
|
365
|
+
readonly resourceUri: "ui://supabase/create-project";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
358
368
|
readonly annotations: {
|
|
359
369
|
readonly title: "Create project";
|
|
360
370
|
readonly readOnlyHint: false;
|
|
@@ -426,6 +436,11 @@ declare const branchingToolDefs: {
|
|
|
426
436
|
created_at: z.ZodString;
|
|
427
437
|
updated_at: z.ZodString;
|
|
428
438
|
}, z.core.$strip>;
|
|
439
|
+
readonly _meta: {
|
|
440
|
+
readonly ui: {
|
|
441
|
+
readonly resourceUri: "ui://supabase/create-branch";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
429
444
|
readonly annotations: {
|
|
430
445
|
readonly title: "Create branch";
|
|
431
446
|
readonly readOnlyHint: false;
|
|
@@ -679,14 +694,14 @@ declare const debuggingToolDefs: {
|
|
|
679
694
|
readonly parameters: z.ZodObject<{
|
|
680
695
|
project_id: z.ZodString;
|
|
681
696
|
service: z.ZodEnum<{
|
|
697
|
+
auth: "auth";
|
|
698
|
+
realtime: "realtime";
|
|
682
699
|
storage: "storage";
|
|
683
700
|
api: "api";
|
|
684
701
|
"branch-action": "branch-action";
|
|
685
702
|
postgres: "postgres";
|
|
686
703
|
"edge-function": "edge-function";
|
|
687
704
|
"edge-function-runtime": "edge-function-runtime";
|
|
688
|
-
auth: "auth";
|
|
689
|
-
realtime: "realtime";
|
|
690
705
|
}>;
|
|
691
706
|
iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
|
|
692
707
|
iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -971,11 +986,11 @@ declare const notebookToolDefs: {
|
|
|
971
986
|
text: z.ZodString;
|
|
972
987
|
}, z.core.$strict>, z.ZodObject<{
|
|
973
988
|
type: z.ZodLiteral<"database">;
|
|
974
|
-
title: z.ZodOptional<z.ZodString>;
|
|
975
989
|
view: z.ZodOptional<z.ZodEnum<{
|
|
976
990
|
table: "table";
|
|
977
991
|
chart: "chart";
|
|
978
992
|
}>>;
|
|
993
|
+
title: z.ZodOptional<z.ZodString>;
|
|
979
994
|
sql: z.ZodString;
|
|
980
995
|
row_limit: z.ZodNumber;
|
|
981
996
|
database_identifier: z.ZodOptional<z.ZodString>;
|
|
@@ -997,11 +1012,11 @@ declare const notebookToolDefs: {
|
|
|
997
1012
|
}, z.core.$strict>>;
|
|
998
1013
|
}, z.core.$strict>, z.ZodObject<{
|
|
999
1014
|
type: z.ZodLiteral<"log">;
|
|
1000
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1001
1015
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1002
1016
|
table: "table";
|
|
1003
1017
|
chart: "chart";
|
|
1004
1018
|
}>>;
|
|
1019
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1005
1020
|
sql: z.ZodString;
|
|
1006
1021
|
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1007
1022
|
type: z.ZodLiteral<"absolute">;
|
|
@@ -1039,8 +1054,8 @@ declare const notebookToolDefs: {
|
|
|
1039
1054
|
}, z.core.$strip>;
|
|
1040
1055
|
}, z.core.$strip>;
|
|
1041
1056
|
readonly outputSchema: z.ZodObject<{
|
|
1042
|
-
id: z.ZodString;
|
|
1043
1057
|
name: z.ZodString;
|
|
1058
|
+
id: z.ZodString;
|
|
1044
1059
|
updated_at: z.ZodString;
|
|
1045
1060
|
url: z.ZodString;
|
|
1046
1061
|
}, z.core.$strip>;
|
|
@@ -1149,8 +1164,8 @@ declare const notebookToolDefs: {
|
|
|
1149
1164
|
notebook_id: z.ZodString;
|
|
1150
1165
|
}, z.core.$strip>;
|
|
1151
1166
|
readonly outputSchema: z.ZodObject<{
|
|
1152
|
-
id: z.ZodString;
|
|
1153
1167
|
name: z.ZodString;
|
|
1168
|
+
id: z.ZodString;
|
|
1154
1169
|
}, z.core.$strip>;
|
|
1155
1170
|
readonly annotations: {
|
|
1156
1171
|
readonly title: "Delete notebook";
|
|
@@ -1327,11 +1342,11 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1327
1342
|
text: z.ZodString;
|
|
1328
1343
|
}, z.core.$strict>, z.ZodObject<{
|
|
1329
1344
|
type: z.ZodLiteral<"database">;
|
|
1330
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1331
1345
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1332
1346
|
table: "table";
|
|
1333
1347
|
chart: "chart";
|
|
1334
1348
|
}>>;
|
|
1349
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1335
1350
|
sql: z.ZodString;
|
|
1336
1351
|
row_limit: z.ZodNumber;
|
|
1337
1352
|
database_identifier: z.ZodOptional<z.ZodString>;
|
|
@@ -1353,11 +1368,11 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1353
1368
|
}, z.core.$strict>>;
|
|
1354
1369
|
}, z.core.$strict>, z.ZodObject<{
|
|
1355
1370
|
type: z.ZodLiteral<"log">;
|
|
1356
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1357
1371
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1358
1372
|
table: "table";
|
|
1359
1373
|
chart: "chart";
|
|
1360
1374
|
}>>;
|
|
1375
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1361
1376
|
sql: z.ZodString;
|
|
1362
1377
|
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1363
1378
|
type: z.ZodLiteral<"absolute">;
|
|
@@ -1395,8 +1410,8 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1395
1410
|
}, z.core.$strip>;
|
|
1396
1411
|
}, z.core.$strip>;
|
|
1397
1412
|
outputSchema: z.ZodObject<{
|
|
1398
|
-
id: z.ZodString;
|
|
1399
1413
|
name: z.ZodString;
|
|
1414
|
+
id: z.ZodString;
|
|
1400
1415
|
updated_at: z.ZodString;
|
|
1401
1416
|
url: z.ZodString;
|
|
1402
1417
|
}, z.core.$strip>;
|
|
@@ -1508,8 +1523,8 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1508
1523
|
notebook_id: z.ZodString;
|
|
1509
1524
|
}, z.core.$strip>;
|
|
1510
1525
|
outputSchema: z.ZodObject<{
|
|
1511
|
-
id: z.ZodString;
|
|
1512
1526
|
name: z.ZodString;
|
|
1527
|
+
id: z.ZodString;
|
|
1513
1528
|
}, z.core.$strip>;
|
|
1514
1529
|
annotations: {
|
|
1515
1530
|
readonly title: "Delete notebook";
|
|
@@ -1798,14 +1813,14 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1798
1813
|
inputSchema: z.ZodObject<{
|
|
1799
1814
|
project_id: z.ZodString;
|
|
1800
1815
|
service: z.ZodEnum<{
|
|
1816
|
+
auth: "auth";
|
|
1817
|
+
realtime: "realtime";
|
|
1801
1818
|
storage: "storage";
|
|
1802
1819
|
api: "api";
|
|
1803
1820
|
"branch-action": "branch-action";
|
|
1804
1821
|
postgres: "postgres";
|
|
1805
1822
|
"edge-function": "edge-function";
|
|
1806
1823
|
"edge-function-runtime": "edge-function-runtime";
|
|
1807
|
-
auth: "auth";
|
|
1808
|
-
realtime: "realtime";
|
|
1809
1824
|
}>;
|
|
1810
1825
|
iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
|
|
1811
1826
|
iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -2451,6 +2466,9 @@ declare function createToolSchemas<const Features extends readonly FeatureGroup[
|
|
|
2451
2466
|
readOnly?: ReadOnly;
|
|
2452
2467
|
}): ToolSchemasFor<Features[number], ProjectScoped, ReadOnly>;
|
|
2453
2468
|
|
|
2469
|
+
declare const CREATE_PROJECT_UI_URI = "ui://supabase/create-project";
|
|
2470
|
+
declare const CREATE_BRANCH_UI_URI = "ui://supabase/create-branch";
|
|
2471
|
+
|
|
2454
2472
|
declare const version: string;
|
|
2455
2473
|
|
|
2456
|
-
export { CURRENT_ELICITATION_TOOLS, CURRENT_FEATURE_GROUPS, type ConfirmationFeature, type ElicitationToolName, type FeatureGroup, FeedbackOperations, type FeedbackOperationsOptions, type ObservationContext, type ObservationFact, type ObservedTool, type RequestObservation, type RequestObserver, type SupabaseMcpServerOptions, SupabasePlatform, createFeedbackOperations, createSupabaseMcpHandler, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };
|
|
2474
|
+
export { CREATE_BRANCH_UI_URI, CREATE_PROJECT_UI_URI, CURRENT_ELICITATION_TOOLS, CURRENT_FEATURE_GROUPS, type ConfirmationFeature, type ElicitationToolName, type FeatureGroup, FeedbackOperations, type FeedbackOperationsOptions, type ObservationContext, type ObservationFact, type ObservedTool, type RequestObservation, type RequestObserver, type SupabaseMcpServerOptions, SupabasePlatform, createFeedbackOperations, createSupabaseMcpHandler, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ObservationContext as ObservationContext$1, RequestObservation as RequestObservation$1, RequestObserver as RequestObserver$1, ToolCallCallback } from '@supabase/mcp-utils';
|
|
2
2
|
export { ObservationEnd, ObservedMethod, ToolCallCallback, ToolCallerError, ToolCallerErrorKind, isToolCallerError } from '@supabase/mcp-utils';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
|
-
import { FeedbackOperations, SupabasePlatform } from './
|
|
4
|
+
import { a7 as FeedbackOperations, S as SupabasePlatform } from './types-abfpaWQw.js';
|
|
5
5
|
import * as _modelcontextprotocol_server from '@modelcontextprotocol/server';
|
|
6
6
|
import { Implementation } from '@modelcontextprotocol/server';
|
|
7
7
|
|
|
@@ -11,17 +11,17 @@ declare const CURRENT_FEATURE_GROUPS: readonly ["docs", "account", "database", "
|
|
|
11
11
|
declare const featureGroupSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<{
|
|
12
12
|
debug: "debug";
|
|
13
13
|
}>, z.ZodEnum<{
|
|
14
|
+
storage: "storage";
|
|
15
|
+
database: "database";
|
|
16
|
+
feedback: "feedback";
|
|
14
17
|
docs: "docs";
|
|
15
18
|
account: "account";
|
|
16
|
-
database: "database";
|
|
17
19
|
debugging: "debugging";
|
|
18
20
|
development: "development";
|
|
19
21
|
functions: "functions";
|
|
20
22
|
branching: "branching";
|
|
21
|
-
storage: "storage";
|
|
22
23
|
notebooks: "notebooks";
|
|
23
|
-
|
|
24
|
-
}>]>, z.ZodTransform<"docs" | "account" | "database" | "debugging" | "development" | "functions" | "branching" | "storage" | "notebooks" | "feedback", "debug" | "docs" | "account" | "database" | "debugging" | "development" | "functions" | "branching" | "storage" | "notebooks" | "feedback">>;
|
|
24
|
+
}>]>, z.ZodTransform<"storage" | "database" | "feedback" | "docs" | "account" | "debugging" | "development" | "functions" | "branching" | "notebooks", "storage" | "database" | "feedback" | "docs" | "account" | "debugging" | "development" | "functions" | "branching" | "notebooks" | "debug">>;
|
|
25
25
|
type FeatureGroup = z.infer<typeof featureGroupSchema>;
|
|
26
26
|
|
|
27
27
|
type ObservedTool = ElicitationToolName | 'other';
|
|
@@ -116,6 +116,11 @@ type SupabaseMcpServerOptions = {
|
|
|
116
116
|
* Executes database queries in read-only mode if true.
|
|
117
117
|
*/
|
|
118
118
|
readOnly?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Enables MCP Apps: interactive views for supported tools. Experimental, off
|
|
121
|
+
* by default.
|
|
122
|
+
*/
|
|
123
|
+
experimentalApps?: boolean;
|
|
119
124
|
/**
|
|
120
125
|
* Features to enable.
|
|
121
126
|
* Options: 'account', 'branching', 'database', 'debugging', 'development', 'docs', 'feedback', 'functions', 'notebooks', 'storage'
|
|
@@ -355,6 +360,11 @@ declare const accountToolDefs: {
|
|
|
355
360
|
created_at: z.ZodString;
|
|
356
361
|
region: z.ZodString;
|
|
357
362
|
}, z.core.$strip>;
|
|
363
|
+
readonly _meta: {
|
|
364
|
+
readonly ui: {
|
|
365
|
+
readonly resourceUri: "ui://supabase/create-project";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
358
368
|
readonly annotations: {
|
|
359
369
|
readonly title: "Create project";
|
|
360
370
|
readonly readOnlyHint: false;
|
|
@@ -426,6 +436,11 @@ declare const branchingToolDefs: {
|
|
|
426
436
|
created_at: z.ZodString;
|
|
427
437
|
updated_at: z.ZodString;
|
|
428
438
|
}, z.core.$strip>;
|
|
439
|
+
readonly _meta: {
|
|
440
|
+
readonly ui: {
|
|
441
|
+
readonly resourceUri: "ui://supabase/create-branch";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
429
444
|
readonly annotations: {
|
|
430
445
|
readonly title: "Create branch";
|
|
431
446
|
readonly readOnlyHint: false;
|
|
@@ -679,14 +694,14 @@ declare const debuggingToolDefs: {
|
|
|
679
694
|
readonly parameters: z.ZodObject<{
|
|
680
695
|
project_id: z.ZodString;
|
|
681
696
|
service: z.ZodEnum<{
|
|
697
|
+
auth: "auth";
|
|
698
|
+
realtime: "realtime";
|
|
682
699
|
storage: "storage";
|
|
683
700
|
api: "api";
|
|
684
701
|
"branch-action": "branch-action";
|
|
685
702
|
postgres: "postgres";
|
|
686
703
|
"edge-function": "edge-function";
|
|
687
704
|
"edge-function-runtime": "edge-function-runtime";
|
|
688
|
-
auth: "auth";
|
|
689
|
-
realtime: "realtime";
|
|
690
705
|
}>;
|
|
691
706
|
iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
|
|
692
707
|
iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -971,11 +986,11 @@ declare const notebookToolDefs: {
|
|
|
971
986
|
text: z.ZodString;
|
|
972
987
|
}, z.core.$strict>, z.ZodObject<{
|
|
973
988
|
type: z.ZodLiteral<"database">;
|
|
974
|
-
title: z.ZodOptional<z.ZodString>;
|
|
975
989
|
view: z.ZodOptional<z.ZodEnum<{
|
|
976
990
|
table: "table";
|
|
977
991
|
chart: "chart";
|
|
978
992
|
}>>;
|
|
993
|
+
title: z.ZodOptional<z.ZodString>;
|
|
979
994
|
sql: z.ZodString;
|
|
980
995
|
row_limit: z.ZodNumber;
|
|
981
996
|
database_identifier: z.ZodOptional<z.ZodString>;
|
|
@@ -997,11 +1012,11 @@ declare const notebookToolDefs: {
|
|
|
997
1012
|
}, z.core.$strict>>;
|
|
998
1013
|
}, z.core.$strict>, z.ZodObject<{
|
|
999
1014
|
type: z.ZodLiteral<"log">;
|
|
1000
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1001
1015
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1002
1016
|
table: "table";
|
|
1003
1017
|
chart: "chart";
|
|
1004
1018
|
}>>;
|
|
1019
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1005
1020
|
sql: z.ZodString;
|
|
1006
1021
|
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1007
1022
|
type: z.ZodLiteral<"absolute">;
|
|
@@ -1039,8 +1054,8 @@ declare const notebookToolDefs: {
|
|
|
1039
1054
|
}, z.core.$strip>;
|
|
1040
1055
|
}, z.core.$strip>;
|
|
1041
1056
|
readonly outputSchema: z.ZodObject<{
|
|
1042
|
-
id: z.ZodString;
|
|
1043
1057
|
name: z.ZodString;
|
|
1058
|
+
id: z.ZodString;
|
|
1044
1059
|
updated_at: z.ZodString;
|
|
1045
1060
|
url: z.ZodString;
|
|
1046
1061
|
}, z.core.$strip>;
|
|
@@ -1149,8 +1164,8 @@ declare const notebookToolDefs: {
|
|
|
1149
1164
|
notebook_id: z.ZodString;
|
|
1150
1165
|
}, z.core.$strip>;
|
|
1151
1166
|
readonly outputSchema: z.ZodObject<{
|
|
1152
|
-
id: z.ZodString;
|
|
1153
1167
|
name: z.ZodString;
|
|
1168
|
+
id: z.ZodString;
|
|
1154
1169
|
}, z.core.$strip>;
|
|
1155
1170
|
readonly annotations: {
|
|
1156
1171
|
readonly title: "Delete notebook";
|
|
@@ -1327,11 +1342,11 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1327
1342
|
text: z.ZodString;
|
|
1328
1343
|
}, z.core.$strict>, z.ZodObject<{
|
|
1329
1344
|
type: z.ZodLiteral<"database">;
|
|
1330
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1331
1345
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1332
1346
|
table: "table";
|
|
1333
1347
|
chart: "chart";
|
|
1334
1348
|
}>>;
|
|
1349
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1335
1350
|
sql: z.ZodString;
|
|
1336
1351
|
row_limit: z.ZodNumber;
|
|
1337
1352
|
database_identifier: z.ZodOptional<z.ZodString>;
|
|
@@ -1353,11 +1368,11 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1353
1368
|
}, z.core.$strict>>;
|
|
1354
1369
|
}, z.core.$strict>, z.ZodObject<{
|
|
1355
1370
|
type: z.ZodLiteral<"log">;
|
|
1356
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1357
1371
|
view: z.ZodOptional<z.ZodEnum<{
|
|
1358
1372
|
table: "table";
|
|
1359
1373
|
chart: "chart";
|
|
1360
1374
|
}>>;
|
|
1375
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1361
1376
|
sql: z.ZodString;
|
|
1362
1377
|
time_range: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1363
1378
|
type: z.ZodLiteral<"absolute">;
|
|
@@ -1395,8 +1410,8 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1395
1410
|
}, z.core.$strip>;
|
|
1396
1411
|
}, z.core.$strip>;
|
|
1397
1412
|
outputSchema: z.ZodObject<{
|
|
1398
|
-
id: z.ZodString;
|
|
1399
1413
|
name: z.ZodString;
|
|
1414
|
+
id: z.ZodString;
|
|
1400
1415
|
updated_at: z.ZodString;
|
|
1401
1416
|
url: z.ZodString;
|
|
1402
1417
|
}, z.core.$strip>;
|
|
@@ -1508,8 +1523,8 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1508
1523
|
notebook_id: z.ZodString;
|
|
1509
1524
|
}, z.core.$strip>;
|
|
1510
1525
|
outputSchema: z.ZodObject<{
|
|
1511
|
-
id: z.ZodString;
|
|
1512
1526
|
name: z.ZodString;
|
|
1527
|
+
id: z.ZodString;
|
|
1513
1528
|
}, z.core.$strip>;
|
|
1514
1529
|
annotations: {
|
|
1515
1530
|
readonly title: "Delete notebook";
|
|
@@ -1798,14 +1813,14 @@ declare const supabaseMcpToolSchemas: {
|
|
|
1798
1813
|
inputSchema: z.ZodObject<{
|
|
1799
1814
|
project_id: z.ZodString;
|
|
1800
1815
|
service: z.ZodEnum<{
|
|
1816
|
+
auth: "auth";
|
|
1817
|
+
realtime: "realtime";
|
|
1801
1818
|
storage: "storage";
|
|
1802
1819
|
api: "api";
|
|
1803
1820
|
"branch-action": "branch-action";
|
|
1804
1821
|
postgres: "postgres";
|
|
1805
1822
|
"edge-function": "edge-function";
|
|
1806
1823
|
"edge-function-runtime": "edge-function-runtime";
|
|
1807
|
-
auth: "auth";
|
|
1808
|
-
realtime: "realtime";
|
|
1809
1824
|
}>;
|
|
1810
1825
|
iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
|
|
1811
1826
|
iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -2451,6 +2466,9 @@ declare function createToolSchemas<const Features extends readonly FeatureGroup[
|
|
|
2451
2466
|
readOnly?: ReadOnly;
|
|
2452
2467
|
}): ToolSchemasFor<Features[number], ProjectScoped, ReadOnly>;
|
|
2453
2468
|
|
|
2469
|
+
declare const CREATE_PROJECT_UI_URI = "ui://supabase/create-project";
|
|
2470
|
+
declare const CREATE_BRANCH_UI_URI = "ui://supabase/create-branch";
|
|
2471
|
+
|
|
2454
2472
|
declare const version: string;
|
|
2455
2473
|
|
|
2456
|
-
export { CURRENT_ELICITATION_TOOLS, CURRENT_FEATURE_GROUPS, type ConfirmationFeature, type ElicitationToolName, type FeatureGroup, FeedbackOperations, type FeedbackOperationsOptions, type ObservationContext, type ObservationFact, type ObservedTool, type RequestObservation, type RequestObserver, type SupabaseMcpServerOptions, SupabasePlatform, createFeedbackOperations, createSupabaseMcpHandler, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };
|
|
2474
|
+
export { CREATE_BRANCH_UI_URI, CREATE_PROJECT_UI_URI, CURRENT_ELICITATION_TOOLS, CURRENT_FEATURE_GROUPS, type ConfirmationFeature, type ElicitationToolName, type FeatureGroup, FeedbackOperations, type FeedbackOperationsOptions, type ObservationContext, type ObservationFact, type ObservedTool, type RequestObservation, type RequestObserver, type SupabaseMcpServerOptions, SupabasePlatform, createFeedbackOperations, createSupabaseMcpHandler, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b as p,
|
|
1
|
+
import{a,b as p,c as s,d as c,h as n,i,j as e}from"./chunk-WAYAYNQY.js";import{a as r,d as t}from"./chunk-6DARTJRP.js";import"./chunk-3BFHAE72.js";import{isToolCallerError as E,ToolCallerError as x}from"@supabase/mcp-utils";import{createMcpHandler as l}from"@modelcontextprotocol/server";function m(o){return l(()=>e(o),{legacy:"reject"})}var S=r.version;export{p as CREATE_BRANCH_UI_URI,a as CREATE_PROJECT_UI_URI,s as CURRENT_ELICITATION_TOOLS,c as CURRENT_FEATURE_GROUPS,x as ToolCallerError,t as createFeedbackOperations,m as createSupabaseMcpHandler,e as createSupabaseMcpServer,i as createToolSchemas,E as isToolCallerError,n as supabaseMcpToolSchemas,S as version};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/transports/http.ts"],"sourcesContent":["import packageJson from '../package.json' with { type: 'json' };\n\nexport type {\n ObservationContext,\n ObservationEnd,\n ObservationFact,\n ObservedMethod,\n ObservedTool,\n ConfirmationFeature,\n RequestObservation,\n RequestObserver,\n} from './observation.js';\nexport {\n isToolCallerError,\n ToolCallerError,\n type ToolCallerErrorKind,\n} from '@supabase/mcp-utils';\nexport type { ToolCallCallback } from '@supabase/mcp-utils';\nexport {\n createFeedbackOperations,\n type FeedbackOperationsOptions,\n} from './platform/feedback.js';\nexport type { FeedbackOperations, SupabasePlatform } from './platform/index.js';\nexport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from './server.js';\nexport { createSupabaseMcpHandler } from './transports/http.js';\nexport {\n CURRENT_ELICITATION_TOOLS,\n CURRENT_FEATURE_GROUPS,\n type ElicitationToolName,\n type FeatureGroup,\n} from './types.js';\nexport const version = packageJson.version;\n\nexport {\n createToolSchemas,\n supabaseMcpToolSchemas,\n} from './tools/tool-schemas.js';\n","import { createMcpHandler } from '@modelcontextprotocol/server';\n\nimport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from '../server.js';\n\n// Modern protocol only: created with `legacy: 'reject'`, so a client that\n// speaks just the 2025-era protocol gets an HTTP 400 instead of being served.\nexport function createSupabaseMcpHandler(options: SupabaseMcpServerOptions) {\n return createMcpHandler(() => createSupabaseMcpServer(options), {\n legacy: 'reject',\n });\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/transports/http.ts"],"sourcesContent":["import packageJson from '../package.json' with { type: 'json' };\n\nexport type {\n ObservationContext,\n ObservationEnd,\n ObservationFact,\n ObservedMethod,\n ObservedTool,\n ConfirmationFeature,\n RequestObservation,\n RequestObserver,\n} from './observation.js';\nexport {\n isToolCallerError,\n ToolCallerError,\n type ToolCallerErrorKind,\n} from '@supabase/mcp-utils';\nexport type { ToolCallCallback } from '@supabase/mcp-utils';\nexport {\n createFeedbackOperations,\n type FeedbackOperationsOptions,\n} from './platform/feedback.js';\nexport type { FeedbackOperations, SupabasePlatform } from './platform/index.js';\nexport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from './server.js';\nexport { createSupabaseMcpHandler } from './transports/http.js';\nexport {\n CURRENT_ELICITATION_TOOLS,\n CURRENT_FEATURE_GROUPS,\n type ElicitationToolName,\n type FeatureGroup,\n} from './types.js';\nexport const version = packageJson.version;\n\nexport {\n createToolSchemas,\n supabaseMcpToolSchemas,\n} from './tools/tool-schemas.js';\nexport {\n CREATE_BRANCH_UI_URI,\n CREATE_PROJECT_UI_URI,\n} from './resources/app-resources.js';\n","import { createMcpHandler } from '@modelcontextprotocol/server';\n\nimport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from '../server.js';\n\n// Modern protocol only: created with `legacy: 'reject'`, so a client that\n// speaks just the 2025-era protocol gets an HTTP 400 instead of being served.\nexport function createSupabaseMcpHandler(options: SupabaseMcpServerOptions) {\n return createMcpHandler(() => createSupabaseMcpServer(options), {\n legacy: 'reject',\n });\n}\n"],"mappings":"mJAYA,OACE,qBAAAA,EACA,mBAAAC,MAEK,sBChBP,OAAS,oBAAAC,MAAwB,+BAS1B,SAASC,EAAyBC,EAAmC,CAC1E,OAAOC,EAAiB,IAAMC,EAAwBF,CAAO,EAAG,CAC9D,OAAQ,QACV,CAAC,CACH,CDqBO,IAAMG,EAAUC,EAAY","names":["isToolCallerError","ToolCallerError","createMcpHandler","createSupabaseMcpHandler","options","createMcpHandler","createSupabaseMcpServer","version","package_default"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDG3LSIFHcjs = require('../chunk-DG3LSIFH.cjs');require('../chunk-C4YUF27U.cjs');require('../chunk-VV4YSLRO.cjs');require('../chunk-6QB2YXYQ.cjs');exports.createSupabaseApiPlatform = _chunkDG3LSIFHcjs.a;
|
|
2
2
|
//# sourceMappingURL=api-platform.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-YW7R6DLX.js";import"../chunk-6DARTJRP.js";import"../chunk-W6H5VMAV.js";import"../chunk-3BFHAE72.js";export{a as createSupabaseApiPlatform};
|
|
2
2
|
//# sourceMappingURL=api-platform.js.map
|
package/dist/platform/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-VV4YSLRO.cjs');var _chunk6QB2YXYQcjs = require('../chunk-6QB2YXYQ.cjs');exports.DEFAULT_IMPORT_MAP_FILENAMES = _chunk6QB2YXYQcjs.d; exports.ResultTooLargeError = _chunk6QB2YXYQcjs.s; exports.apiKeyTypeSchema = _chunk6QB2YXYQcjs.E; exports.applyMigrationOptionsSchema = _chunk6QB2YXYQcjs.u; exports.branchSchema = _chunk6QB2YXYQcjs.l; exports.createBranchOptionsSchema = _chunk6QB2YXYQcjs.p; exports.createNotebookOptionsSchema = _chunk6QB2YXYQcjs.B; exports.createProjectOptionsSchema = _chunk6QB2YXYQcjs.o; exports.deployEdgeFunctionOptionsSchema = _chunk6QB2YXYQcjs.r; exports.edgeFunctionSchema = _chunk6QB2YXYQcjs.m; exports.edgeFunctionWithBodySchema = _chunk6QB2YXYQcjs.n; exports.executeSqlOptionsSchema = _chunk6QB2YXYQcjs.t; exports.generateTypescriptTypesResultSchema = _chunk6QB2YXYQcjs.z; exports.getDefaultImportMapPath = _chunk6QB2YXYQcjs.e; exports.getLogsOptionsSchema = _chunk6QB2YXYQcjs.x; exports.logsServiceSchema = _chunk6QB2YXYQcjs.w; exports.migrationSchema = _chunk6QB2YXYQcjs.v; exports.notebookCellSchema = _chunk6QB2YXYQcjs.A; exports.notebookSchema = _chunk6QB2YXYQcjs.C; exports.notebookWithContentSchema = _chunk6QB2YXYQcjs.D; exports.organizationSchema = _chunk6QB2YXYQcjs.j; exports.projectSchema = _chunk6QB2YXYQcjs.k; exports.queryLogsOptionsSchema = _chunk6QB2YXYQcjs.y; exports.resetBranchOptionsSchema = _chunk6QB2YXYQcjs.q; exports.storageBucketSchema = _chunk6QB2YXYQcjs.h; exports.storageConfigSchema = _chunk6QB2YXYQcjs.i;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"],"names":[],"mappings":"AAAA,0GAA6B,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"],"names":[],"mappings":"AAAA,0GAA6B,yDAAyN,+2CAAotB","file":"/home/runner/work/mcp/mcp/packages/mcp-server-supabase/dist/platform/index.cjs"}
|