@ghl-ai/aw 0.1.30-beta.1 → 0.1.30-beta.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.
package/commands/init.mjs CHANGED
@@ -243,6 +243,7 @@ export async function initCommand(args) {
243
243
  copyInstructions(HOME, null, freshCfg?.namespace || team) || [];
244
244
  initAwDocs(HOME);
245
245
  setupMcp(HOME, freshCfg?.namespace || team) || [];
246
+ if (cwd !== HOME) setupMcp(cwd, freshCfg?.namespace || team);
246
247
 
247
248
  // Link current project if needed
248
249
  if (cwd !== HOME && !existsSync(join(cwd, '.aw_registry'))) {
@@ -321,6 +322,7 @@ export async function initCommand(args) {
321
322
  const instructionFiles = copyInstructions(HOME, null, team) || [];
322
323
  initAwDocs(HOME);
323
324
  const mcpFiles = setupMcp(HOME, team) || [];
325
+ if (cwd !== HOME) setupMcp(cwd, team);
324
326
  const gitTemplateInstalled = installGitTemplate();
325
327
  installIdeTasks();
326
328
 
package/mcp.mjs CHANGED
@@ -84,10 +84,13 @@ function resolveGitHubToken() {
84
84
  }
85
85
  }
86
86
 
87
- // 3. No gh CLI — prompt manual setup
88
- fmt.logWarn('No GitHub token found — MCP auth will use ${GITHUB_TOKEN} env var interpolation');
89
- fmt.logWarn(' Install gh CLI: brew install gh && gh auth login');
90
- fmt.logWarn(' Or export: export GITHUB_TOKEN=ghp_xxx');
87
+ // 3. No token found anywhere
88
+ fmt.logWarn('No GitHub token found — MCP authentication will not work!');
89
+ fmt.logWarn('');
90
+ fmt.logWarn(' Fix (recommended): brew install gh && gh auth login');
91
+ fmt.logWarn(' Fix (manual): export GITHUB_TOKEN=ghp_xxx');
92
+ fmt.logWarn('');
93
+ fmt.logWarn(' Then re-run: aw init');
91
94
  return null;
92
95
  }
93
96
 
@@ -135,13 +138,6 @@ export function setupMcp(cwd, namespace) {
135
138
  headers: { Authorization: `Bearer ${ghToken || '${GITHUB_TOKEN}'}` },
136
139
  };
137
140
 
138
- // Server config with env var interpolation for committed project files
139
- const ghlAiServerProject = {
140
- type: 'http',
141
- url: mcpUrl,
142
- headers: { Authorization: 'Bearer ${GITHUB_TOKEN}' },
143
- };
144
-
145
141
  const gitJenkinsServer = paths.gitJenkinsPath
146
142
  ? { command: 'node', args: [paths.gitJenkinsPath] }
147
143
  : null;
@@ -157,7 +153,7 @@ export function setupMcp(cwd, namespace) {
157
153
 
158
154
  // ── Claude Code: .mcp.json (project root — committed, uses env var) ──
159
155
  const projectMcpPath = join(cwd, '.mcp.json');
160
- if (mergeJsonMcpServer(projectMcpPath, 'ghl-ai', ghlAiServerProject)) {
156
+ if (mergeJsonMcpServer(projectMcpPath, 'ghl-ai', ghlAiServerLocal)) {
161
157
  updatedFiles.push(projectMcpPath);
162
158
  }
163
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.30-beta.1",
3
+ "version": "0.1.30-beta.2",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {