@hubspot/cli 7.7.5-experimental.0 → 7.7.6-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.
- package/commands/mcp/setup.d.ts +1 -1
- package/commands/mcp/setup.js +8 -18
- package/package.json +1 -1
package/commands/mcp/setup.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare function builder(yargs: Argv): Argv;
|
|
|
6
6
|
declare function handler(argv: ArgumentsCamelCase<MCPSetupArgs>): Promise<void>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
command: string[];
|
|
9
|
-
describe:
|
|
9
|
+
describe: undefined;
|
|
10
10
|
builder: typeof builder;
|
|
11
11
|
handler: typeof handler;
|
|
12
12
|
};
|
package/commands/mcp/setup.js
CHANGED
|
@@ -14,8 +14,7 @@ const exitCodes_1 = require("../../lib/enums/exitCodes");
|
|
|
14
14
|
const promptUtils_1 = require("../../lib/prompts/promptUtils");
|
|
15
15
|
const chalk_1 = __importDefault(require("chalk"));
|
|
16
16
|
const command = ['setup', 'update'];
|
|
17
|
-
const describe =
|
|
18
|
-
const mcpServerPath = path_1.default.join(os_1.default.homedir(), 'src', 'hubspot-cli', 'dist', 'mcp-server', 'server.js');
|
|
17
|
+
const describe = undefined;
|
|
19
18
|
const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
20
19
|
const supportedTools = [
|
|
21
20
|
{ name: 'Claude', value: 'claude' },
|
|
@@ -108,9 +107,8 @@ async function setupClaudeDesktop() {
|
|
|
108
107
|
}
|
|
109
108
|
// Add or update HubSpot CLI MCP server
|
|
110
109
|
config.mcpServers['hubspot-cli-mcp'] = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
args: [mcpServerPath],
|
|
110
|
+
command: 'hs',
|
|
111
|
+
args: ['mcp', 'start'],
|
|
114
112
|
};
|
|
115
113
|
// Write the updated config
|
|
116
114
|
fs_1.default.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
@@ -138,22 +136,15 @@ async function setupClaudeCode() {
|
|
|
138
136
|
// Run claude mcp add command
|
|
139
137
|
const mcpConfig = JSON.stringify({
|
|
140
138
|
type: 'stdio',
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
args: [mcpServerPath],
|
|
139
|
+
command: 'hs',
|
|
140
|
+
args: ['mcp', 'start'],
|
|
144
141
|
});
|
|
145
142
|
const { stdout } = await execAsync('claude mcp list');
|
|
146
143
|
if (stdout.includes('hubspot-cli-mcp')) {
|
|
147
144
|
SpinniesManager_1.default.update('claudeCode', {
|
|
148
145
|
text: 'CLI mcp server already installed, reinstalling',
|
|
149
146
|
});
|
|
150
|
-
|
|
151
|
-
await execAsync('claude mcp remove "hubspot-cli-mcp" --scope user');
|
|
152
|
-
}
|
|
153
|
-
catch (error) {
|
|
154
|
-
// @ts-ignore
|
|
155
|
-
logger_1.logger.warn(error.stderr);
|
|
156
|
-
}
|
|
147
|
+
await execAsync('claude mcp remove "hubspot-cli-mcp" --scope user');
|
|
157
148
|
}
|
|
158
149
|
await execAsync(`claude mcp add-json "hubspot-cli-mcp" '${mcpConfig}' --scope user`);
|
|
159
150
|
SpinniesManager_1.default.succeed('claudeCode', {
|
|
@@ -216,9 +207,8 @@ async function setupCursor() {
|
|
|
216
207
|
}
|
|
217
208
|
// Add or update HubSpot CLI MCP server
|
|
218
209
|
config.mcpServers['hubspot-cli-mcp'] = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args: [mcpServerPath],
|
|
210
|
+
command: 'hs',
|
|
211
|
+
args: ['mcp', 'start'],
|
|
222
212
|
};
|
|
223
213
|
// Write the updated config
|
|
224
214
|
fs_1.default.writeFileSync(cursorConfigPath, JSON.stringify(config, null, 2));
|
package/package.json
CHANGED