Skip to content

Commit 6cf3b5f

Browse files
committed
fix: make schemas array required on list_tables
1 parent 5732c09 commit 6cf3b5f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/mcp-server-supabase/src/tools/database-operation-tools.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ export function getDatabaseOperationTools({
4343

4444
const databaseOperationTools = {
4545
list_tables: injectableTool({
46-
description: 'Lists all tables in a schema.',
46+
description: 'Lists all tables in one or more schemas.',
4747
parameters: z.object({
4848
project_id: z.string(),
4949
schemas: z
50-
.optional(z.array(z.string()))
51-
.describe(
52-
'Optional list of schemas to include. Defaults to all schemas.'
53-
),
50+
.array(z.string())
51+
.describe('List of schemas to include. Defaults to all schemas.')
52+
.default(['public']),
5453
}),
5554
inject: { project_id },
5655
execute: async ({ project_id, schemas }) => {

0 commit comments

Comments
 (0)