Skip to content

Commit 6ee74cf

Browse files
committed
refactor: renames cloud platform to api platform
1 parent 6384ca0 commit 6ee74cf

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/mcp-server-supabase/src/platform/cloud-platform.ts renamed to packages/mcp-server-supabase/src/platform/api-platform.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434

3535
const { version } = packageJson;
3636

37-
export type SupabaseCloudPlatformOptions = {
37+
export type SupabaseApiPlatformOptions = {
3838
/**
3939
* The access token for the Supabase Management API.
4040
*/
@@ -49,8 +49,8 @@ export type SupabaseCloudPlatformOptions = {
4949
/**
5050
* Creates a Supabase platform implementation using the Supabase Management API.
5151
*/
52-
export function createSupabaseCloudPlatform(
53-
options: SupabaseCloudPlatformOptions
52+
export function createSupabaseApiPlatform(
53+
options: SupabaseApiPlatformOptions
5454
): SupabasePlatform {
5555
const { accessToken, apiUrl } = options;
5656

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
mockOrgs,
2121
mockProjects,
2222
} from '../test/mocks.js';
23-
import { createSupabaseCloudPlatform } from './platform/cloud-platform.js';
23+
import { createSupabaseApiPlatform } from './platform/api-platform.js';
2424
import { BRANCH_COST_HOURLY, PROJECT_COST_MONTHLY } from './pricing.js';
2525
import { createSupabaseMcpServer } from './server.js';
2626

@@ -60,7 +60,7 @@ async function setup(options: SetupOptions = {}) {
6060
}
6161
);
6262

63-
const platform = createSupabaseCloudPlatform({
63+
const platform = createSupabaseApiPlatform({
6464
accessToken,
6565
apiUrl: API_URL,
6666
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
44
import { parseArgs } from 'node:util';
55
import packageJson from '../../package.json' with { type: 'json' };
6-
import { createSupabaseCloudPlatform } from '../platform/cloud-platform.js';
6+
import { createSupabaseApiPlatform } from '../platform/api-platform.js';
77
import { createSupabaseMcpServer } from '../server.js';
88

99
const { version } = packageJson;
@@ -53,7 +53,7 @@ async function main() {
5353
process.exit(1);
5454
}
5555

56-
const platform = createSupabaseCloudPlatform({
56+
const platform = createSupabaseApiPlatform({
5757
accessToken,
5858
apiUrl,
5959
});

packages/mcp-server-supabase/test/llm.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { setupServer } from 'msw/node';
1313
import { beforeEach, describe, expect, test } from 'vitest';
1414
import { extractFiles } from '../src/eszip.js';
1515
import { createSupabaseMcpServer } from '../src/index.js';
16-
import { createSupabaseCloudPlatform } from '../src/platform/cloud-platform.js';
16+
import { createSupabaseApiPlatform } from '../src/platform/api-platform.js';
1717
import {
1818
ACCESS_TOKEN,
1919
API_URL,
@@ -40,7 +40,7 @@ async function setup({ projectId }: SetupOptions = {}) {
4040
clientTransport.readable.pipeTo(serverTransport.writable);
4141
serverTransport.readable.pipeTo(clientTransport.writable);
4242

43-
const platform = createSupabaseCloudPlatform({
43+
const platform = createSupabaseApiPlatform({
4444
apiUrl: API_URL,
4545
accessToken: ACCESS_TOKEN,
4646
});

0 commit comments

Comments
 (0)