@supabase/mcp-server-supabase 0.9.0 → 0.11.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 (48) hide show
  1. package/dist/chunk-54OF3SOV.js +17 -0
  2. package/dist/chunk-54OF3SOV.js.map +1 -0
  3. package/dist/chunk-A547ZGK6.cjs +17 -0
  4. package/dist/chunk-A547ZGK6.cjs.map +1 -0
  5. package/dist/chunk-B4JQTSBD.js +50 -0
  6. package/dist/chunk-B4JQTSBD.js.map +1 -0
  7. package/dist/chunk-LVRTD44F.js +259 -0
  8. package/dist/chunk-LVRTD44F.js.map +1 -0
  9. package/dist/{chunk-SAN25LFN.js → chunk-Q7RZ5JID.js} +2 -2
  10. package/dist/chunk-Q7RZ5JID.js.map +1 -0
  11. package/dist/chunk-R42L3CIR.cjs +50 -0
  12. package/dist/chunk-R42L3CIR.cjs.map +1 -0
  13. package/dist/{chunk-AOBG3KWE.cjs → chunk-TJWN2AAW.cjs} +2 -2
  14. package/dist/chunk-TJWN2AAW.cjs.map +1 -0
  15. package/dist/chunk-YOFEI5MG.cjs +259 -0
  16. package/dist/chunk-YOFEI5MG.cjs.map +1 -0
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +89 -45
  20. package/dist/index.d.ts +89 -45
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/platform/api-platform.cjs +1 -1
  24. package/dist/platform/api-platform.js +1 -1
  25. package/dist/platform/index.cjs +1 -1
  26. package/dist/platform/index.cjs.map +1 -1
  27. package/dist/platform/index.d.cts +20 -1
  28. package/dist/platform/index.d.ts +20 -1
  29. package/dist/platform/index.js +1 -1
  30. package/dist/transports/stdio.cjs +1 -1
  31. package/dist/transports/stdio.cjs.map +1 -1
  32. package/dist/transports/stdio.js +1 -1
  33. package/dist/transports/stdio.js.map +1 -1
  34. package/package.json +6 -5
  35. package/dist/chunk-5ZLDWHAI.js +0 -50
  36. package/dist/chunk-5ZLDWHAI.js.map +0 -1
  37. package/dist/chunk-625WW4FW.js +0 -17
  38. package/dist/chunk-625WW4FW.js.map +0 -1
  39. package/dist/chunk-AOBG3KWE.cjs.map +0 -1
  40. package/dist/chunk-DUTV6OKU.cjs +0 -17
  41. package/dist/chunk-DUTV6OKU.cjs.map +0 -1
  42. package/dist/chunk-JBXRGAGL.cjs +0 -50
  43. package/dist/chunk-JBXRGAGL.cjs.map +0 -1
  44. package/dist/chunk-M3HYJBQV.cjs +0 -258
  45. package/dist/chunk-M3HYJBQV.cjs.map +0 -1
  46. package/dist/chunk-QUNIPP3Q.js +0 -258
  47. package/dist/chunk-QUNIPP3Q.js.map +0 -1
  48. package/dist/chunk-SAN25LFN.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ToolCallCallback } from '@supabase/mcp-utils';
2
2
  export { ToolCallCallback } from '@supabase/mcp-utils';
3
3
  import { SupabasePlatform } from './platform/index.cjs';
4
- import * as _modelcontextprotocol_sdk_server from '@modelcontextprotocol/sdk/server';
4
+ import * as _modelcontextprotocol_server from '@modelcontextprotocol/server';
5
5
  import { z } from 'zod/v4';
6
6
 
7
7
  declare const CURRENT_FEATURE_GROUPS: readonly ["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"];
@@ -52,40 +52,9 @@ type SupabaseMcpServerOptions = {
52
52
  /**
53
53
  * Creates an MCP server for interacting with Supabase.
54
54
  */
55
- declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_sdk_server.Server<{
56
- method: string;
57
- params?: {
58
- [x: string]: unknown;
59
- _meta?: {
60
- [x: string]: unknown;
61
- progressToken?: string | number | undefined;
62
- "io.modelcontextprotocol/related-task"?: {
63
- taskId: string;
64
- } | undefined;
65
- } | undefined;
66
- } | undefined;
67
- }, {
68
- method: string;
69
- params?: {
70
- [x: string]: unknown;
71
- _meta?: {
72
- [x: string]: unknown;
73
- progressToken?: string | number | undefined;
74
- "io.modelcontextprotocol/related-task"?: {
75
- taskId: string;
76
- } | undefined;
77
- } | undefined;
78
- } | undefined;
79
- }, {
80
- [x: string]: unknown;
81
- _meta?: {
82
- [x: string]: unknown;
83
- progressToken?: string | number | undefined;
84
- "io.modelcontextprotocol/related-task"?: {
85
- taskId: string;
86
- } | undefined;
87
- } | undefined;
88
- }>;
55
+ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_server.Server;
56
+
57
+ declare function createSupabaseMcpHandler(options: SupabaseMcpServerOptions): _modelcontextprotocol_server.McpHttpHandler;
89
58
 
90
59
  declare const accountToolDefs: {
91
60
  readonly list_organizations: {
@@ -469,8 +438,10 @@ declare const databaseToolDefs: {
469
438
  primary_keys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
470
439
  foreign_key_constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
471
440
  name: z.ZodString;
472
- source: z.ZodString;
473
- target: z.ZodString;
441
+ source_table: z.ZodString;
442
+ source_columns: z.ZodArray<z.ZodString>;
443
+ target_table: z.ZodString;
444
+ target_columns: z.ZodArray<z.ZodString>;
474
445
  }, z.core.$strip>>>;
475
446
  }, z.core.$strip>>;
476
447
  advisory: z.ZodOptional<z.ZodObject<{
@@ -576,7 +547,7 @@ declare const databaseToolDefs: {
576
547
 
577
548
  declare const debuggingToolDefs: {
578
549
  readonly get_logs: {
579
- readonly description: "Gets logs for a Supabase project by service type. Each call returns logs from the last 24 hours by default. Provide a custom iso_timestamp_start/iso_timestamp_end window up to 24 hours. Edge Function logs are split by kind: `edge-function` returns invocation/request logs, while `edge-function-runtime` returns console output from inside the function. Query one service first, then correlate with other services by timestamp or error anchors. Do not poll get_logs in a loop.";
550
+ readonly description: "Gets logs for a Supabase project by service type. When the user asks about a specific time range, always pass iso_timestamp_start and iso_timestamp_end to match it; otherwise each call defaults to the last 24 hours and will return logs from a wider window than intended. The window can be up to 24 hours. Edge Function logs are split by kind: `edge-function` returns invocation/request logs, while `edge-function-runtime` returns console output from inside the function. Query one service first, then correlate with other services by timestamp or error anchors. Do not poll get_logs in a loop.";
580
551
  readonly parameters: z.ZodObject<{
581
552
  project_id: z.ZodString;
582
553
  service: z.ZodEnum<{
@@ -589,8 +560,8 @@ declare const debuggingToolDefs: {
589
560
  storage: "storage";
590
561
  realtime: "realtime";
591
562
  }>;
592
- iso_timestamp_start: z.ZodOptional<z.ZodString>;
593
- iso_timestamp_end: z.ZodOptional<z.ZodString>;
563
+ iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
564
+ iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
594
565
  }, z.core.$strip>;
595
566
  readonly outputSchema: z.ZodObject<{
596
567
  result: z.ZodUnknown;
@@ -603,6 +574,25 @@ declare const debuggingToolDefs: {
603
574
  readonly openWorldHint: false;
604
575
  };
605
576
  };
577
+ readonly query_logs: {
578
+ readonly description: string;
579
+ readonly parameters: z.ZodObject<{
580
+ project_id: z.ZodString;
581
+ sql: z.ZodString;
582
+ iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
583
+ iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
584
+ }, z.core.$strip>;
585
+ readonly outputSchema: z.ZodObject<{
586
+ result: z.ZodUnknown;
587
+ }, z.core.$strip>;
588
+ readonly annotations: {
589
+ readonly title: "Query project logs";
590
+ readonly readOnlyHint: true;
591
+ readonly destructiveHint: false;
592
+ readonly idempotentHint: true;
593
+ readonly openWorldHint: false;
594
+ };
595
+ };
606
596
  readonly get_advisors: {
607
597
  readonly description: "Gets a list of advisory notices for the Supabase project. Use this to check for security vulnerabilities or performance improvements. Include the remediation URL as a clickable link so that the user can reference the issue themselves. It's recommended to run this tool regularly, especially after making DDL changes to the database since it will catch things like missing RLS policies.";
608
598
  readonly parameters: z.ZodObject<{
@@ -918,6 +908,7 @@ declare const supabaseMcpToolSchemas: {
918
908
  readonly openWorldHint: false;
919
909
  };
920
910
  readOnlyBehavior: undefined;
911
+ hidden: undefined;
921
912
  };
922
913
  get_storage_config: {
923
914
  inputSchema: z.ZodObject<{
@@ -942,6 +933,7 @@ declare const supabaseMcpToolSchemas: {
942
933
  readonly openWorldHint: false;
943
934
  };
944
935
  readOnlyBehavior: undefined;
936
+ hidden: undefined;
945
937
  };
946
938
  update_storage_config: {
947
939
  inputSchema: z.ZodObject<{
@@ -969,6 +961,7 @@ declare const supabaseMcpToolSchemas: {
969
961
  readonly openWorldHint: false;
970
962
  };
971
963
  readOnlyBehavior: undefined;
964
+ hidden: undefined;
972
965
  };
973
966
  list_edge_functions: {
974
967
  inputSchema: z.ZodObject<{
@@ -997,6 +990,7 @@ declare const supabaseMcpToolSchemas: {
997
990
  readonly openWorldHint: false;
998
991
  };
999
992
  readOnlyBehavior: undefined;
993
+ hidden: undefined;
1000
994
  };
1001
995
  get_edge_function: {
1002
996
  inputSchema: z.ZodObject<{
@@ -1028,6 +1022,7 @@ declare const supabaseMcpToolSchemas: {
1028
1022
  readonly openWorldHint: false;
1029
1023
  };
1030
1024
  readOnlyBehavior: undefined;
1025
+ hidden: undefined;
1031
1026
  };
1032
1027
  deploy_edge_function: {
1033
1028
  inputSchema: z.ZodObject<{
@@ -1062,6 +1057,7 @@ declare const supabaseMcpToolSchemas: {
1062
1057
  readonly openWorldHint: false;
1063
1058
  };
1064
1059
  readOnlyBehavior: undefined;
1060
+ hidden: undefined;
1065
1061
  };
1066
1062
  search_docs: {
1067
1063
  inputSchema: z.ZodObject<{
@@ -1078,6 +1074,7 @@ declare const supabaseMcpToolSchemas: {
1078
1074
  readonly openWorldHint: false;
1079
1075
  };
1080
1076
  readOnlyBehavior: undefined;
1077
+ hidden: undefined;
1081
1078
  };
1082
1079
  get_project_url: {
1083
1080
  inputSchema: z.ZodObject<{
@@ -1094,6 +1091,7 @@ declare const supabaseMcpToolSchemas: {
1094
1091
  readonly openWorldHint: false;
1095
1092
  };
1096
1093
  readOnlyBehavior: undefined;
1094
+ hidden: undefined;
1097
1095
  };
1098
1096
  get_publishable_keys: {
1099
1097
  inputSchema: z.ZodObject<{
@@ -1120,6 +1118,7 @@ declare const supabaseMcpToolSchemas: {
1120
1118
  readonly openWorldHint: false;
1121
1119
  };
1122
1120
  readOnlyBehavior: undefined;
1121
+ hidden: undefined;
1123
1122
  };
1124
1123
  generate_typescript_types: {
1125
1124
  inputSchema: z.ZodObject<{
@@ -1136,6 +1135,7 @@ declare const supabaseMcpToolSchemas: {
1136
1135
  readonly openWorldHint: false;
1137
1136
  };
1138
1137
  readOnlyBehavior: undefined;
1138
+ hidden: undefined;
1139
1139
  };
1140
1140
  get_logs: {
1141
1141
  inputSchema: z.ZodObject<{
@@ -1150,8 +1150,8 @@ declare const supabaseMcpToolSchemas: {
1150
1150
  storage: "storage";
1151
1151
  realtime: "realtime";
1152
1152
  }>;
1153
- iso_timestamp_start: z.ZodOptional<z.ZodString>;
1154
- iso_timestamp_end: z.ZodOptional<z.ZodString>;
1153
+ iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
1154
+ iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
1155
1155
  }, z.core.$strip>;
1156
1156
  outputSchema: z.ZodObject<{
1157
1157
  result: z.ZodUnknown;
@@ -1164,6 +1164,27 @@ declare const supabaseMcpToolSchemas: {
1164
1164
  readonly openWorldHint: false;
1165
1165
  };
1166
1166
  readOnlyBehavior: undefined;
1167
+ hidden: undefined;
1168
+ };
1169
+ query_logs: {
1170
+ inputSchema: z.ZodObject<{
1171
+ project_id: z.ZodString;
1172
+ sql: z.ZodString;
1173
+ iso_timestamp_start: z.ZodOptional<z.ZodISODateTime>;
1174
+ iso_timestamp_end: z.ZodOptional<z.ZodISODateTime>;
1175
+ }, z.core.$strip>;
1176
+ outputSchema: z.ZodObject<{
1177
+ result: z.ZodUnknown;
1178
+ }, z.core.$strip>;
1179
+ annotations: {
1180
+ readonly title: "Query project logs";
1181
+ readonly readOnlyHint: true;
1182
+ readonly destructiveHint: false;
1183
+ readonly idempotentHint: true;
1184
+ readonly openWorldHint: false;
1185
+ };
1186
+ readOnlyBehavior: undefined;
1187
+ hidden: undefined;
1167
1188
  };
1168
1189
  get_advisors: {
1169
1190
  inputSchema: z.ZodObject<{
@@ -1184,6 +1205,7 @@ declare const supabaseMcpToolSchemas: {
1184
1205
  readonly openWorldHint: false;
1185
1206
  };
1186
1207
  readOnlyBehavior: undefined;
1208
+ hidden: undefined;
1187
1209
  };
1188
1210
  list_tables: {
1189
1211
  inputSchema: z.ZodObject<{
@@ -1211,8 +1233,10 @@ declare const supabaseMcpToolSchemas: {
1211
1233
  primary_keys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1212
1234
  foreign_key_constraints: z.ZodOptional<z.ZodArray<z.ZodObject<{
1213
1235
  name: z.ZodString;
1214
- source: z.ZodString;
1215
- target: z.ZodString;
1236
+ source_table: z.ZodString;
1237
+ source_columns: z.ZodArray<z.ZodString>;
1238
+ target_table: z.ZodString;
1239
+ target_columns: z.ZodArray<z.ZodString>;
1216
1240
  }, z.core.$strip>>>;
1217
1241
  }, z.core.$strip>>;
1218
1242
  advisory: z.ZodOptional<z.ZodObject<{
@@ -1237,6 +1261,7 @@ declare const supabaseMcpToolSchemas: {
1237
1261
  readonly openWorldHint: false;
1238
1262
  };
1239
1263
  readOnlyBehavior: undefined;
1264
+ hidden: undefined;
1240
1265
  };
1241
1266
  list_extensions: {
1242
1267
  inputSchema: z.ZodObject<{
@@ -1259,6 +1284,7 @@ declare const supabaseMcpToolSchemas: {
1259
1284
  readonly openWorldHint: false;
1260
1285
  };
1261
1286
  readOnlyBehavior: undefined;
1287
+ hidden: undefined;
1262
1288
  };
1263
1289
  list_migrations: {
1264
1290
  inputSchema: z.ZodObject<{
@@ -1278,6 +1304,7 @@ declare const supabaseMcpToolSchemas: {
1278
1304
  readonly openWorldHint: false;
1279
1305
  };
1280
1306
  readOnlyBehavior: undefined;
1307
+ hidden: undefined;
1281
1308
  };
1282
1309
  apply_migration: {
1283
1310
  inputSchema: z.ZodObject<{
@@ -1296,6 +1323,7 @@ declare const supabaseMcpToolSchemas: {
1296
1323
  readonly openWorldHint: true;
1297
1324
  };
1298
1325
  readOnlyBehavior: undefined;
1326
+ hidden: undefined;
1299
1327
  };
1300
1328
  execute_sql: {
1301
1329
  inputSchema: z.ZodObject<{
@@ -1313,6 +1341,7 @@ declare const supabaseMcpToolSchemas: {
1313
1341
  readonly openWorldHint: true;
1314
1342
  };
1315
1343
  readOnlyBehavior: "adapt";
1344
+ hidden: undefined;
1316
1345
  };
1317
1346
  create_branch: {
1318
1347
  inputSchema: z.ZodObject<{
@@ -1349,6 +1378,7 @@ declare const supabaseMcpToolSchemas: {
1349
1378
  readonly openWorldHint: false;
1350
1379
  };
1351
1380
  readOnlyBehavior: undefined;
1381
+ hidden: undefined;
1352
1382
  };
1353
1383
  list_branches: {
1354
1384
  inputSchema: z.ZodObject<{
@@ -1385,6 +1415,7 @@ declare const supabaseMcpToolSchemas: {
1385
1415
  readonly openWorldHint: false;
1386
1416
  };
1387
1417
  readOnlyBehavior: undefined;
1418
+ hidden: undefined;
1388
1419
  };
1389
1420
  delete_branch: {
1390
1421
  inputSchema: z.ZodObject<{
@@ -1401,6 +1432,7 @@ declare const supabaseMcpToolSchemas: {
1401
1432
  readonly openWorldHint: false;
1402
1433
  };
1403
1434
  readOnlyBehavior: undefined;
1435
+ hidden: undefined;
1404
1436
  };
1405
1437
  merge_branch: {
1406
1438
  inputSchema: z.ZodObject<{
@@ -1417,6 +1449,7 @@ declare const supabaseMcpToolSchemas: {
1417
1449
  readonly openWorldHint: false;
1418
1450
  };
1419
1451
  readOnlyBehavior: undefined;
1452
+ hidden: undefined;
1420
1453
  };
1421
1454
  reset_branch: {
1422
1455
  inputSchema: z.ZodObject<{
@@ -1434,6 +1467,7 @@ declare const supabaseMcpToolSchemas: {
1434
1467
  readonly openWorldHint: false;
1435
1468
  };
1436
1469
  readOnlyBehavior: undefined;
1470
+ hidden: undefined;
1437
1471
  };
1438
1472
  rebase_branch: {
1439
1473
  inputSchema: z.ZodObject<{
@@ -1450,6 +1484,7 @@ declare const supabaseMcpToolSchemas: {
1450
1484
  readonly openWorldHint: false;
1451
1485
  };
1452
1486
  readOnlyBehavior: undefined;
1487
+ hidden: undefined;
1453
1488
  };
1454
1489
  list_organizations: {
1455
1490
  inputSchema: z.ZodObject<{}, z.core.$strip>;
@@ -1468,6 +1503,7 @@ declare const supabaseMcpToolSchemas: {
1468
1503
  readonly openWorldHint: false;
1469
1504
  };
1470
1505
  readOnlyBehavior: undefined;
1506
+ hidden: undefined;
1471
1507
  };
1472
1508
  get_organization: {
1473
1509
  inputSchema: z.ZodObject<{
@@ -1488,6 +1524,7 @@ declare const supabaseMcpToolSchemas: {
1488
1524
  readonly openWorldHint: false;
1489
1525
  };
1490
1526
  readOnlyBehavior: undefined;
1527
+ hidden: undefined;
1491
1528
  };
1492
1529
  list_projects: {
1493
1530
  inputSchema: z.ZodObject<{}, z.core.$strip>;
@@ -1511,6 +1548,7 @@ declare const supabaseMcpToolSchemas: {
1511
1548
  readonly openWorldHint: false;
1512
1549
  };
1513
1550
  readOnlyBehavior: undefined;
1551
+ hidden: undefined;
1514
1552
  };
1515
1553
  get_project: {
1516
1554
  inputSchema: z.ZodObject<{
@@ -1534,6 +1572,7 @@ declare const supabaseMcpToolSchemas: {
1534
1572
  readonly openWorldHint: false;
1535
1573
  };
1536
1574
  readOnlyBehavior: undefined;
1575
+ hidden: undefined;
1537
1576
  };
1538
1577
  get_cost: {
1539
1578
  inputSchema: z.ZodObject<{
@@ -1562,6 +1601,7 @@ declare const supabaseMcpToolSchemas: {
1562
1601
  readonly openWorldHint: false;
1563
1602
  };
1564
1603
  readOnlyBehavior: undefined;
1604
+ hidden: undefined;
1565
1605
  };
1566
1606
  confirm_cost: {
1567
1607
  inputSchema: z.ZodObject<{
@@ -1586,6 +1626,7 @@ declare const supabaseMcpToolSchemas: {
1586
1626
  readonly openWorldHint: false;
1587
1627
  };
1588
1628
  readOnlyBehavior: undefined;
1629
+ hidden: undefined;
1589
1630
  };
1590
1631
  create_project: {
1591
1632
  inputSchema: z.ZodObject<{
@@ -1629,6 +1670,7 @@ declare const supabaseMcpToolSchemas: {
1629
1670
  readonly openWorldHint: false;
1630
1671
  };
1631
1672
  readOnlyBehavior: undefined;
1673
+ hidden: undefined;
1632
1674
  };
1633
1675
  pause_project: {
1634
1676
  inputSchema: z.ZodObject<{
@@ -1645,6 +1687,7 @@ declare const supabaseMcpToolSchemas: {
1645
1687
  readonly openWorldHint: false;
1646
1688
  };
1647
1689
  readOnlyBehavior: undefined;
1690
+ hidden: undefined;
1648
1691
  };
1649
1692
  restore_project: {
1650
1693
  inputSchema: z.ZodObject<{
@@ -1661,6 +1704,7 @@ declare const supabaseMcpToolSchemas: {
1661
1704
  readonly openWorldHint: false;
1662
1705
  };
1663
1706
  readOnlyBehavior: undefined;
1707
+ hidden: undefined;
1664
1708
  };
1665
1709
  };
1666
1710
  /**
@@ -1748,4 +1792,4 @@ declare function createToolSchemas<const Features extends readonly FeatureGroup[
1748
1792
 
1749
1793
  declare const version: string;
1750
1794
 
1751
- export { CURRENT_FEATURE_GROUPS, type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };
1795
+ export { CURRENT_FEATURE_GROUPS, type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpHandler, createSupabaseMcpServer, createToolSchemas, supabaseMcpToolSchemas, version };