Repository navigation
Conversation
Signed-off-by: Alex Gercog <[email protected]>
playb0t
force-pushed
the
playb0t/fix-bundled-mcp-bridge
branch
from
November 28, 2026 09:28
f7da600 to
c50d84b
Compare
This branch has not been deployed
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
A saved stdio command that still uses the legacy helper, such as
npx -y [email protected] <url>, loses its package spec when the user presses Authorize: the launch is rebuilt asnpx -y mcp-remote <url>, so npm picks the version at that moment. This change passes the saved version, tag or range through to the authorization launch. A command saved without a version uses 0.16.7, the version the code inmcpOAuth/already follows.The launch no longer goes through a shell. On Windows it runs
npx.exe, or npm'snpx-cli.json anode.exefrom PATH, so OAuth arguments with spaces, query parameters and JSON quotes arrive unchanged. The helper is requested under an npm alias, so a workspace dependency namedmcp-remotecannot satisfy the request; npm still runs in the project and reads its.npmrc. A package spec that is not a registry version, tag or range is declined withinvalid_config. The saved command itself is not modified.Related issue
Follow-up to the native sign-in change that closed #1874. It covers the saved-command path that change left on the legacy helper.
Testing
MCPRemoteOAuth.trigger.test.ts: five saved package specs, a helper that cannot start, a non-registry source.pnpm typecheckpasses in all 39 workspaces.pnpm test:prepushon Linux exits 1: 19505 passed, 1 failed, 30 skipped. The failing test is inclaudeShellTrackingHost.test.ts, which this change does not touch. Run alone, that file fails one of its ten tests on unmodifiedmainand on this commit, a different test each time..npmrcregistry, and an offline repeat from a warm cache.Notes for reviewers
On Windows an installation that exposes only
npx.cmd, with nonpx.exeand nonode_modules/npmfolder in a PATH directory, now gets the "npx not found" help where it used to launch through the shell.CHANGELOG.mdgains one line under Fixed.pnpm-lock.yaml,pnpm-workspace.yamlandpatches/are unchanged.