Skip to content

Commit 16654dd

Browse files
committed
style: format existing files
1 parent f8da3bd commit 16654dd

File tree

22 files changed

+55
-60
lines changed

22 files changed

+55
-60
lines changed

packages/mcp-server-postgrest/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"prepublishOnly": "npm run build",
1313
"test": "vitest"
1414
},
15-
"files": [
16-
"dist/**/*"
17-
],
15+
"files": ["dist/**/*"],
1816
"bin": {
1917
"mcp-server-postgrest": "./dist/stdio.js"
2018
},

packages/mcp-server-postgrest/src/stdio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

3-
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
43
import { parseArgs } from 'node:util';
4+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
55
import { createPostgrestMcpServer } from './server.js';
66

77
async function main() {

packages/mcp-server-supabase/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
"test:coverage": "vitest --coverage",
1818
"generate:management-api-types": "openapi-typescript https://api.supabase.com/api/v1-json -o ./src/management-api/types.ts"
1919
},
20-
"files": [
21-
"dist/**/*"
22-
],
20+
"files": ["dist/**/*"],
2321
"bin": {
2422
"mcp-server-supabase": "./dist/transports/stdio.js"
2523
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { type FileHandle, open } from 'node:fs/promises';
12
import { codeBlock } from 'common-tags';
2-
import { open, type FileHandle } from 'node:fs/promises';
33
import { describe, expect, test } from 'vitest';
44
import { bundleFiles, extractFiles } from './eszip.js';
55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { build, Parser } from '@deno/eszip';
21
import { join, relative } from 'node:path/posix';
32
import { fileURLToPath } from 'node:url';
3+
import { Parser, build } from '@deno/eszip';
44
import { z } from 'zod';
55

66
const parser = await Parser.createInstance();

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { InitData } from '@supabase/mcp-utils';
21
import { fileURLToPath } from 'node:url';
2+
import type { InitData } from '@supabase/mcp-utils';
33
import packageJson from '../../package.json' with { type: 'json' };
44
import { getDeploymentId, getPathPrefix } from '../edge-function.js';
55
import { extractFiles } from '../eszip.js';
@@ -14,13 +14,6 @@ import {
1414
getCountryCoordinates,
1515
} from '../regions.js';
1616
import {
17-
applyMigrationOptionsSchema,
18-
createBranchOptionsSchema,
19-
createProjectOptionsSchema,
20-
deployEdgeFunctionOptionsSchema,
21-
executeSqlOptionsSchema,
22-
getLogsOptionsSchema,
23-
resetBranchOptionsSchema,
2417
type ApplyMigrationOptions,
2518
type CreateBranchOptions,
2619
type CreateProjectOptions,
@@ -30,6 +23,13 @@ import {
3023
type GetLogsOptions,
3124
type ResetBranchOptions,
3225
type SupabasePlatform,
26+
applyMigrationOptionsSchema,
27+
createBranchOptionsSchema,
28+
createProjectOptionsSchema,
29+
deployEdgeFunctionOptionsSchema,
30+
executeSqlOptionsSchema,
31+
getLogsOptionsSchema,
32+
resetBranchOptionsSchema,
3333
} from './index.js';
3434

3535
const { version } = packageJson;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { InitData } from '@supabase/mcp-utils';
12
import { z } from 'zod';
23
import { AWS_REGION_CODES } from '../regions.js';
3-
import type { InitData } from '@supabase/mcp-utils';
44

55
export const organizationSchema = z.object({
66
id: z.string(),

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
import { http, HttpResponse } from 'msw';
2+
import { setupServer } from 'msw/node';
13
import { describe, expect, it } from 'vitest';
24
import {
35
EARTH_RADIUS,
6+
TRACE_URL,
47
getClosestAwsRegion,
58
getCountryCode,
69
getCountryCoordinates,
710
getDistance,
8-
TRACE_URL,
911
} from './regions.js';
10-
import { http, HttpResponse } from 'msw';
11-
import { setupServer } from 'msw/node';
1212

1313
const COUNTRY_CODE = 'US';
1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { parseKeyValueList, type UnionToTuple, type ValueOf } from './util.js';
1+
import { type UnionToTuple, type ValueOf, parseKeyValueList } from './util.js';
22

33
export type AwsRegion = {
44
code: string;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
22
import {
3-
CallToolResultSchema,
43
type CallToolRequest,
4+
CallToolResultSchema,
55
} from '@modelcontextprotocol/sdk/types.js';
66
import { StreamTransport } from '@supabase/mcp-utils';
77
import { codeBlock } from 'common-tags';
@@ -11,10 +11,10 @@ import {
1111
ACCESS_TOKEN,
1212
API_URL,
1313
CLOSEST_REGION,
14-
createOrganization,
15-
createProject,
1614
MCP_CLIENT_NAME,
1715
MCP_CLIENT_VERSION,
16+
createOrganization,
17+
createProject,
1818
mockBranches,
1919
mockManagementApi,
2020
mockOrgs,

0 commit comments

Comments
 (0)