@hubspot/cli 8.0.8-experimental.0 → 8.0.8-experimental.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.
|
@@ -145,7 +145,7 @@ describe('lib/mcp/setup', () => {
|
|
|
145
145
|
mockedExecAsync.mockResolvedValueOnce({ stdout: '', stderr: '' });
|
|
146
146
|
const result = await setupCodex(mockMcpCommandWithEnv);
|
|
147
147
|
expect(result).toBe(true);
|
|
148
|
-
expect(mockedExecAsync).toHaveBeenCalledWith('codex mcp add "HubSpotDev" -- test-command --arg1 --ai-agent codex
|
|
148
|
+
expect(mockedExecAsync).toHaveBeenCalledWith('codex mcp add "HubSpotDev" --env HUBSPOT_MCP_STANDALONE=true -- test-command --arg1 --ai-agent codex');
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
describe('setupGemini', () => {
|
package/lib/mcp/setup.js
CHANGED
|
@@ -306,7 +306,7 @@ export async function setupCodex(mcpCommand = defaultMcpCommand) {
|
|
|
306
306
|
return false;
|
|
307
307
|
}
|
|
308
308
|
const mcpCommandWithAgent = buildCommandWithAgentString(mcpCommand, codex);
|
|
309
|
-
await execAsync(`codex mcp add "${mcpServerName}" -- ${mcpCommandWithAgent.command} ${mcpCommandWithAgent.args.join(' ')}
|
|
309
|
+
await execAsync(`codex mcp add "${mcpServerName}"${buildEnvFlagString(mcpCommand)} -- ${mcpCommandWithAgent.command} ${mcpCommandWithAgent.args.join(' ')}`);
|
|
310
310
|
SpinniesManager.succeed('codexSpinner', {
|
|
311
311
|
text: commands.mcp.setup.spinners.configuredCodex,
|
|
312
312
|
});
|
|
@@ -335,7 +335,7 @@ export async function setupGemini(mcpCommand = defaultMcpCommand) {
|
|
|
335
335
|
return false;
|
|
336
336
|
}
|
|
337
337
|
const mcpCommandWithAgent = buildCommandWithAgentString(mcpCommand, gemini);
|
|
338
|
-
await execAsync(`gemini mcp add -s user "${mcpServerName}" ${mcpCommandWithAgent.command} ${mcpCommandWithAgent.args.join(' ')}
|
|
338
|
+
await execAsync(`gemini mcp add -s user${buildEnvFlagString(mcpCommand)} "${mcpServerName}" ${mcpCommandWithAgent.command} ${mcpCommandWithAgent.args.join(' ')}`);
|
|
339
339
|
SpinniesManager.succeed('geminiSpinner', {
|
|
340
340
|
text: commands.mcp.setup.spinners.configuredGemini,
|
|
341
341
|
});
|
package/package.json
CHANGED