You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the runtime packages imported by the root package's bundled CLI/server/client files to the root package dependencies.
Keep the published mcp-inspector bin usable with strict package managers, where the root package cannot rely on dependencies declared only by sibling workspace packages.
npm install --package-lock-only (ran the repository prepare build successfully)
npm run build
npm run prettier-check
npm run test-cli (85 tests passed)
git diff --check
Packed the root package with npm pack --ignore-scripts --json, installed the tarball into a temporary pnpm project, verified the root package can resolve commander, cors, express, express-rate-limit, and serve-handler, and ran ./node_modules/.bin/mcp-inspector --help successfully
Noting the overlap with #1144 so review does not split unexpectedly.
This PR keeps the same root dependency fix direction for #873, but rebases it onto the current 0.22.x package metadata, updates package-lock.json, and also covers the newer #1513pnpm dlx @modelcontextprotocol/inspector failure. If maintainers prefer to continue from #1144 instead, I can close this one.
Added a fresh package smoke on the current branch head.
Validation:
npm ci
npm run build
npm run prettier-check
npm run test-cli
git diff --check upstream/main...HEAD
I also packed the root package with npm pack --ignore-scripts --pack-destination <tmp>, installed that tarball into a fresh temporary project with pnpm 11.9.0, and verified the published bin starts:
Usage: inspector-bin [options]
That covers the pnpm dlx @modelcontextprotocol/inspector class of failure from #1513 and the root runtime dependency issue from #873.
Closing this to avoid splitting review with the overlapping dependency fix in #1144. I will keep the active queue focused on the OAuth DCR fix in #1543 instead.
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
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
mcp-inspectorbin usable with strict package managers, where the root package cannot rely on dependencies declared only by sibling workspace packages.Fixes #1513.
Addresses #873.
Verification
npm install --package-lock-only(ran the repositorypreparebuild successfully)npm run buildnpm run prettier-checknpm run test-cli(85 tests passed)git diff --checknpm pack --ignore-scripts --json, installed the tarball into a temporary pnpm project, verified the root package can resolvecommander,cors,express,express-rate-limit, andserve-handler, and ran./node_modules/.bin/mcp-inspector --helpsuccessfully