Skip to content

fix(mcp-server-supabase): clarify list_tables schemas parameter description and default behavior - #397

Open
PranshulSoni wants to merge 1 commit into
supabase:mainfrom
PranshulSoni:fix/list-tables-schemas-description
Open

fix(mcp-server-supabase): clarify list_tables schemas parameter description and default behavior#397
PranshulSoni wants to merge 1 commit into
supabase:mainfrom
PranshulSoni:fix/list-tables-schemas-description

Conversation

@PranshulSoni

Copy link
Copy Markdown

Summary

Fixes #395. Clarifies the schemas parameter description for the list_tables tool in @supabase/mcp-server-supabase.

The schema parameter description previously stated "Defaults to all schemas." while the Zod schema defaulted to ['public']. This caused confusion when callers expected all user schemas to be evaluated in database-wide RLS security advisories.

This change:

  1. Clarifies the description: 'List of schemas to include. Defaults to ["public"]. Pass [] to include all non-system schemas.'
  2. Adds regression unit tests in src/server.test.ts verifying that omitting schemas defaults to public, while passing schemas: [] queries all non-system user schemas across schemas.

Validation

  • vitest run -t "list_tables" src/server.test.ts (7/7 passed)
  • vitest run src/tools/tool-schemas.test.ts (19/19 passed)

Copilot AI lite review requested due to automatic review settings August 30, 2026 20:53
@PranshulSoni
PranshulSoni requested a review from a team as a code owner August 30, 2026 20:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list_tables: schemas says it defaults to all schemas but defaults to ["public"], so the RLS advisory silently reports on a partial database

2 participants