You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: consolidated/vscode.md
+46-3Lines changed: 46 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,14 +272,14 @@ Create `.vscode/mcp.json` in your project root:
272
272
- No Docker or PAT required for most users
273
273
- Simplifies setup and works out-of-the-box with Copilot-enabled accounts
274
274
275
-
## Git MCP Server
275
+
## Git MCP Server (Local)
276
276
277
277
For local Git repository integration:
278
278
279
279
```json
280
280
{
281
281
"servers": {
282
-
"git-mcp-server": {
282
+
"git": {
283
283
"command": "npx",
284
284
"args": [
285
285
"-y",
@@ -295,6 +295,49 @@ For local Git repository integration:
295
295
- Node.js and npm installed
296
296
- Git repository initialized
297
297
298
+
## Git MCP Server in Devcontainers (Recommended)
299
+
300
+
> **Note:** When using a devcontainer, npx-based MCP servers are often broken. Instead, run the Git MCP server as a background task and connect to it via HTTP.
301
+
302
+
**Add this task to your `.vscode/tasks.json`:**
303
+
304
+
```json
305
+
// @note npx based MCP servers are broken in devcontainers so we run them as tasks
306
+
{
307
+
"type": "process",
308
+
"label": "mcp-server: git",
309
+
"command": "npx",
310
+
"args": [
311
+
"-y",
312
+
"@cyanheads/git-mcp-server"
313
+
],
314
+
"options": {
315
+
"env": {
316
+
"MCP_TRANSPORT_TYPE": "http"
317
+
}
318
+
},
319
+
"problemMatcher": [],
320
+
"runOptions": {
321
+
"runOn": "folderOpen"
322
+
}
323
+
}
324
+
```
325
+
326
+
**And use this in your `.vscode/mcp.json`:**
327
+
328
+
```json
329
+
{
330
+
"servers": {
331
+
"git": {
332
+
"url": "http://localhost:3010/mcp/"
333
+
}
334
+
}
335
+
}
336
+
```
337
+
338
+
- This approach is only needed when a devcontainer setup is present.
339
+
- The task will start the MCP server in HTTP mode, and the client connects to it via `localhost:3010`.
340
+
298
341
## Atlassian Jira MCP Server
299
342
300
343
For Jira issue tracking integration (use only if project uses Jira):
@@ -375,5 +418,5 @@ These extensions are recommended for specific workflows or environments:
375
418
376
419
---
377
420
378
-
*Consolidated from multiple source files on Fri Jun 13 09:48:22 PDT 2025*
421
+
*Consolidated from multiple source files on Sun Jul 27 00:42:25 UTC 2025*
0 commit comments