@mcp-use/cli 3.5.2-canary.9 → 3.5.2
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/README.md +1 -1
- package/dist/commands/deploy.d.ts +2 -0
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/utils/api.d.ts +2 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -464,7 +464,7 @@ For deploying to Manufact cloud, see the environment variables in this section f
|
|
|
464
464
|
MCP_WEB_URL=https://mcp-use.com
|
|
465
465
|
|
|
466
466
|
# Backend API URL (where /api/v1 endpoints are)
|
|
467
|
-
MCP_API_URL=https://cloud.
|
|
467
|
+
MCP_API_URL=https://cloud.manufact.com
|
|
468
468
|
|
|
469
469
|
# Example: Local development
|
|
470
470
|
export MCP_WEB_URL=http://localhost:3000
|
|
@@ -30,6 +30,8 @@ interface DeployOptions {
|
|
|
30
30
|
region?: "US" | "EU" | "APAC";
|
|
31
31
|
buildCommand?: string;
|
|
32
32
|
startCommand?: string;
|
|
33
|
+
/** Path to a non-default Dockerfile (relative to rootDir / repo root). */
|
|
34
|
+
dockerfile?: string;
|
|
33
35
|
/**
|
|
34
36
|
* Deploy branch. Defaults to the current git branch (managed flow: "main").
|
|
35
37
|
* Also scopes env-var sync to that branch's preview env.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,SAAS,EACV,MAAM,iBAAiB,CAAC;AAgGzB;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,SAAS,EACd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
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/commands/env.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwRpC,wBAAgB,gBAAgB,IAAI,OAAO,CAmE1C"}
|
package/dist/index.cjs
CHANGED
|
@@ -1156,7 +1156,7 @@ var import_node_os3 = __toESM(require("os"), 1);
|
|
|
1156
1156
|
var import_node_path2 = __toESM(require("path"), 1);
|
|
1157
1157
|
var CONFIG_DIR = import_node_path2.default.join(import_node_os3.default.homedir(), ".mcp-use");
|
|
1158
1158
|
var CONFIG_FILE = import_node_path2.default.join(CONFIG_DIR, "config.json");
|
|
1159
|
-
var DEFAULT_API_URL = process.env.MCP_API_URL ? process.env.MCP_API_URL.replace(/\/api\/v1$/, "") + "/api/v1" : "https://cloud.
|
|
1159
|
+
var DEFAULT_API_URL = process.env.MCP_API_URL ? process.env.MCP_API_URL.replace(/\/api\/v1$/, "") + "/api/v1" : "https://cloud.manufact.com/api/v1";
|
|
1160
1160
|
var DEFAULT_WEB_URL = process.env.MCP_WEB_URL ? process.env.MCP_WEB_URL : "https://manufact.com";
|
|
1161
1161
|
async function ensureConfigDir() {
|
|
1162
1162
|
try {
|
|
@@ -5985,6 +5985,10 @@ async function deployCommand(options) {
|
|
|
5985
5985
|
console.log(source_default.gray(` Port: `) + source_default.cyan(port));
|
|
5986
5986
|
if (options.region)
|
|
5987
5987
|
console.log(source_default.gray(` Region: `) + source_default.cyan(options.region));
|
|
5988
|
+
if (options.dockerfile)
|
|
5989
|
+
console.log(
|
|
5990
|
+
source_default.gray(` Dockerfile: `) + source_default.cyan(options.dockerfile)
|
|
5991
|
+
);
|
|
5988
5992
|
if (options.buildCommand)
|
|
5989
5993
|
console.log(
|
|
5990
5994
|
source_default.gray(` Build command: `) + source_default.cyan(options.buildCommand)
|
|
@@ -6153,7 +6157,8 @@ async function deployCommand(options) {
|
|
|
6153
6157
|
env: Object.keys(envVars).length > 0 ? envVars : void 0,
|
|
6154
6158
|
region: options.region,
|
|
6155
6159
|
buildCommand: options.buildCommand,
|
|
6156
|
-
startCommand: options.startCommand
|
|
6160
|
+
startCommand: options.startCommand,
|
|
6161
|
+
dockerfilePath: options.dockerfile
|
|
6157
6162
|
});
|
|
6158
6163
|
deploymentId = serverResult.deploymentId ?? "";
|
|
6159
6164
|
if (!deploymentId) {
|
|
@@ -6836,7 +6841,7 @@ async function addEnvCommand(assignment, options) {
|
|
|
6836
6841
|
async function updateEnvCommand(keyOrId, options) {
|
|
6837
6842
|
try {
|
|
6838
6843
|
await requireLogin();
|
|
6839
|
-
if (
|
|
6844
|
+
if (options.value === void 0 && !options.env && options.sensitive === void 0) {
|
|
6840
6845
|
console.error(
|
|
6841
6846
|
source_default.red(
|
|
6842
6847
|
"\u2717 Nothing to update. Provide at least one of --value, --env, --sensitive."
|
|
@@ -9897,6 +9902,9 @@ program.command("deploy").description("Deploy MCP server from GitHub to Manufact
|
|
|
9897
9902
|
).option(
|
|
9898
9903
|
"--start-command <cmd>",
|
|
9899
9904
|
"Custom start command (overrides auto-detection)"
|
|
9905
|
+
).option(
|
|
9906
|
+
"--dockerfile <path>",
|
|
9907
|
+
"Path to a non-default Dockerfile (relative to rootDir / repo root)"
|
|
9900
9908
|
).option(
|
|
9901
9909
|
"--no-github",
|
|
9902
9910
|
"Upload local source without connecting GitHub (repo hosted in the platform-managed org)"
|
|
@@ -9916,6 +9924,7 @@ program.command("deploy").description("Deploy MCP server from GitHub to Manufact
|
|
|
9916
9924
|
region: options.region,
|
|
9917
9925
|
buildCommand: options.buildCommand,
|
|
9918
9926
|
startCommand: options.startCommand,
|
|
9927
|
+
dockerfile: options.dockerfile,
|
|
9919
9928
|
noGithub: options.github === false
|
|
9920
9929
|
});
|
|
9921
9930
|
});
|