bc-code-intelligence-mcp 1.5.1 → 1.5.3

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.
@@ -10,7 +10,7 @@ related_topics:
10
10
  - "git-layer-configuration.md"
11
11
  applies_to:
12
12
  - "BC Code Intelligence MCP Server"
13
- last_updated: "2025-10-27"
13
+ last_updated: "2025-10-29"
14
14
  ---
15
15
 
16
16
  # Configuration File Formats and Creation
@@ -81,11 +81,10 @@ enable_diagnostic_tools: true
81
81
  "type": "git",
82
82
  "priority": 20,
83
83
  "source": {
84
- "repository_url": "https://github.com/mycompany/bc-knowledge",
84
+ "repository_url": "https://dev.azure.com/myorg/BC-Knowledge/_git/standards",
85
85
  "branch": "main",
86
86
  "auth": {
87
- "type": "pat",
88
- "token_env_var": "GITHUB_TOKEN"
87
+ "type": "az_cli"
89
88
  }
90
89
  },
91
90
  "enabled": true
@@ -101,15 +100,14 @@ knowledge_layers:
101
100
  type: git
102
101
  priority: 20
103
102
  source:
104
- repository_url: "https://github.com/mycompany/bc-knowledge"
103
+ repository_url: "https://dev.azure.com/myorg/BC-Knowledge/_git/standards"
105
104
  branch: main
106
105
  auth:
107
- type: pat
108
- token_env_var: GITHUB_TOKEN
106
+ type: az_cli
109
107
  enabled: true
110
108
  ```
111
109
 
112
- **What this does:** Adds a company knowledge layer from GitHub with PAT authentication.
110
+ **What this does:** Adds a company knowledge layer from Azure DevOps with Azure CLI authentication (preferred method).
113
111
 
114
112
  ### **Example 3: Full Multi-Layer Setup**
115
113
 
@@ -125,8 +123,7 @@ knowledge_layers:
125
123
  "repository_url": "https://dev.azure.com/myorg/BC-Knowledge/_git/standards",
126
124
  "branch": "main",
127
125
  "auth": {
128
- "type": "pat",
129
- "token_env_var": "AZURE_DEVOPS_PAT"
126
+ "type": "az_cli"
130
127
  }
131
128
  },
132
129
  "enabled": true
@@ -139,8 +136,7 @@ knowledge_layers:
139
136
  "repository_url": "https://dev.azure.com/myorg/BC-Knowledge/_git/team-alpha",
140
137
  "branch": "main",
141
138
  "auth": {
142
- "type": "pat",
143
- "token_env_var": "AZURE_DEVOPS_PAT"
139
+ "type": "az_cli"
144
140
  }
145
141
  },
146
142
  "enabled": true
@@ -169,8 +165,7 @@ knowledge_layers:
169
165
  repository_url: "https://dev.azure.com/myorg/BC-Knowledge/_git/standards"
170
166
  branch: main
171
167
  auth:
172
- type: pat
173
- token_env_var: AZURE_DEVOPS_PAT
168
+ type: az_cli
174
169
  enabled: true
175
170
 
176
171
  - name: "Team Conventions"
@@ -180,8 +175,7 @@ knowledge_layers:
180
175
  repository_url: "https://dev.azure.com/myorg/BC-Knowledge/_git/team-alpha"
181
176
  branch: main
182
177
  auth:
183
- type: pat
184
- token_env_var: AZURE_DEVOPS_PAT
178
+ type: az_cli
185
179
  enabled: true
186
180
 
187
181
  - name: "Project Overrides"
@@ -194,7 +188,7 @@ knowledge_layers:
194
188
  enable_diagnostic_tools: true
195
189
  ```
196
190
 
197
- **What this does:** Complete organization setup with company, team, and project layers.
191
+ **What this does:** Complete organization setup with company, team, and project layers using Azure CLI authentication.
198
192
 
199
193
  ## Configuration Schema Reference
200
194
 
@@ -224,8 +218,12 @@ enable_diagnostic_tools: true
224
218
  "branch": string, // Git branch (default: "main")
225
219
  "subdirectory"?: string, // Optional subdirectory path
226
220
  "auth": {
227
- "type": "pat", // Authentication type (currently only "pat")
228
- "token_env_var": string // Environment variable containing PAT token
221
+ // Option 1: Azure CLI (recommended for Azure DevOps)
222
+ "type": "az_cli"
223
+
224
+ // Option 2: PAT token (fallback or for GitHub)
225
+ // "type": "pat",
226
+ // "token_env_var": string // Environment variable containing PAT token
229
227
  }
230
228
  }
231
229
  ```
@@ -251,47 +249,106 @@ enable_diagnostic_tools: true
251
249
 
252
250
  ## Authentication Configuration
253
251
 
254
- ### **GitHub PAT Token**
252
+ ### **Azure DevOps Authentication** ⭐ **Recommended**
255
253
 
256
- 1. **Generate token:** https://github.com/settings/tokens
257
- - Permissions: `repo` (for private repos) or no permissions (public repos)
254
+ #### **Option 1: Azure CLI (Preferred)**
255
+
256
+ **Why prefer Azure CLI:**
257
+ - ✅ No token expiration management
258
+ - ✅ Works with MFA and conditional access policies
259
+ - ✅ Single sign-on via `az login`
260
+ - ✅ Simpler than PAT management
261
+
262
+ **Setup:**
263
+
264
+ 1. **Install Azure CLI:** https://aka.ms/install-az-cli
265
+
266
+ 2. **Login to Azure:**
267
+ ```bash
268
+ az login
269
+ ```
270
+
271
+ 3. **Configure in JSON:**
272
+ ```json
273
+ "auth": {
274
+ "type": "az_cli"
275
+ }
276
+ ```
277
+
278
+ 4. **Configure in YAML:**
279
+ ```yaml
280
+ auth:
281
+ type: az_cli
282
+ ```
283
+
284
+ **Full example:**
285
+ ```json
286
+ {
287
+ "knowledge_layers": [
288
+ {
289
+ "name": "Company Standards",
290
+ "type": "git",
291
+ "priority": 20,
292
+ "source": {
293
+ "repository_url": "https://dev.azure.com/myorg/BC-Knowledge/_git/standards",
294
+ "branch": "main",
295
+ "auth": {
296
+ "type": "az_cli"
297
+ }
298
+ },
299
+ "enabled": true
300
+ }
301
+ ]
302
+ }
303
+ ```
304
+
305
+ **How it works:** Git credential manager automatically uses your Azure CLI session for authentication. No manual token handling required!
306
+
307
+ #### **Option 2: Azure DevOps PAT Token (Fallback)**
308
+
309
+ Use when Azure CLI is not available or when automation requires static credentials.
310
+
311
+ 1. **Generate token:** Azure DevOps → User Settings → Personal Access Tokens
312
+ - Scopes: `Code (Read)`
258
313
 
259
314
  2. **Set environment variable:**
260
315
  ```bash
261
316
  # Windows PowerShell
262
- $env:GITHUB_TOKEN = "ghp_your_token_here"
317
+ $env:AZURE_DEVOPS_PAT = "your_pat_token_here"
263
318
 
264
319
  # Linux/macOS
265
- export GITHUB_TOKEN="ghp_your_token_here"
320
+ export AZURE_DEVOPS_PAT="your_pat_token_here"
266
321
  ```
267
322
 
268
323
  3. **Reference in config:**
269
324
  ```json
270
325
  "auth": {
271
326
  "type": "pat",
272
- "token_env_var": "GITHUB_TOKEN"
327
+ "token_env_var": "AZURE_DEVOPS_PAT"
273
328
  }
274
329
  ```
275
330
 
276
- ### **Azure DevOps PAT Token**
331
+ ### **GitHub Authentication**
277
332
 
278
- 1. **Generate token:** Azure DevOps → User Settings → Personal Access Tokens
279
- - Scopes: `Code (Read)`
333
+ #### **GitHub PAT Token**
334
+
335
+ 1. **Generate token:** https://github.com/settings/tokens
336
+ - Permissions: `repo` (for private repos) or no permissions (public repos)
280
337
 
281
338
  2. **Set environment variable:**
282
339
  ```bash
283
340
  # Windows PowerShell
284
- $env:AZURE_DEVOPS_PAT = "your_pat_token_here"
341
+ $env:GITHUB_TOKEN = "ghp_your_token_here"
285
342
 
286
343
  # Linux/macOS
287
- export AZURE_DEVOPS_PAT="your_pat_token_here"
344
+ export GITHUB_TOKEN="ghp_your_token_here"
288
345
  ```
289
346
 
290
347
  3. **Reference in config:**
291
348
  ```json
292
349
  "auth": {
293
350
  "type": "pat",
294
- "token_env_var": "AZURE_DEVOPS_PAT"
351
+ "token_env_var": "GITHUB_TOKEN"
295
352
  }
296
353
  ```
297
354
 
@@ -340,11 +397,10 @@ $config = @{
340
397
  type = "git"
341
398
  priority = 20
342
399
  source = @{
343
- repository_url = "https://github.com/mycompany/bc-knowledge"
400
+ repository_url = "https://dev.azure.com/myorg/BC-Knowledge/_git/standards"
344
401
  branch = "main"
345
402
  auth = @{
346
- type = "pat"
347
- token_env_var = "GITHUB_TOKEN"
403
+ type = "az_cli"
348
404
  }
349
405
  }
350
406
  enabled = $true
@@ -366,11 +422,10 @@ cat > bc-code-intel-config.json << 'EOF'
366
422
  "type": "git",
367
423
  "priority": 20,
368
424
  "source": {
369
- "repository_url": "https://github.com/mycompany/bc-knowledge",
425
+ "repository_url": "https://dev.azure.com/myorg/BC-Knowledge/_git/standards",
370
426
  "branch": "main",
371
427
  "auth": {
372
- "type": "pat",
373
- "token_env_var": "GITHUB_TOKEN"
428
+ "type": "az_cli"
374
429
  }
375
430
  },
376
431
  "enabled": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-code-intelligence-mcp",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",