@hubspot/cli 8.0.8-experimental.3 → 8.0.8-experimental.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.
Files changed (2) hide show
  1. package/lib/mcp/setup.js +2 -14
  2. package/package.json +1 -1
package/lib/mcp/setup.js CHANGED
@@ -154,15 +154,7 @@ function setupMcpConfigFile(config) {
154
154
  if (!mcpConfig.mcpServers) {
155
155
  mcpConfig.mcpServers = {};
156
156
  }
157
- // Add or update HubSpot CLI MCP server
158
- const serverConfig = {
159
- command: config.mcpCommand.command,
160
- args: config.mcpCommand.args,
161
- };
162
- if (config.mcpCommand.env) {
163
- serverConfig.env = config.mcpCommand.env;
164
- }
165
- mcpConfig.mcpServers[mcpServerName] = serverConfig;
157
+ mcpConfig.mcpServers[mcpServerName] = config.mcpCommand;
166
158
  // Write the updated config
167
159
  fs.writeFileSync(config.configPath, JSON.stringify(mcpConfig, null, 2));
168
160
  SpinniesManager.succeed('spinner', {
@@ -186,12 +178,8 @@ export async function setupVsCode(mcpCommand = defaultMcpCommand) {
186
178
  const commandWithAgent = buildCommandWithAgentString(mcpCommand, vscode);
187
179
  const configObject = {
188
180
  name: mcpServerName,
189
- command: commandWithAgent.command,
190
- args: commandWithAgent.args,
181
+ ...commandWithAgent,
191
182
  };
192
- if (commandWithAgent.env) {
193
- configObject.env = commandWithAgent.env;
194
- }
195
183
  const mcpConfig = JSON.stringify(configObject);
196
184
  await execAsync(`code --add-mcp ${JSON.stringify(mcpConfig)}`);
197
185
  SpinniesManager.succeed('vsCode', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "8.0.8-experimental.3",
3
+ "version": "8.0.8-experimental.4",
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",