Merge pull request #681 from modelcontextprotocol/fweinberger/fix-npx-no-args

bugfix: fix `npx @modelcontextprotoco/inspector` failing on main
This commit is contained in:
Ola Hungerford 2025-08-05 05:14:03 -07:00 • committed by GitHub
commit aa6a98ae52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,10 +91,10 @@ async function startProdServer(serverOptions) {
"node", "node",
[ [
inspectorServerPath, inspectorServerPath,
command ? `--command=${command}` : "", ...(command ? [`--command=${command}`] : []),
mcpServerArgs && mcpServerArgs.length > 0 ...(mcpServerArgs && mcpServerArgs.length > 0
? `--args=${mcpServerArgs.join(" ")}` ? [`--args=${mcpServerArgs.join(" ")}`]
: "", : []),
], ],
{ {
env: { env: {