@tasksai/install 0.1.33 → 0.1.34
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/package.json +1 -1
- package/runtime/requirements.txt +1 -0
- package/src/index.js +6 -1
package/package.json
CHANGED
package/runtime/requirements.txt
CHANGED
package/src/index.js
CHANGED
|
@@ -475,7 +475,7 @@ async function configureMcpClient({ client, vertical, installDir, runtimeDir, ve
|
|
|
475
475
|
|
|
476
476
|
function buildMcpServerConfig({ client, vertical, installDir, runtimeDir, vendorDir }) {
|
|
477
477
|
return {
|
|
478
|
-
command:
|
|
478
|
+
command: pythonCommandForPlatform(),
|
|
479
479
|
args: [path.join(runtimeDir, "server.py")],
|
|
480
480
|
env: {
|
|
481
481
|
TASKSAI_PRODUCT_ID: vertical.product_id,
|
|
@@ -487,6 +487,10 @@ function buildMcpServerConfig({ client, vertical, installDir, runtimeDir, vendor
|
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
+
function pythonCommandForPlatform(platform = process.platform) {
|
|
491
|
+
return platform === "win32" ? "python" : "python3";
|
|
492
|
+
}
|
|
493
|
+
|
|
490
494
|
async function jsonConfigHasServer(configPath, productId) {
|
|
491
495
|
const config = await readJson(configPath);
|
|
492
496
|
return Boolean(config.mcpServers?.[productId]);
|
|
@@ -1356,6 +1360,7 @@ export {
|
|
|
1356
1360
|
parseArgs,
|
|
1357
1361
|
parseEnv,
|
|
1358
1362
|
parseSource,
|
|
1363
|
+
pythonCommandForPlatform,
|
|
1359
1364
|
safeReportDoctorPassed,
|
|
1360
1365
|
verifyProductionSource,
|
|
1361
1366
|
verifyRuntimeHealth,
|