Skip to content

Commit 1bccc02

Browse files
committed
feat: export platform schema/types
1 parent 6ee74cf commit 1bccc02

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

packages/mcp-server-supabase/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
"import": "./dist/index.js",
2929
"types": "./dist/index.d.ts",
3030
"default": "./dist/index.cjs"
31+
},
32+
"./platform": {
33+
"import": "./dist/platform/index.js",
34+
"types": "./dist/platform/index.d.ts",
35+
"default": "./dist/platform/index.cjs"
3136
}
3237
},
3338
"dependencies": {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
export * from './platform/api-platform.js';
2+
export type { SupabasePlatform } from './platform/index.js';
13
export * from './server.js';

packages/mcp-server-supabase/src/platform/api-platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
type GetLogsOptions,
3131
type ResetBranchOptions,
3232
type SupabasePlatform,
33-
} from './types.js';
33+
} from './index.js';
3434

3535
const { version } = packageJson;
3636

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './types.js';

packages/mcp-server-supabase/src/server.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ import { getProjectManagementTools } from './tools/project-management-tools.js';
1010

1111
const { version } = packageJson;
1212

13-
export type SupabasePlatformOptions = {
14-
/**
15-
* The access token for the Supabase Management API.
16-
*/
17-
accessToken: string;
18-
19-
/**
20-
* The API URL for the Supabase Management API.
21-
*/
22-
apiUrl?: string;
23-
};
24-
2513
export type SupabaseMcpServerOptions = {
2614
/**
2715
* Platform implementation for Supabase.

packages/mcp-server-supabase/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'tsup';
22

33
export default defineConfig([
44
{
5-
entry: ['src/index.ts', 'src/transports/stdio.ts'],
5+
entry: ['src/index.ts', 'src/transports/stdio.ts', 'src/platform/index.ts'],
66
format: ['cjs', 'esm'],
77
outDir: 'dist',
88
sourcemap: true,

0 commit comments

Comments
 (0)