@mcp-use/cli 2.12.4-canary.2 → 2.12.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/commands/deploy.d.ts.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3039,6 +3039,10 @@ ${MCP_USE_DIR}
|
|
|
3039
3039
|
}
|
|
3040
3040
|
|
|
3041
3041
|
// src/commands/deploy.ts
|
|
3042
|
+
var GATEWAY_DOMAIN = "run.mcp-use.com";
|
|
3043
|
+
function buildGatewayUrl(slugOrId) {
|
|
3044
|
+
return `https://${slugOrId}.${GATEWAY_DOMAIN}/mcp`;
|
|
3045
|
+
}
|
|
3042
3046
|
async function parseEnvFile(filePath) {
|
|
3043
3047
|
try {
|
|
3044
3048
|
const content = await fs9.readFile(filePath, "utf-8");
|
|
@@ -3246,9 +3250,9 @@ function getMcpServerUrl(deployment) {
|
|
|
3246
3250
|
if (deployment.customDomain) {
|
|
3247
3251
|
return `https://${deployment.customDomain}/mcp`;
|
|
3248
3252
|
} else if (deployment.serverSlug) {
|
|
3249
|
-
return
|
|
3253
|
+
return buildGatewayUrl(deployment.serverSlug);
|
|
3250
3254
|
} else if (deployment.serverId) {
|
|
3251
|
-
return
|
|
3255
|
+
return buildGatewayUrl(deployment.serverId);
|
|
3252
3256
|
} else {
|
|
3253
3257
|
return `https://${deployment.domain}/mcp`;
|
|
3254
3258
|
}
|
|
@@ -5626,7 +5630,10 @@ program.command("start").description("Start production server").option("-p, --pa
|
|
|
5626
5630
|
};
|
|
5627
5631
|
process.on("SIGINT", cleanup);
|
|
5628
5632
|
process.on("SIGTERM", cleanup);
|
|
5629
|
-
serverProc.on("exit", (code) => {
|
|
5633
|
+
serverProc.on("exit", async (code) => {
|
|
5634
|
+
if (!cleanupInProgress) {
|
|
5635
|
+
await cleanup();
|
|
5636
|
+
}
|
|
5630
5637
|
process.exit(code || 0);
|
|
5631
5638
|
});
|
|
5632
5639
|
} catch (error) {
|