@ghl-ai/aw 0.1.35-beta.32 → 0.1.35-beta.33

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/mcp.mjs +3 -29
  2. package/package.json +1 -1
package/mcp.mjs CHANGED
@@ -4,7 +4,7 @@
4
4
  import { existsSync, writeFileSync, readFileSync, mkdirSync } from 'node:fs';
5
5
  import { execSync } from 'node:child_process';
6
6
  import { createInterface } from 'node:readline';
7
- import { join, resolve } from 'node:path';
7
+ import { join } from 'node:path';
8
8
  import { homedir } from 'node:os';
9
9
  import * as fmt from './fmt.mjs';
10
10
 
@@ -15,15 +15,9 @@ const DEFAULT_MCP_URL = 'https://services.leadconnectorhq.com/agentic-workspace/
15
15
  * Auto-detect MCP server paths.
16
16
  */
17
17
  function detectPaths() {
18
- const gitJenkinsCandidates = [
19
- join(HOME, 'Documents', 'GitHub', 'git-jenkins-mcp', 'dist', 'index.js'),
20
- resolve('..', 'git-jenkins-mcp', 'dist', 'index.js'),
21
- ];
22
-
23
- const gitJenkinsPath = gitJenkinsCandidates.find(p => existsSync(p)) || null;
24
18
  const ghlMcpUrl = process.env.GHL_MCP_URL || DEFAULT_MCP_URL;
25
19
 
26
- return { gitJenkinsPath, ghlMcpUrl };
20
+ return { ghlMcpUrl };
27
21
  }
28
22
 
29
23
  /**
@@ -266,18 +260,11 @@ export async function setupMcp(cwd, namespace, { silent = false } = {}) {
266
260
  headers,
267
261
  };
268
262
 
269
- const gitJenkinsServer = paths.gitJenkinsPath
270
- ? { command: 'node', args: [paths.gitJenkinsPath] }
271
- : null;
272
-
273
263
  // ── Claude Code: ~/.claude/settings.json (global, local) ──
274
264
  const claudeSettingsPath = join(HOME, '.claude', 'settings.json');
275
265
  if (mergeJsonMcpServer(claudeSettingsPath, 'ghl-ai', ghlAiServerLocal)) {
276
266
  updatedFiles.push(claudeSettingsPath);
277
267
  }
278
- if (gitJenkinsServer && mergeJsonMcpServer(claudeSettingsPath, 'git-jenkins', gitJenkinsServer)) {
279
- updatedFiles.push(claudeSettingsPath);
280
- }
281
268
 
282
269
  // ── Claude Code: .mcp.json (project root — committed, uses env var) ──
283
270
  const projectMcpPath = join(cwd, '.mcp.json');
@@ -290,29 +277,20 @@ export async function setupMcp(cwd, namespace, { silent = false } = {}) {
290
277
  if (mergeJsonMcpServer(claudeWorkspaceMcpPath, 'ghl-ai', ghlAiServerLocal)) {
291
278
  updatedFiles.push(claudeWorkspaceMcpPath);
292
279
  }
293
- if (gitJenkinsServer && mergeJsonMcpServer(claudeWorkspaceMcpPath, 'git-jenkins', gitJenkinsServer)) {
294
- updatedFiles.push(claudeWorkspaceMcpPath);
295
- }
296
280
 
297
281
  // ── Cursor: project .cursor/mcp.json (workspace-level, local) ──
298
282
  const cursorProjectMcpPath = join(cwd, '.cursor', 'mcp.json');
299
283
  if (mergeJsonMcpServer(cursorProjectMcpPath, 'ghl-ai', ghlAiServerLocal)) {
300
284
  updatedFiles.push(cursorProjectMcpPath);
301
285
  }
302
- if (gitJenkinsServer && mergeJsonMcpServer(cursorProjectMcpPath, 'git-jenkins', gitJenkinsServer)) {
303
- updatedFiles.push(cursorProjectMcpPath);
304
- }
305
286
 
306
287
  // ── Cursor: ~/.cursor/mcp.json (global, local) ──
307
288
  const cursorMcpPath = join(HOME, '.cursor', 'mcp.json');
308
289
  if (mergeJsonMcpServer(cursorMcpPath, 'ghl-ai', ghlAiServerLocal)) {
309
290
  updatedFiles.push(cursorMcpPath);
310
291
  }
311
- if (gitJenkinsServer && mergeJsonMcpServer(cursorMcpPath, 'git-jenkins', gitJenkinsServer)) {
312
- updatedFiles.push(cursorMcpPath);
313
- }
314
292
 
315
- // Deduplicate (claude settings may be added twice if both servers written)
293
+ // Deduplicate
316
294
  const unique = [...new Set(updatedFiles)];
317
295
 
318
296
  if (unique.length > 0) {
@@ -321,10 +299,6 @@ export async function setupMcp(cwd, namespace, { silent = false } = {}) {
321
299
  fmt.logInfo('MCP servers already configured — no changes needed');
322
300
  }
323
301
 
324
- if (!paths.gitJenkinsPath) {
325
- fmt.logWarn('git-jenkins MCP not found — skipped');
326
- }
327
-
328
302
  return unique;
329
303
  }
330
304
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.35-beta.32",
3
+ "version": "0.1.35-beta.33",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {