Skip to content

Commit a200f4b

Browse files
authored
Fix arg passing from js (#122)
1 parent 33a2501 commit a200f4b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### Bugs Fixed
1010

11+
- Fixed being able to pass args containing spaces through an npx call to the cli
12+
1113
### Other Changes
1214

1315
- Updated to the latest ModelContextProtocol library. https://github.com/Azure/azure-mcp/pull/161

eng/npm/platform/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const childProcess = require('child_process')
66

77
// Check if DEBUG environment variable is set
88
const isDebugMode = process.env.DEBUG && (
9-
process.env.DEBUG.toLowerCase() === 'true' ||
9+
process.env.DEBUG.toLowerCase() === 'true' ||
1010
process.env.DEBUG.includes('azure-mcp') ||
1111
process.env.DEBUG === '*'
1212
)
@@ -48,7 +48,7 @@ function runExecutable(args = []) {
4848

4949
const child = childProcess.spawn(execPath, args, {
5050
stdio: 'inherit',
51-
shell: true
51+
shell: false
5252
})
5353

5454
return new Promise((resolve) => {

0 commit comments

Comments
 (0)