Merge pull request #664 from richardkmichael/fix-dashed-mcp-args

fix: Argument notation to allow parseArgs to parse leading dash-options
This commit is contained in:
Ola Hungerford 2025-08-03 12:33:55 -07:00 • committed by GitHub
commit cf44b30bcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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