@supabase/mcp-server-supabase 0.5.0 → 0.5.2

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/index.d.cts CHANGED
@@ -3,6 +3,7 @@ import * as _modelcontextprotocol_sdk_server from '@modelcontextprotocol/sdk/ser
3
3
  import { z } from 'zod';
4
4
  import '@supabase/mcp-utils';
5
5
 
6
+ declare const currentFeatureGroupSchema: z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>;
6
7
  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
8
  type FeatureGroup = z.infer<typeof featureGroupSchema>;
8
9
 
@@ -59,4 +60,6 @@ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _mo
59
60
  } | undefined;
60
61
  }>;
61
62
 
62
- export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, featureGroupSchema };
63
+ declare const version: string;
64
+
65
+ export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, currentFeatureGroupSchema, featureGroupSchema, version };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as _modelcontextprotocol_sdk_server from '@modelcontextprotocol/sdk/ser
3
3
  import { z } from 'zod';
4
4
  import '@supabase/mcp-utils';
5
5
 
6
+ declare const currentFeatureGroupSchema: z.ZodEnum<["docs", "account", "database", "debugging", "development", "functions", "branching", "storage"]>;
6
7
  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
8
  type FeatureGroup = z.infer<typeof featureGroupSchema>;
8
9
 
@@ -59,4 +60,6 @@ declare function createSupabaseMcpServer(options: SupabaseMcpServerOptions): _mo
59
60
  } | undefined;
60
61
  }>;
61
62
 
62
- export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, featureGroupSchema };
63
+ declare const version: string;
64
+
65
+ export { type FeatureGroup, type SupabaseMcpServerOptions, SupabasePlatform, createSupabaseMcpServer, currentFeatureGroupSchema, featureGroupSchema, version };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{b as e,f as r}from"./chunk-UOAMPZEU.js";export{r as createSupabaseMcpServer,e as featureGroupSchema};
1
+ import{a as e,b as r,c as o,g as p}from"./chunk-CY4GX7KZ.js";var a=e.version;export{p as createSupabaseMcpServer,r as currentFeatureGroupSchema,o as featureGroupSchema,a as version};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import packageJson from '../package.json' with { type: 'json' };\n\nexport type { SupabasePlatform } from './platform/index.js';\nexport {\n createSupabaseMcpServer,\n type SupabaseMcpServerOptions,\n} from './server.js';\nexport {\n featureGroupSchema,\n currentFeatureGroupSchema,\n type FeatureGroup,\n} from './types.js';\nexport const version = packageJson.version;\n"],"mappings":"6DAYO,IAAMA,EAAUC,EAAY","names":["version","package_default"]}
@@ -1,2 +1,2 @@
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;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTO5M2T7Vcjs = require('../chunk-TO5M2T7V.cjs');require('../chunk-V7ARYUGJ.cjs');require('../chunk-QJ2BFGOR.cjs');exports.createSupabaseApiPlatform = _chunkTO5M2T7Vcjs.a;
2
2
  //# sourceMappingURL=api-platform.cjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-NXJ77CGK.js";import"../chunk-HZY7T3AL.js";import"../chunk-UOAMPZEU.js";export{a as createSupabaseApiPlatform};
1
+ import{a}from"../chunk-O4HE2BKY.js";import"../chunk-CXRJDOVS.js";import"../chunk-CY4GX7KZ.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 _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;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV7ARYUGJcjs = require('../chunk-V7ARYUGJ.cjs');require('../chunk-QJ2BFGOR.cjs');exports.applyMigrationOptionsSchema = _chunkV7ARYUGJcjs.l; exports.branchSchema = _chunkV7ARYUGJcjs.e; exports.createBranchOptionsSchema = _chunkV7ARYUGJcjs.h; exports.createProjectOptionsSchema = _chunkV7ARYUGJcjs.g; exports.deployEdgeFunctionOptionsSchema = _chunkV7ARYUGJcjs.j; exports.edgeFunctionSchema = _chunkV7ARYUGJcjs.f; exports.executeSqlOptionsSchema = _chunkV7ARYUGJcjs.k; exports.generateTypescriptTypesResultSchema = _chunkV7ARYUGJcjs.o; exports.getLogsOptionsSchema = _chunkV7ARYUGJcjs.n; exports.migrationSchema = _chunkV7ARYUGJcjs.m; exports.organizationSchema = _chunkV7ARYUGJcjs.c; exports.projectSchema = _chunkV7ARYUGJcjs.d; exports.resetBranchOptionsSchema = _chunkV7ARYUGJcjs.i; exports.storageBucketSchema = _chunkV7ARYUGJcjs.a; exports.storageConfigSchema = _chunkV7ARYUGJcjs.b;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
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};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../chunk-CXRJDOVS.js";import"../chunk-CY4GX7KZ.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 _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);
2
+ "use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkTO5M2T7Vcjs = require('../chunk-TO5M2T7V.cjs');require('../chunk-V7ARYUGJ.cjs');var _chunkQJ2BFGORcjs = require('../chunk-QJ2BFGOR.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}=_chunkQJ2BFGORcjs.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=_chunkTO5M2T7Vcjs.a.call(void 0, {accessToken:n,apiUrl:e}),u=_chunkQJ2BFGORcjs.g.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,3 +1,3 @@
1
1
  #!/usr/bin/env node
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);
2
+ import{a as c}from"../chunk-O4HE2BKY.js";import"../chunk-CXRJDOVS.js";import{a,g as i}from"../chunk-CY4GX7KZ.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/mcp-server-supabase",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "MCP server for interacting with Supabase",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",