fix: add stdio cli help handling#299
Open
Viodmian wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--help/-hhandling for the Supabase stdio CLI.--versionbehavior while moving CLI metadata parsing into a small helper.parseArgsstack trace and exiting 0.Fixes #296.
Verification
packages/mcp-utils:.\node_modules\.bin\tsup.cmd --config tsup.config.tsCI=1, frompackages/mcp-server-supabase:.\node_modules\.bin\vitest.cmd run --project unit src/transports/stdio-cli.test.tspackages/mcp-server-supabase:.\node_modules\.bin\tsc.cmd --noEmitpackages/mcp-server-supabase:.\node_modules\.bin\tsup.cmd --config tsup.config.ts.\node_modules\.bin\biome.cmd check packages/mcp-server-supabase/src/transports/stdio.ts packages/mcp-server-supabase/src/transports/stdio-cli.ts packages/mcp-server-supabase/src/transports/stdio-cli.test.tsgit diff --checknode dist\transports\stdio.js --helpnode dist\transports\stdio.js --versionnode dist\transports\stdio.js --definitely-not-realnode dist\transports\stdio.jsstill requires a Supabase PAT for normal server startup.Note:
corepack pnpm install --frozen-lockfilemostly installed dependencies but exited non-zero locally because pnpm 11 blocked dependency build scripts and could not create thesupabasebinary. The package tests/builds above were run directly from the installed local package binaries after install.