@mcp-use/cli 3.5.3-canary.9 → 3.6.0-canary.12

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/index.js CHANGED
@@ -6177,7 +6177,9 @@ async function deployCommand(options) {
6177
6177
  region: options.region,
6178
6178
  buildCommand: options.buildCommand,
6179
6179
  startCommand: options.startCommand,
6180
- dockerfilePath: options.dockerfile
6180
+ dockerfilePath: options.dockerfile,
6181
+ watchPaths: options.watchPaths,
6182
+ waitForCi: options.waitForCi
6181
6183
  });
6182
6184
  deploymentId = serverResult.deploymentId ?? "";
6183
6185
  if (!deploymentId) {
@@ -7121,6 +7123,25 @@ async function getServerCommand(idOrSlug, options) {
7121
7123
  console.log(
7122
7124
  source_default.white(" Prod branch: ") + source_default.gray(cr.productionBranch)
7123
7125
  );
7126
+ if (cr.watchPaths !== void 0) {
7127
+ console.log(
7128
+ source_default.white(" Watch paths: ") + source_default.gray(
7129
+ cr.watchPaths.length > 0 ? cr.watchPaths.join(", ") : "(all changes)"
7130
+ )
7131
+ );
7132
+ }
7133
+ if (cr.deployBranchPatterns !== void 0) {
7134
+ console.log(
7135
+ source_default.white(" Deploy branches: ") + source_default.gray(
7136
+ cr.deployBranchPatterns.length > 0 ? cr.deployBranchPatterns.join(", ") : "(all branches)"
7137
+ )
7138
+ );
7139
+ }
7140
+ if (cr.waitForCi !== void 0) {
7141
+ console.log(
7142
+ source_default.white(" Wait for CI: ") + source_default.gray(cr.waitForCi ? "yes" : "no")
7143
+ );
7144
+ }
7124
7145
  }
7125
7146
  if (server.activeDeploymentId) {
7126
7147
  console.log(
@@ -7180,7 +7201,10 @@ async function getServerCommand(idOrSlug, options) {
7180
7201
  handleCommandError(error, "Failed to get server");
7181
7202
  }
7182
7203
  }
7183
- async function updateServerCommand(idOrSlug, options) {
7204
+ function resolveGlobList(values) {
7205
+ return values.map((v) => v.trim()).filter((v) => v.length > 0);
7206
+ }
7207
+ async function updateServerCommand(idOrSlug, options, command) {
7184
7208
  try {
7185
7209
  if (!await isLoggedIn()) {
7186
7210
  console.log(source_default.red("\u2717 You are not logged in."));
@@ -7196,6 +7220,13 @@ async function updateServerCommand(idOrSlug, options) {
7196
7220
  if (options.description !== void 0)
7197
7221
  body.description = options.description;
7198
7222
  if (options.branch !== void 0) body.productionBranch = options.branch;
7223
+ if (options.watchPaths !== void 0)
7224
+ body.watchPaths = resolveGlobList(options.watchPaths);
7225
+ if (options.deployBranches !== void 0)
7226
+ body.deployBranchPatterns = resolveGlobList(options.deployBranches);
7227
+ if (options.waitForCi !== void 0 && command?.getOptionValueSource("waitForCi") === "cli") {
7228
+ body.waitForCi = options.waitForCi;
7229
+ }
7199
7230
  const config = {};
7200
7231
  if (options.buildCommand !== void 0) {
7201
7232
  config.buildCommand = options.buildCommand === "" ? null : options.buildCommand;
@@ -7203,11 +7234,14 @@ async function updateServerCommand(idOrSlug, options) {
7203
7234
  if (options.startCommand !== void 0) {
7204
7235
  config.startCommand = options.startCommand === "" ? null : options.startCommand;
7205
7236
  }
7237
+ if (options.rootDir !== void 0) {
7238
+ config.rootDir = options.rootDir === "" ? null : options.rootDir;
7239
+ }
7206
7240
  if (Object.keys(config).length > 0) body.config = config;
7207
7241
  if (Object.keys(body).length === 0) {
7208
7242
  console.error(
7209
7243
  source_default.red(
7210
- "\u2717 Nothing to update. Provide at least one of: --branch, --name, --build-command, --start-command, --description."
7244
+ "\u2717 Nothing to update. Provide at least one of: --branch, --name, --build-command, --start-command, --description, --watch-paths, --deploy-branches, --wait-for-ci/--no-wait-for-ci, --root-dir."
7211
7245
  )
7212
7246
  );
7213
7247
  process.exit(1);
@@ -7219,10 +7253,30 @@ async function updateServerCommand(idOrSlug, options) {
7219
7253
  const label = server.name || server.slug || server.id;
7220
7254
  console.log(source_default.green.bold(`
7221
7255
  \u2713 Server updated: ${label}`));
7222
- if (server.connectedRepository) {
7256
+ const repo = server.connectedRepository;
7257
+ if (repo) {
7223
7258
  console.log(
7224
- source_default.gray(" Prod branch: ") + source_default.cyan(server.connectedRepository.productionBranch)
7259
+ source_default.gray(" Prod branch: ") + source_default.cyan(repo.productionBranch)
7225
7260
  );
7261
+ if (repo.watchPaths !== void 0) {
7262
+ console.log(
7263
+ source_default.gray(" Watch paths: ") + source_default.cyan(
7264
+ repo.watchPaths.length > 0 ? repo.watchPaths.join(", ") : "(all changes)"
7265
+ )
7266
+ );
7267
+ }
7268
+ if (repo.deployBranchPatterns !== void 0) {
7269
+ console.log(
7270
+ source_default.gray(" Deploy branches: ") + source_default.cyan(
7271
+ repo.deployBranchPatterns.length > 0 ? repo.deployBranchPatterns.join(", ") : "(all branches)"
7272
+ )
7273
+ );
7274
+ }
7275
+ if (repo.waitForCi !== void 0) {
7276
+ console.log(
7277
+ source_default.gray(" Wait for CI: ") + source_default.cyan(repo.waitForCi ? "yes" : "no")
7278
+ );
7279
+ }
7226
7280
  }
7227
7281
  console.log();
7228
7282
  } catch (error) {
@@ -7297,7 +7351,19 @@ function createServersCommand() {
7297
7351
  ).option(
7298
7352
  "--start-command <cmd>",
7299
7353
  "Override the start command (pass an empty string to clear)"
7300
- ).option("--description <text>", "Update the server description").option("--org <slug-or-id>", "Target organization").action(updateServerCommand);
7354
+ ).option("--description <text>", "Update the server description").option(
7355
+ "--watch-paths <glob...>",
7356
+ 'Only auto-deploy when files matching these globs change (monorepos). Pass "" to clear.'
7357
+ ).option(
7358
+ "--deploy-branches <glob...>",
7359
+ 'Branch globs allowed to trigger auto-deploys (besides the production branch). Pass "" to allow all.'
7360
+ ).option(
7361
+ "--wait-for-ci",
7362
+ "Hold GitHub auto-deploys until other check runs pass"
7363
+ ).option("--no-wait-for-ci", "Do not wait for other check runs").option(
7364
+ "--root-dir <path>",
7365
+ 'Repo subdirectory to build from (monorepos). Pass "" to reset to the repo root.'
7366
+ ).option("--org <slug-or-id>", "Target organization").action(updateServerCommand);
7301
7367
  serversCommand.command("delete").alias("rm").argument("<server-id>", "Server UUID (or slug if API accepts it)").option("-y, --yes", "Skip confirmation prompt").option("--org <slug-or-id>", "Target organization").description("Delete a server and all its deployments").action(deleteServerCommand);
7302
7368
  serversCommand.addCommand(createEnvCommand());
7303
7369
  return serversCommand;
@@ -9921,6 +9987,12 @@ program.command("deploy").description("Deploy MCP server from GitHub to Manufact
9921
9987
  ).option(
9922
9988
  "--dockerfile <path>",
9923
9989
  "Path to a non-default Dockerfile (relative to rootDir / repo root)"
9990
+ ).option(
9991
+ "--watch-paths <glob...>",
9992
+ "Only auto-deploy when files matching these globs change (monorepos). Set on new-server creation."
9993
+ ).option(
9994
+ "--wait-for-ci",
9995
+ "Hold GitHub auto-deploys until other check runs pass. Set on new-server creation."
9924
9996
  ).option(
9925
9997
  "--no-github",
9926
9998
  "Upload local source without connecting GitHub (repo hosted in the platform-managed org)"
@@ -9941,6 +10013,8 @@ program.command("deploy").description("Deploy MCP server from GitHub to Manufact
9941
10013
  buildCommand: options.buildCommand,
9942
10014
  startCommand: options.startCommand,
9943
10015
  dockerfile: options.dockerfile,
10016
+ watchPaths: options.watchPaths,
10017
+ waitForCi: options.waitForCi,
9944
10018
  noGithub: options.github === false
9945
10019
  });
9946
10020
  });