fix(runner): run Python venv binaries directly, not via node
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -117,11 +117,17 @@ async function initMcp(svc) {
|
||||
// --- Spawn ---
|
||||
|
||||
function spawnService(svc) {
|
||||
// npx packages have a pre-resolved binary
|
||||
// npx/uvx packages have a pre-resolved binary
|
||||
let cmd, args;
|
||||
if (svc._npxBin) {
|
||||
// Python venv binaries are scripts with shebangs — run directly
|
||||
if (svc.runtime === "python") {
|
||||
cmd = svc._npxBin;
|
||||
args = [];
|
||||
} else {
|
||||
cmd = "node";
|
||||
args = [svc._npxBin];
|
||||
}
|
||||
} else {
|
||||
({ cmd, args } = detectEntry(svc.sourcePath, svc.runtime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user