@mcpspend/proxy 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proxy.js +5 -0
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -43,9 +43,14 @@ async function runProxy(opts) {
|
|
|
43
43
|
if (!config.apiKey) {
|
|
44
44
|
process.stderr.write('[mcpspend] no API key configured — running in passthrough mode (no tracking)\n');
|
|
45
45
|
}
|
|
46
|
+
// On Windows, Node's spawn() can't find `.cmd`/`.bat` shims (npx, etc.)
|
|
47
|
+
// without going through cmd.exe. Use shell: true to let the OS resolve the
|
|
48
|
+
// command — same path most Node-based CLIs take.
|
|
49
|
+
const isWindows = process.platform === 'win32';
|
|
46
50
|
const child = (0, node_child_process_1.spawn)(command, args, {
|
|
47
51
|
stdio: ['pipe', 'pipe', 'inherit'],
|
|
48
52
|
env: process.env,
|
|
53
|
+
shell: isWindows,
|
|
49
54
|
});
|
|
50
55
|
const pending = new Map();
|
|
51
56
|
function handleClientMessage(line) {
|
package/package.json
CHANGED