Skip to content

Commit 0d30e88

Browse files
authored
fix: type checking (#131)
* Check types before build, add "dev" script for watch mode * Fix type error in create_project schema * Update region description
1 parent b28891d commit 0d30e88

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

packages/mcp-server-postgrest/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"sideEffects": false,
1010
"scripts": {
1111
"build": "tsup --clean",
12+
"dev": "tsup --watch",
13+
"typecheck": "tsc --noEmit",
14+
"prebuild": "pnpm typecheck",
1215
"prepublishOnly": "pnpm build",
1316
"test": "vitest"
1417
},

packages/mcp-server-supabase/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"sideEffects": false,
1010
"scripts": {
1111
"build": "tsup --clean",
12+
"dev": "tsup --watch",
13+
"typecheck": "tsc --noEmit",
14+
"prebuild": "pnpm typecheck",
1215
"prepublishOnly": "pnpm build",
1316
"test": "vitest",
1417
"test:unit": "vitest --project unit",
@@ -17,9 +20,7 @@
1720
"test:coverage": "vitest --coverage",
1821
"generate:management-api-types": "openapi-typescript https://api.supabase.com/api/v1-json -o ./src/management-api/types.ts"
1922
},
20-
"files": [
21-
"dist/**/*"
22-
],
23+
"files": ["dist/**/*"],
2324
"bin": {
2425
"mcp-server-supabase": "./dist/transports/stdio.js"
2526
},

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,9 @@ export function getAccountTools({ account }: AccountToolsOptions) {
8989
'Creates a new Supabase project. Always ask the user which organization to create the project in. The project can take a few minutes to initialize - use `get_project` to check the status.',
9090
parameters: z.object({
9191
name: z.string().describe('The name of the project'),
92-
region: z.optional(
93-
z
94-
.enum(AWS_REGION_CODES)
95-
.describe(
96-
'The region to create the project in. Defaults to the closest region.'
97-
)
98-
),
92+
region: z
93+
.enum(AWS_REGION_CODES)
94+
.describe('The region to create the project in.'),
9995
organization_id: z.string(),
10096
confirm_cost_id: z
10197
.string({

packages/mcp-utils/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"sideEffects": false,
1010
"scripts": {
1111
"build": "tsup --clean",
12+
"dev": "tsup --watch",
13+
"typecheck": "tsc --noEmit",
14+
"prebuild": "pnpm typecheck",
1215
"test": "vitest",
1316
"test:coverage": "vitest --coverage",
1417
"prepublishOnly": "pnpm build"

0 commit comments

Comments
 (0)