Skip to content

fix: add help output for supabase stdio CLI#298

Closed
mojobeeping wants to merge 1 commit into
supabase:mainfrom
mojobeeping:mojobeep-cli-help-flags
Closed

fix: add help output for supabase stdio CLI#298
mojobeeping wants to merge 1 commit into
supabase:mainfrom
mojobeeping:mojobeep-cli-help-flags

Conversation

@mojobeeping

Copy link
Copy Markdown

Summary

  • add --help and -h output for the Supabase stdio CLI
  • convert parseArgs failures into a concise error plus usage text with exit code 1
  • add stdio integration coverage for help and unknown flags

Closes #296.

Testing

  • npx -y pnpm@10 build
  • CI=true npx -y pnpm@10 --filter @supabase/mcp-server-supabase test:integration -- test/stdio.integration.ts --run
  • npx -y pnpm@10 exec biome check packages/mcp-server-supabase/src/transports/stdio.ts packages/mcp-server-supabase/test/stdio.integration.ts
  • node packages/mcp-server-supabase/dist/transports/stdio.js --help
  • node packages/mcp-server-supabase/dist/transports/stdio.js --unknown-flag

@mojobeeping

Copy link
Copy Markdown
Author

Closing this as a duplicate of #297, which was opened before this PR while I was preparing the same fix.

@mojobeeping mojobeeping closed this Jun 7, 2026
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.

CLI --help and unknown flags print parseArgs stack trace but exit 0

1 participant