@supabase/mcp-server-supabase 0.5.0-dev.2 → 0.5.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 (39) hide show
  1. package/LICENSE +201 -0
  2. package/dist/chunk-H4SVIPGM.cjs +310 -0
  3. package/dist/chunk-H4SVIPGM.cjs.map +1 -0
  4. package/dist/{chunk-IOHEADG7.js → chunk-HZY7T3AL.js} +2 -2
  5. package/dist/chunk-HZY7T3AL.js.map +1 -0
  6. package/dist/chunk-NDUGAFV2.cjs +2 -0
  7. package/dist/chunk-NDUGAFV2.cjs.map +1 -0
  8. package/dist/{chunk-T33PCDHO.cjs → chunk-NOEAMFQL.cjs} +2 -2
  9. package/dist/chunk-NOEAMFQL.cjs.map +1 -0
  10. package/dist/chunk-NXJ77CGK.js +2 -0
  11. package/dist/chunk-NXJ77CGK.js.map +1 -0
  12. package/dist/chunk-UOAMPZEU.js +310 -0
  13. package/dist/chunk-UOAMPZEU.js.map +1 -0
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +4 -15
  17. package/dist/index.d.ts +4 -15
  18. package/dist/index.js +1 -1
  19. package/dist/platform/api-platform.cjs +1 -1
  20. package/dist/platform/api-platform.js +1 -1
  21. package/dist/platform/index.cjs +1 -1
  22. package/dist/platform/index.d.cts +3 -3
  23. package/dist/platform/index.d.ts +3 -3
  24. package/dist/platform/index.js +1 -1
  25. package/dist/transports/stdio.cjs +1 -1
  26. package/dist/transports/stdio.cjs.map +1 -1
  27. package/dist/transports/stdio.js +1 -1
  28. package/dist/transports/stdio.js.map +1 -1
  29. package/package.json +21 -16
  30. package/dist/chunk-423WZY7A.js +0 -311
  31. package/dist/chunk-423WZY7A.js.map +0 -1
  32. package/dist/chunk-IOHEADG7.js.map +0 -1
  33. package/dist/chunk-OFGVEV4O.cjs +0 -311
  34. package/dist/chunk-OFGVEV4O.cjs.map +0 -1
  35. package/dist/chunk-PP5H5OJO.js +0 -2
  36. package/dist/chunk-PP5H5OJO.js.map +0 -1
  37. package/dist/chunk-T33PCDHO.cjs.map +0 -1
  38. package/dist/chunk-TBBFCSW2.cjs +0 -2
  39. package/dist/chunk-TBBFCSW2.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,21 +1,11 @@
1
1
  import { SupabasePlatform } from './platform/index.cjs';
2
- import * as _modelcontextprotocol_sdk_server_index_js from '@modelcontextprotocol/sdk/server/index.js';
2
+ import * as _modelcontextprotocol_sdk_server from '@modelcontextprotocol/sdk/server';
3
3
  import { z } from 'zod';
4
4
  import '@supabase/mcp-utils';
5
5
 
6
- declare const featureGroupSchema: z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>;
6
+ declare const featureGroupSchema: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["debug"]>, z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>]>, "account" | "branching" | "database" | "storage" | "debugging" | "development" | "functions" | "docs", "account" | "branching" | "database" | "storage" | "debugging" | "development" | "functions" | "debug" | "docs">;
7
7
  type FeatureGroup = z.infer<typeof featureGroupSchema>;
8
8
 
9
- type SupabasePlatformOptions = {
10
- /**
11
- * The access token for the Supabase Management API.
12
- */
13
- accessToken: string;
14
- /**
15
- * The API URL for the Supabase Management API.
16
- */
17
- apiUrl?: string;
18
- };
19
9
  type SupabaseMcpServerOptions = {
20
10
  /**
21
11
  * Platform implementation for Supabase.
@@ -42,11 +32,10 @@ type SupabaseMcpServerOptions = {
42
32
  */
43
33
  features?: string[];
44
34
  };
45
- declare const PLATFORM_INDEPENDENT_FEATURES: FeatureGroup[];
46
35
  /**
47
36
  * Creates an MCP server for interacting with Supabase.
48
37
  */
49
- declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_sdk_server_index_js.Server<{
38
+ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_sdk_server.Server<{
50
39
  method: string;
51
40
  params?: {
52
41
  [x: string]: unknown;
@@ -70,4 +59,4 @@ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _mo
70
59
  } | undefined;
71
60
  }>;
72
61
 
73
- export { PLATFORM_INDEPENDENT_FEATURES, type SupabaseMcpServerOptions, SupabasePlatform, type SupabasePlatformOptions, createSupabaseMcpServer };
62
+ export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, featureGroupSchema };
package/dist/index.d.ts CHANGED
@@ -1,21 +1,11 @@
1
1
  import { SupabasePlatform } from './platform/index.js';
2
- import * as _modelcontextprotocol_sdk_server_index_js from '@modelcontextprotocol/sdk/server/index.js';
2
+ import * as _modelcontextprotocol_sdk_server from '@modelcontextprotocol/sdk/server';
3
3
  import { z } from 'zod';
4
4
  import '@supabase/mcp-utils';
5
5
 
6
- declare const featureGroupSchema: z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>;
6
+ declare const featureGroupSchema: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["debug"]>, z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>]>, "account" | "branching" | "database" | "storage" | "debugging" | "development" | "functions" | "docs", "account" | "branching" | "database" | "storage" | "debugging" | "development" | "functions" | "debug" | "docs">;
7
7
  type FeatureGroup = z.infer<typeof featureGroupSchema>;
8
8
 
9
- type SupabasePlatformOptions = {
10
- /**
11
- * The access token for the Supabase Management API.
12
- */
13
- accessToken: string;
14
- /**
15
- * The API URL for the Supabase Management API.
16
- */
17
- apiUrl?: string;
18
- };
19
9
  type SupabaseMcpServerOptions = {
20
10
  /**
21
11
  * Platform implementation for Supabase.
@@ -42,11 +32,10 @@ type SupabaseMcpServerOptions = {
42
32
  */
43
33
  features?: string[];
44
34
  };
45
- declare const PLATFORM_INDEPENDENT_FEATURES: FeatureGroup[];
46
35
  /**
47
36
  * Creates an MCP server for interacting with Supabase.
48
37
  */
49
- declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_sdk_server_index_js.Server<{
38
+ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _modelcontextprotocol_sdk_server.Server<{
50
39
  method: string;
51
40
  params?: {
52
41
  [x: string]: unknown;
@@ -70,4 +59,4 @@ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _mo
70
59
  } | undefined;
71
60
  }>;
72
61
 
73
- export { PLATFORM_INDEPENDENT_FEATURES, type SupabaseMcpServerOptions, SupabasePlatform, type SupabasePlatformOptions, createSupabaseMcpServer };
62
+ export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, featureGroupSchema };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{h as o,i as r}from"./chunk-423WZY7A.js";export{o as PLATFORM_INDEPENDENT_FEATURES,r as createSupabaseMcpServer};
1
+ import{b as e,f as r}from"./chunk-UOAMPZEU.js";export{r as createSupabaseMcpServer,e as featureGroupSchema};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTBBFCSW2cjs = require('../chunk-TBBFCSW2.cjs');require('../chunk-T33PCDHO.cjs');require('../chunk-OFGVEV4O.cjs');exports.createSupabaseApiPlatform = _chunkTBBFCSW2cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNDUGAFV2cjs = require('../chunk-NDUGAFV2.cjs');require('../chunk-NOEAMFQL.cjs');require('../chunk-H4SVIPGM.cjs');exports.createSupabaseApiPlatform = _chunkNDUGAFV2cjs.a;
2
2
  //# sourceMappingURL=api-platform.cjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-PP5H5OJO.js";import"../chunk-IOHEADG7.js";import"../chunk-423WZY7A.js";export{a as createSupabaseApiPlatform};
1
+ import{a}from"../chunk-NXJ77CGK.js";import"../chunk-HZY7T3AL.js";import"../chunk-UOAMPZEU.js";export{a as createSupabaseApiPlatform};
2
2
  //# sourceMappingURL=api-platform.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkT33PCDHOcjs = require('../chunk-T33PCDHO.cjs');require('../chunk-OFGVEV4O.cjs');exports.applyMigrationOptionsSchema = _chunkT33PCDHOcjs.l; exports.branchSchema = _chunkT33PCDHOcjs.e; exports.createBranchOptionsSchema = _chunkT33PCDHOcjs.h; exports.createProjectOptionsSchema = _chunkT33PCDHOcjs.g; exports.deployEdgeFunctionOptionsSchema = _chunkT33PCDHOcjs.j; exports.edgeFunctionSchema = _chunkT33PCDHOcjs.f; exports.executeSqlOptionsSchema = _chunkT33PCDHOcjs.k; exports.generateTypescriptTypesResultSchema = _chunkT33PCDHOcjs.o; exports.getLogsOptionsSchema = _chunkT33PCDHOcjs.n; exports.migrationSchema = _chunkT33PCDHOcjs.m; exports.organizationSchema = _chunkT33PCDHOcjs.c; exports.projectSchema = _chunkT33PCDHOcjs.d; exports.resetBranchOptionsSchema = _chunkT33PCDHOcjs.i; exports.storageBucketSchema = _chunkT33PCDHOcjs.a; exports.storageConfigSchema = _chunkT33PCDHOcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNOEAMFQLcjs = require('../chunk-NOEAMFQL.cjs');require('../chunk-H4SVIPGM.cjs');exports.applyMigrationOptionsSchema = _chunkNOEAMFQLcjs.l; exports.branchSchema = _chunkNOEAMFQLcjs.e; exports.createBranchOptionsSchema = _chunkNOEAMFQLcjs.h; exports.createProjectOptionsSchema = _chunkNOEAMFQLcjs.g; exports.deployEdgeFunctionOptionsSchema = _chunkNOEAMFQLcjs.j; exports.edgeFunctionSchema = _chunkNOEAMFQLcjs.f; exports.executeSqlOptionsSchema = _chunkNOEAMFQLcjs.k; exports.generateTypescriptTypesResultSchema = _chunkNOEAMFQLcjs.o; exports.getLogsOptionsSchema = _chunkNOEAMFQLcjs.n; exports.migrationSchema = _chunkNOEAMFQLcjs.m; exports.organizationSchema = _chunkNOEAMFQLcjs.c; exports.projectSchema = _chunkNOEAMFQLcjs.d; exports.resetBranchOptionsSchema = _chunkNOEAMFQLcjs.i; exports.storageBucketSchema = _chunkNOEAMFQLcjs.a; exports.storageConfigSchema = _chunkNOEAMFQLcjs.b;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -215,17 +215,17 @@ declare const edgeFunctionSchema: z.ZodObject<{
215
215
  declare const createProjectOptionsSchema: z.ZodObject<{
216
216
  name: z.ZodString;
217
217
  organization_id: z.ZodString;
218
- region: z.ZodOptional<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"]>>;
218
+ 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"]>;
219
219
  db_pass: z.ZodOptional<z.ZodString>;
220
220
  }, "strip", z.ZodTypeAny, {
221
221
  name: string;
222
222
  organization_id: string;
223
- 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" | undefined;
223
+ 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";
224
224
  db_pass?: string | undefined;
225
225
  }, {
226
226
  name: string;
227
227
  organization_id: string;
228
- 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" | undefined;
228
+ 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";
229
229
  db_pass?: string | undefined;
230
230
  }>;
231
231
  declare const createBranchOptionsSchema: z.ZodObject<{
@@ -215,17 +215,17 @@ declare const edgeFunctionSchema: z.ZodObject<{
215
215
  declare const createProjectOptionsSchema: z.ZodObject<{
216
216
  name: z.ZodString;
217
217
  organization_id: z.ZodString;
218
- region: z.ZodOptional<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"]>>;
218
+ 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"]>;
219
219
  db_pass: z.ZodOptional<z.ZodString>;
220
220
  }, "strip", z.ZodTypeAny, {
221
221
  name: string;
222
222
  organization_id: string;
223
- 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" | undefined;
223
+ 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";
224
224
  db_pass?: string | undefined;
225
225
  }, {
226
226
  name: string;
227
227
  organization_id: string;
228
- 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" | undefined;
228
+ 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";
229
229
  db_pass?: string | undefined;
230
230
  }>;
231
231
  declare const createBranchOptionsSchema: z.ZodObject<{
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../chunk-IOHEADG7.js";import"../chunk-423WZY7A.js";export{l as applyMigrationOptionsSchema,e as branchSchema,h as createBranchOptionsSchema,g as createProjectOptionsSchema,j as deployEdgeFunctionOptionsSchema,f as edgeFunctionSchema,k as executeSqlOptionsSchema,o as generateTypescriptTypesResultSchema,n as getLogsOptionsSchema,m as migrationSchema,c as organizationSchema,d as projectSchema,i as resetBranchOptionsSchema,a as storageBucketSchema,b as storageConfigSchema};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../chunk-HZY7T3AL.js";import"../chunk-UOAMPZEU.js";export{l as applyMigrationOptionsSchema,e as branchSchema,h as createBranchOptionsSchema,g as createProjectOptionsSchema,j as deployEdgeFunctionOptionsSchema,f as edgeFunctionSchema,k as executeSqlOptionsSchema,o as generateTypescriptTypesResultSchema,n as getLogsOptionsSchema,m as migrationSchema,c as organizationSchema,d as projectSchema,i as resetBranchOptionsSchema,a as storageBucketSchema,b as storageConfigSchema};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkTBBFCSW2cjs = require('../chunk-TBBFCSW2.cjs');require('../chunk-T33PCDHO.cjs');var _chunkOFGVEV4Ocjs = require('../chunk-OFGVEV4O.cjs');var _stdiojs = require('@modelcontextprotocol/sdk/server/stdio.js');var _util = require('util');function p(r,o=","){return r.split(o).map(e=>e.trim()).filter(e=>e!=="")}var{version:d}=_chunkOFGVEV4Ocjs.a;async function g(){let{values:{["access-token"]:r,["project-ref"]:o,["read-only"]:t,["api-url"]:e,["version"]:l,["features"]:s}}=_util.parseArgs.call(void 0, {options:{"access-token":{type:"string"},"project-ref":{type:"string"},"read-only":{type:"boolean",default:!1},"api-url":{type:"string"},version:{type:"boolean"},features:{type:"string"}}});l&&(console.log(d),process.exit(0));let n=_nullishCoalesce(r, () => (process.env.SUPABASE_ACCESS_TOKEN));n||(console.error("Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable"),process.exit(1));let f=s?p(s):void 0,m=_chunkTBBFCSW2cjs.a.call(void 0, {accessToken:n,apiUrl:e}),u=_chunkOFGVEV4Ocjs.i.call(void 0, {platform:m,projectId:o,readOnly:t,features:f}),S=new _stdiojs.StdioServerTransport;await u.connect(S)}g().catch(console.error);
2
+ "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkNDUGAFV2cjs = require('../chunk-NDUGAFV2.cjs');require('../chunk-NOEAMFQL.cjs');var _chunkH4SVIPGMcjs = require('../chunk-H4SVIPGM.cjs');var _stdiojs = require('@modelcontextprotocol/sdk/server/stdio.js');var _util = require('util');function p(r,o=","){return r.split(o).map(e=>e.trim()).filter(e=>e!=="")}var{version:d}=_chunkH4SVIPGMcjs.a;async function g(){let{values:{["access-token"]:r,["project-ref"]:o,["read-only"]:t,["api-url"]:e,["version"]:l,["features"]:s}}=_util.parseArgs.call(void 0, {options:{"access-token":{type:"string"},"project-ref":{type:"string"},"read-only":{type:"boolean",default:!1},"api-url":{type:"string"},version:{type:"boolean"},features:{type:"string"}}});l&&(console.log(d),process.exit(0));let n=_nullishCoalesce(r, () => (process.env.SUPABASE_ACCESS_TOKEN));n||(console.error("Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable"),process.exit(1));let f=s?p(s):void 0,m=_chunkNDUGAFV2cjs.a.call(void 0, {accessToken:n,apiUrl:e}),u=_chunkH4SVIPGMcjs.f.call(void 0, {platform:m,projectId:o,readOnly:t,features:f}),S=new _stdiojs.StdioServerTransport;await u.connect(S)}g().catch(console.error);
3
3
  //# sourceMappingURL=stdio.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/grichardson/Documents/dev/supabase/mcp-server-supabase/packages/mcp-server-supabase/dist/transports/stdio.cjs","../../src/transports/stdio.ts","../../src/transports/util.ts"],"names":["parseList","list","delimiter","feature","version","package_default","main","cliAccessToken","projectId","readOnly","apiUrl","showVersion","cliFeatures","parseArgs","accessToken","features","platform","createSupabaseApiPlatform","server","createSupabaseMcpServer","transport","StdioServerTransport"],"mappings":"AAAA;AACA,0KAAyC,iCAA8B,yDAAuC,oECCzE,4BACX,SCGVA,CAAAA,CAAUC,CAAAA,CAAcC,CAAAA,CAAY,GAAA,CAAe,CAEjE,OADcD,CAAAA,CAAK,KAAA,CAAMC,CAAS,CAAA,CAAE,GAAA,CAAKC,CAAAA,EAAYA,CAAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACtD,MAAA,CAAQA,CAAAA,EAAYA,CAAAA,GAAY,EAAE,CACjD,CDAA,GAAM,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,mBAAAA,CAEpB,MAAA,SAAeC,CAAAA,CAAAA,CAAO,CACpB,GAAM,CACJ,MAAA,CAAQ,CACN,CAAC,cAAc,CAAA,CAAGC,CAAAA,CAClB,CAAC,aAAa,CAAA,CAAGC,CAAAA,CACjB,CAAC,WAAW,CAAA,CAAGC,CAAAA,CACf,CAAC,SAAS,CAAA,CAAGC,CAAAA,CACb,CAAC,SAAS,CAAA,CAAGC,CAAAA,CACb,CAAC,UAAU,CAAA,CAAGC,CAChB,CACF,CAAA,CAAIC,6BAAAA,CACF,OAAA,CAAS,CACN,cAAA,CAAiB,CAChB,IAAA,CAAM,QACR,CAAA,CACC,aAAA,CAAgB,CACf,IAAA,CAAM,QACR,CAAA,CACC,WAAA,CAAc,CACb,IAAA,CAAM,SAAA,CACN,OAAA,CAAS,CAAA,CACX,CAAA,CACC,SAAA,CAAY,CACX,IAAA,CAAM,QACR,CAAA,CACC,OAAA,CAAY,CACX,IAAA,CAAM,SACR,CAAA,CACC,QAAA,CAAa,CACZ,IAAA,CAAM,QACR,CACF,CACF,CAAC,CAAA,CAEGF,CAAAA,EAAAA,CACF,OAAA,CAAQ,GAAA,CAAIP,CAAO,CAAA,CACnB,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAGhB,IAAMU,CAAAA,kBAAcP,CAAAA,SAAkB,OAAA,CAAQ,GAAA,CAAI,uBAAA,CAE7CO,CAAAA,EAAAA,CACH,OAAA,CAAQ,KAAA,CACN,iIACF,CAAA,CACA,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAGhB,IAAMC,CAAAA,CAAWH,CAAAA,CAAcZ,CAAAA,CAAUY,CAAW,CAAA,CAAI,KAAA,CAAA,CAElDI,CAAAA,CAAWC,iCAAAA,CACf,WAAA,CAAAH,CAAAA,CACA,MAAA,CAAAJ,CACF,CAAC,CAAA,CAEKQ,CAAAA,CAASC,iCAAAA,CACb,QAAA,CAAAH,CAAAA,CACA,SAAA,CAAAR,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAM,CACF,CAAC,CAAA,CAEKK,CAAAA,CAAY,IAAIC,6BAAAA,CAEtB,MAAMH,CAAAA,CAAO,OAAA,CAAQE,CAAS,CAChC,CAEAd,CAAAA,CAAK,CAAA,CAAE,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA","file":"/Users/grichardson/Documents/dev/supabase/mcp-server-supabase/packages/mcp-server-supabase/dist/transports/stdio.cjs","sourcesContent":[null,"#!/usr/bin/env node\n\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { parseArgs } from 'node:util';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport { createSupabaseApiPlatform } from '../platform/api-platform.js';\nimport { createSupabaseMcpServer } from '../server.js';\nimport { parseList } from './util.js';\n\nconst { version } = packageJson;\n\nasync function main() {\n const {\n values: {\n ['access-token']: cliAccessToken,\n ['project-ref']: projectId,\n ['read-only']: readOnly,\n ['api-url']: apiUrl,\n ['version']: showVersion,\n ['features']: cliFeatures,\n },\n } = parseArgs({\n options: {\n ['access-token']: {\n type: 'string',\n },\n ['project-ref']: {\n type: 'string',\n },\n ['read-only']: {\n type: 'boolean',\n default: false,\n },\n ['api-url']: {\n type: 'string',\n },\n ['version']: {\n type: 'boolean',\n },\n ['features']: {\n type: 'string',\n },\n },\n });\n\n if (showVersion) {\n console.log(version);\n process.exit(0);\n }\n\n const accessToken = cliAccessToken ?? process.env.SUPABASE_ACCESS_TOKEN;\n\n if (!accessToken) {\n console.error(\n 'Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable'\n );\n process.exit(1);\n }\n\n const features = cliFeatures ? parseList(cliFeatures) : undefined;\n\n const platform = createSupabaseApiPlatform({\n accessToken,\n apiUrl,\n });\n\n const server = createSupabaseMcpServer({\n platform,\n projectId,\n readOnly,\n features,\n });\n\n const transport = new StdioServerTransport();\n\n await server.connect(transport);\n}\n\nmain().catch(console.error);\n","/**\n * Parses a delimited list of items into an array,\n * trimming whitespace and filtering out empty items.\n *\n * Default delimiter is a comma (`,`).\n */\nexport function parseList(list: string, delimiter = ','): string[] {\n const items = list.split(delimiter).map((feature) => feature.trim());\n return items.filter((feature) => feature !== '');\n}\n"]}
1
+ {"version":3,"sources":["/Users/grichardson/Documents/dev/supabase/mcp-server-supabase/packages/mcp-server-supabase/dist/transports/stdio.cjs","../../src/transports/stdio.ts","../../src/transports/util.ts"],"names":["parseList","list","delimiter","feature","version","package_default","main","cliAccessToken","projectId","readOnly","apiUrl","showVersion","cliFeatures","parseArgs","accessToken","features","platform","createSupabaseApiPlatform","server","createSupabaseMcpServer","transport","StdioServerTransport"],"mappings":"AAAA;AACA,0KAAyC,iCAA8B,yDAA4C,oECC9E,4BACX,SCGVA,CAAAA,CAAUC,CAAAA,CAAcC,CAAAA,CAAY,GAAA,CAAe,CAEjE,OADcD,CAAAA,CAAK,KAAA,CAAMC,CAAS,CAAA,CAAE,GAAA,CAAKC,CAAAA,EAAYA,CAAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACtD,MAAA,CAAQA,CAAAA,EAAYA,CAAAA,GAAY,EAAE,CACjD,CDAA,GAAM,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,mBAAAA,CAEpB,MAAA,SAAeC,CAAAA,CAAAA,CAAO,CACpB,GAAM,CACJ,MAAA,CAAQ,CACN,CAAC,cAAc,CAAA,CAAGC,CAAAA,CAClB,CAAC,aAAa,CAAA,CAAGC,CAAAA,CACjB,CAAC,WAAW,CAAA,CAAGC,CAAAA,CACf,CAAC,SAAS,CAAA,CAAGC,CAAAA,CACb,CAAC,SAAS,CAAA,CAAGC,CAAAA,CACb,CAAC,UAAU,CAAA,CAAGC,CAChB,CACF,CAAA,CAAIC,6BAAAA,CACF,OAAA,CAAS,CACN,cAAA,CAAiB,CAChB,IAAA,CAAM,QACR,CAAA,CACC,aAAA,CAAgB,CACf,IAAA,CAAM,QACR,CAAA,CACC,WAAA,CAAc,CACb,IAAA,CAAM,SAAA,CACN,OAAA,CAAS,CAAA,CACX,CAAA,CACC,SAAA,CAAY,CACX,IAAA,CAAM,QACR,CAAA,CACC,OAAA,CAAY,CACX,IAAA,CAAM,SACR,CAAA,CACC,QAAA,CAAa,CACZ,IAAA,CAAM,QACR,CACF,CACF,CAAC,CAAA,CAEGF,CAAAA,EAAAA,CACF,OAAA,CAAQ,GAAA,CAAIP,CAAO,CAAA,CACnB,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAGhB,IAAMU,CAAAA,kBAAcP,CAAAA,SAAkB,OAAA,CAAQ,GAAA,CAAI,uBAAA,CAE7CO,CAAAA,EAAAA,CACH,OAAA,CAAQ,KAAA,CACN,iIACF,CAAA,CACA,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAGhB,IAAMC,CAAAA,CAAWH,CAAAA,CAAcZ,CAAAA,CAAUY,CAAW,CAAA,CAAI,KAAA,CAAA,CAElDI,CAAAA,CAAWC,iCAAAA,CACf,WAAA,CAAAH,CAAAA,CACA,MAAA,CAAAJ,CACF,CAAC,CAAA,CAEKQ,CAAAA,CAASC,iCAAAA,CACb,QAAA,CAAAH,CAAAA,CACA,SAAA,CAAAR,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAM,CACF,CAAC,CAAA,CAEKK,CAAAA,CAAY,IAAIC,6BAAAA,CAEtB,MAAMH,CAAAA,CAAO,OAAA,CAAQE,CAAS,CAChC,CAEAd,CAAAA,CAAK,CAAA,CAAE,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA","file":"/Users/grichardson/Documents/dev/supabase/mcp-server-supabase/packages/mcp-server-supabase/dist/transports/stdio.cjs","sourcesContent":[null,"#!/usr/bin/env node\n\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { parseArgs } from 'node:util';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport { createSupabaseApiPlatform } from '../platform/api-platform.js';\nimport { createSupabaseMcpServer } from '../server.js';\nimport { parseList } from './util.js';\n\nconst { version } = packageJson;\n\nasync function main() {\n const {\n values: {\n ['access-token']: cliAccessToken,\n ['project-ref']: projectId,\n ['read-only']: readOnly,\n ['api-url']: apiUrl,\n ['version']: showVersion,\n ['features']: cliFeatures,\n },\n } = parseArgs({\n options: {\n ['access-token']: {\n type: 'string',\n },\n ['project-ref']: {\n type: 'string',\n },\n ['read-only']: {\n type: 'boolean',\n default: false,\n },\n ['api-url']: {\n type: 'string',\n },\n ['version']: {\n type: 'boolean',\n },\n ['features']: {\n type: 'string',\n },\n },\n });\n\n if (showVersion) {\n console.log(version);\n process.exit(0);\n }\n\n const accessToken = cliAccessToken ?? process.env.SUPABASE_ACCESS_TOKEN;\n\n if (!accessToken) {\n console.error(\n 'Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable'\n );\n process.exit(1);\n }\n\n const features = cliFeatures ? parseList(cliFeatures) : undefined;\n\n const platform = createSupabaseApiPlatform({\n accessToken,\n apiUrl,\n });\n\n const server = createSupabaseMcpServer({\n platform,\n projectId,\n readOnly,\n features,\n });\n\n const transport = new StdioServerTransport();\n\n await server.connect(transport);\n}\n\nmain().catch(console.error);\n","/**\n * Parses a delimited list of items into an array,\n * trimming whitespace and filtering out empty items.\n *\n * Default delimiter is a comma (`,`).\n */\nexport function parseList(list: string, delimiter = ','): string[] {\n const items = list.split(delimiter).map((feature) => feature.trim());\n return items.filter((feature) => feature !== '');\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{a as c}from"../chunk-PP5H5OJO.js";import"../chunk-IOHEADG7.js";import{a,i}from"../chunk-423WZY7A.js";import{StdioServerTransport as v}from"@modelcontextprotocol/sdk/server/stdio.js";import{parseArgs as y}from"node:util";function p(r,o=","){return r.split(o).map(e=>e.trim()).filter(e=>e!=="")}var{version:d}=a;async function g(){let{values:{["access-token"]:r,["project-ref"]:o,["read-only"]:t,["api-url"]:e,["version"]:l,["features"]:s}}=y({options:{"access-token":{type:"string"},"project-ref":{type:"string"},"read-only":{type:"boolean",default:!1},"api-url":{type:"string"},version:{type:"boolean"},features:{type:"string"}}});l&&(console.log(d),process.exit(0));let n=r??process.env.SUPABASE_ACCESS_TOKEN;n||(console.error("Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable"),process.exit(1));let f=s?p(s):void 0,m=c({accessToken:n,apiUrl:e}),u=i({platform:m,projectId:o,readOnly:t,features:f}),S=new v;await u.connect(S)}g().catch(console.error);
2
+ import{a as c}from"../chunk-NXJ77CGK.js";import"../chunk-HZY7T3AL.js";import{a,f as i}from"../chunk-UOAMPZEU.js";import{StdioServerTransport as v}from"@modelcontextprotocol/sdk/server/stdio.js";import{parseArgs as y}from"util";function p(r,o=","){return r.split(o).map(e=>e.trim()).filter(e=>e!=="")}var{version:d}=a;async function g(){let{values:{["access-token"]:r,["project-ref"]:o,["read-only"]:t,["api-url"]:e,["version"]:l,["features"]:s}}=y({options:{"access-token":{type:"string"},"project-ref":{type:"string"},"read-only":{type:"boolean",default:!1},"api-url":{type:"string"},version:{type:"boolean"},features:{type:"string"}}});l&&(console.log(d),process.exit(0));let n=r??process.env.SUPABASE_ACCESS_TOKEN;n||(console.error("Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable"),process.exit(1));let f=s?p(s):void 0,m=c({accessToken:n,apiUrl:e}),u=i({platform:m,projectId:o,readOnly:t,features:f}),S=new v;await u.connect(S)}g().catch(console.error);
3
3
  //# sourceMappingURL=stdio.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/transports/stdio.ts","../../src/transports/util.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { parseArgs } from 'node:util';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport { createSupabaseApiPlatform } from '../platform/api-platform.js';\nimport { createSupabaseMcpServer } from '../server.js';\nimport { parseList } from './util.js';\n\nconst { version } = packageJson;\n\nasync function main() {\n const {\n values: {\n ['access-token']: cliAccessToken,\n ['project-ref']: projectId,\n ['read-only']: readOnly,\n ['api-url']: apiUrl,\n ['version']: showVersion,\n ['features']: cliFeatures,\n },\n } = parseArgs({\n options: {\n ['access-token']: {\n type: 'string',\n },\n ['project-ref']: {\n type: 'string',\n },\n ['read-only']: {\n type: 'boolean',\n default: false,\n },\n ['api-url']: {\n type: 'string',\n },\n ['version']: {\n type: 'boolean',\n },\n ['features']: {\n type: 'string',\n },\n },\n });\n\n if (showVersion) {\n console.log(version);\n process.exit(0);\n }\n\n const accessToken = cliAccessToken ?? process.env.SUPABASE_ACCESS_TOKEN;\n\n if (!accessToken) {\n console.error(\n 'Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable'\n );\n process.exit(1);\n }\n\n const features = cliFeatures ? parseList(cliFeatures) : undefined;\n\n const platform = createSupabaseApiPlatform({\n accessToken,\n apiUrl,\n });\n\n const server = createSupabaseMcpServer({\n platform,\n projectId,\n readOnly,\n features,\n });\n\n const transport = new StdioServerTransport();\n\n await server.connect(transport);\n}\n\nmain().catch(console.error);\n","/**\n * Parses a delimited list of items into an array,\n * trimming whitespace and filtering out empty items.\n *\n * Default delimiter is a comma (`,`).\n */\nexport function parseList(list: string, delimiter = ','): string[] {\n const items = list.split(delimiter).map((feature) => feature.trim());\n return items.filter((feature) => feature !== '');\n}\n"],"mappings":";4GAEA,OAAS,wBAAAA,MAA4B,4CACrC,OAAS,aAAAC,MAAiB,YCGnB,SAASC,EAAUC,EAAcC,EAAY,IAAe,CAEjE,OADcD,EAAK,MAAMC,CAAS,EAAE,IAAKC,GAAYA,EAAQ,KAAK,CAAC,EACtD,OAAQA,GAAYA,IAAY,EAAE,CACjD,CDAA,GAAM,CAAE,QAAAC,CAAQ,EAAIC,EAEpB,eAAeC,GAAO,CACpB,GAAM,CACJ,OAAQ,CACN,CAAC,cAAc,EAAGC,EAClB,CAAC,aAAa,EAAGC,EACjB,CAAC,WAAW,EAAGC,EACf,CAAC,SAAS,EAAGC,EACb,CAAC,SAAS,EAAGC,EACb,CAAC,UAAU,EAAGC,CAChB,CACF,EAAIC,EAAU,CACZ,QAAS,CACN,eAAiB,CAChB,KAAM,QACR,EACC,cAAgB,CACf,KAAM,QACR,EACC,YAAc,CACb,KAAM,UACN,QAAS,EACX,EACC,UAAY,CACX,KAAM,QACR,EACC,QAAY,CACX,KAAM,SACR,EACC,SAAa,CACZ,KAAM,QACR,CACF,CACF,CAAC,EAEGF,IACF,QAAQ,IAAIP,CAAO,EACnB,QAAQ,KAAK,CAAC,GAGhB,IAAMU,EAAcP,GAAkB,QAAQ,IAAI,sBAE7CO,IACH,QAAQ,MACN,iIACF,EACA,QAAQ,KAAK,CAAC,GAGhB,IAAMC,EAAWH,EAAcI,EAAUJ,CAAW,EAAI,OAElDK,EAAWC,EAA0B,CACzC,YAAAJ,EACA,OAAAJ,CACF,CAAC,EAEKS,EAASC,EAAwB,CACrC,SAAAH,EACA,UAAAT,EACA,SAAAC,EACA,SAAAM,CACF,CAAC,EAEKM,EAAY,IAAIC,EAEtB,MAAMH,EAAO,QAAQE,CAAS,CAChC,CAEAf,EAAK,EAAE,MAAM,QAAQ,KAAK","names":["StdioServerTransport","parseArgs","parseList","list","delimiter","feature","version","package_default","main","cliAccessToken","projectId","readOnly","apiUrl","showVersion","cliFeatures","parseArgs","accessToken","features","parseList","platform","createSupabaseApiPlatform","server","createSupabaseMcpServer","transport","StdioServerTransport"]}
1
+ {"version":3,"sources":["../../src/transports/stdio.ts","../../src/transports/util.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { parseArgs } from 'node:util';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport { createSupabaseApiPlatform } from '../platform/api-platform.js';\nimport { createSupabaseMcpServer } from '../server.js';\nimport { parseList } from './util.js';\n\nconst { version } = packageJson;\n\nasync function main() {\n const {\n values: {\n ['access-token']: cliAccessToken,\n ['project-ref']: projectId,\n ['read-only']: readOnly,\n ['api-url']: apiUrl,\n ['version']: showVersion,\n ['features']: cliFeatures,\n },\n } = parseArgs({\n options: {\n ['access-token']: {\n type: 'string',\n },\n ['project-ref']: {\n type: 'string',\n },\n ['read-only']: {\n type: 'boolean',\n default: false,\n },\n ['api-url']: {\n type: 'string',\n },\n ['version']: {\n type: 'boolean',\n },\n ['features']: {\n type: 'string',\n },\n },\n });\n\n if (showVersion) {\n console.log(version);\n process.exit(0);\n }\n\n const accessToken = cliAccessToken ?? process.env.SUPABASE_ACCESS_TOKEN;\n\n if (!accessToken) {\n console.error(\n 'Please provide a personal access token (PAT) with the --access-token flag or set the SUPABASE_ACCESS_TOKEN environment variable'\n );\n process.exit(1);\n }\n\n const features = cliFeatures ? parseList(cliFeatures) : undefined;\n\n const platform = createSupabaseApiPlatform({\n accessToken,\n apiUrl,\n });\n\n const server = createSupabaseMcpServer({\n platform,\n projectId,\n readOnly,\n features,\n });\n\n const transport = new StdioServerTransport();\n\n await server.connect(transport);\n}\n\nmain().catch(console.error);\n","/**\n * Parses a delimited list of items into an array,\n * trimming whitespace and filtering out empty items.\n *\n * Default delimiter is a comma (`,`).\n */\nexport function parseList(list: string, delimiter = ','): string[] {\n const items = list.split(delimiter).map((feature) => feature.trim());\n return items.filter((feature) => feature !== '');\n}\n"],"mappings":";iHAEA,OAAS,wBAAAA,MAA4B,4CACrC,OAAS,aAAAC,MAAiB,OCGnB,SAASC,EAAUC,EAAcC,EAAY,IAAe,CAEjE,OADcD,EAAK,MAAMC,CAAS,EAAE,IAAKC,GAAYA,EAAQ,KAAK,CAAC,EACtD,OAAQA,GAAYA,IAAY,EAAE,CACjD,CDAA,GAAM,CAAE,QAAAC,CAAQ,EAAIC,EAEpB,eAAeC,GAAO,CACpB,GAAM,CACJ,OAAQ,CACN,CAAC,cAAc,EAAGC,EAClB,CAAC,aAAa,EAAGC,EACjB,CAAC,WAAW,EAAGC,EACf,CAAC,SAAS,EAAGC,EACb,CAAC,SAAS,EAAGC,EACb,CAAC,UAAU,EAAGC,CAChB,CACF,EAAIC,EAAU,CACZ,QAAS,CACN,eAAiB,CAChB,KAAM,QACR,EACC,cAAgB,CACf,KAAM,QACR,EACC,YAAc,CACb,KAAM,UACN,QAAS,EACX,EACC,UAAY,CACX,KAAM,QACR,EACC,QAAY,CACX,KAAM,SACR,EACC,SAAa,CACZ,KAAM,QACR,CACF,CACF,CAAC,EAEGF,IACF,QAAQ,IAAIP,CAAO,EACnB,QAAQ,KAAK,CAAC,GAGhB,IAAMU,EAAcP,GAAkB,QAAQ,IAAI,sBAE7CO,IACH,QAAQ,MACN,iIACF,EACA,QAAQ,KAAK,CAAC,GAGhB,IAAMC,EAAWH,EAAcI,EAAUJ,CAAW,EAAI,OAElDK,EAAWC,EAA0B,CACzC,YAAAJ,EACA,OAAAJ,CACF,CAAC,EAEKS,EAASC,EAAwB,CACrC,SAAAH,EACA,UAAAT,EACA,SAAAC,EACA,SAAAM,CACF,CAAC,EAEKM,EAAY,IAAIC,EAEtB,MAAMH,EAAO,QAAQE,CAAS,CAChC,CAEAf,EAAK,EAAE,MAAM,QAAQ,KAAK","names":["StdioServerTransport","parseArgs","parseList","list","delimiter","feature","version","package_default","main","cliAccessToken","projectId","readOnly","apiUrl","showVersion","cliFeatures","parseArgs","accessToken","features","parseList","platform","createSupabaseApiPlatform","server","createSupabaseMcpServer","transport","StdioServerTransport"]}
package/package.json CHANGED
@@ -1,23 +1,15 @@
1
1
  {
2
2
  "name": "@supabase/mcp-server-supabase",
3
- "version": "0.5.0-dev.2",
3
+ "version": "0.5.0",
4
4
  "description": "MCP server for interacting with Supabase",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.cjs",
8
8
  "types": "dist/index.d.ts",
9
9
  "sideEffects": false,
10
- "scripts": {
11
- "build": "tsup --clean",
12
- "prepublishOnly": "npm run build",
13
- "test": "vitest",
14
- "test:unit": "vitest --project unit",
15
- "test:e2e": "vitest --project e2e",
16
- "test:integration": "vitest --project integration",
17
- "test:coverage": "vitest --coverage",
18
- "generate:management-api-types": "openapi-typescript https://api.supabase.com/api/v1-json -o ./src/management-api/types.ts"
19
- },
20
- "files": ["dist/**/*"],
10
+ "files": [
11
+ "dist/**/*"
12
+ ],
21
13
  "bin": {
22
14
  "mcp-server-supabase": "./dist/transports/stdio.js"
23
15
  },
@@ -39,13 +31,13 @@
39
31
  }
40
32
  },
41
33
  "dependencies": {
42
- "@deno/eszip": "^0.84.0",
34
+ "@mjackson/multipart-parser": "^0.10.1",
43
35
  "@modelcontextprotocol/sdk": "^1.11.0",
44
- "@supabase/mcp-utils": "0.2.1",
45
36
  "common-tags": "^1.8.2",
46
37
  "graphql": "^16.11.0",
47
38
  "openapi-fetch": "^0.13.5",
48
- "zod": "^3.24.1"
39
+ "zod": "^3.24.1",
40
+ "@supabase/mcp-utils": "^0.2.1"
49
41
  },
50
42
  "devDependencies": {
51
43
  "@ai-sdk/anthropic": "^1.2.9",
@@ -65,6 +57,19 @@
65
57
  "tsup": "^8.3.5",
66
58
  "tsx": "^4.19.2",
67
59
  "typescript": "^5.6.3",
60
+ "vite": "^5.4.19",
68
61
  "vitest": "^2.1.9"
62
+ },
63
+ "scripts": {
64
+ "build": "tsup --clean",
65
+ "dev": "tsup --watch",
66
+ "typecheck": "tsc --noEmit",
67
+ "prebuild": "pnpm typecheck",
68
+ "test": "vitest",
69
+ "test:unit": "vitest --project unit",
70
+ "test:e2e": "vitest --project e2e",
71
+ "test:integration": "vitest --project integration",
72
+ "test:coverage": "vitest --coverage",
73
+ "generate:management-api-types": "openapi-typescript https://api.supabase.com/api/v1-json -o ./src/management-api/types.ts"
69
74
  }
70
- }
75
+ }