@hubspot/cli 7.7.6-experimental.0 → 7.7.7-experimental.0

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.
@@ -30,6 +30,14 @@ function builder(yargs) {
30
30
  return yargs;
31
31
  }
32
32
  async function handler(argv) {
33
+ const mcpsdk = '@modelcontextprotocol/sdk';
34
+ try {
35
+ await import(mcpsdk);
36
+ }
37
+ catch (e) {
38
+ logger_1.logger.error(`This feature requires the ${mcpsdk} dependency to be installed, which requires node >=20`);
39
+ process.exit(exitCodes_1.EXIT_CODES.ERROR);
40
+ }
33
41
  await addMcpServerToConfig(argv.targets);
34
42
  }
35
43
  exports.default = { command, describe, builder, handler };
@@ -7,12 +7,21 @@ const logger_1 = require("@hubspot/local-dev-lib/logger");
7
7
  const child_process_1 = require("child_process");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const fs_1 = __importDefault(require("fs"));
10
+ const exitCodes_1 = require("../../lib/enums/exitCodes");
10
11
  const command = 'start';
11
12
  const describe = undefined; // Keep this command hidden, doesn't seem useful to expose
12
13
  function builder(yargs) {
13
14
  return yargs;
14
15
  }
15
16
  async function handler() {
17
+ const mcpsdk = '@modelcontextprotocol/sdk';
18
+ try {
19
+ await import(mcpsdk);
20
+ }
21
+ catch (e) {
22
+ logger_1.logger.error(`This feature requires the ${mcpsdk} dependency to be installed, which requires node >=20`);
23
+ process.exit(exitCodes_1.EXIT_CODES.ERROR);
24
+ }
16
25
  await startMcpServer();
17
26
  }
18
27
  exports.default = { command, describe, builder, handler };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "7.7.6-experimental.0",
3
+ "version": "7.7.7-experimental.0",
4
4
  "description": "The official CLI for developing on HubSpot",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/HubSpot/hubspot-cli",
@@ -10,7 +10,6 @@
10
10
  "@hubspot/serverless-dev-runtime": "7.0.6",
11
11
  "@hubspot/theme-preview-dev-server": "0.0.10",
12
12
  "@hubspot/ui-extensions-dev-server": "0.9.2",
13
- "@modelcontextprotocol/sdk": "1.13.3",
14
13
  "archiver": "7.0.1",
15
14
  "boxen": "8.0.1",
16
15
  "chalk": "4.1.2",
@@ -62,7 +61,8 @@
62
61
  "typescript": "^5.6.2"
63
62
  },
64
63
  "optionalDependencies": {
65
- "@hubspot/cms-dev-server": "^1.0.9"
64
+ "@hubspot/cms-dev-server": "^1.0.9",
65
+ "@modelcontextprotocol/sdk": "1.13.3"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "ts-node ./scripts/build.ts",