github / github/app

Feature Request: Support .vscode/mcp.json for MCP server discovery

Đang mở
#1,399 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Requests and ideas
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Feature summary

VS Code's Copilot extension supports .vscode/mcp.json as a project-level configuration file that defines MCP (Model Context Protocol) servers. This allows teams to check in a shared set of MCP servers that all contributors automatically pick up.

### What problem are you trying to solve?

Got it. Here's a feature request you can post publicly:

---

## Feature Request: Support `.vscode/mcp.json` for MCP server discovery

### Problem

VS Code's Copilot extension supports `.vscode/mcp.json` as a project-level configuration file that defines MCP (Model Context Protocol) servers. This allows teams to check in a shared set of MCP servers that all contributors automatically pick up.

However, the **Copilot CLI app** (GitHub's standalone desktop agent) does not recognize `.vscode/mcp.json`. This means teams that have already configured their MCP servers for VS Code must separately configure them again using the app's extension system (`.github/extensions/`), leading to duplicated configuration and maintenance burden.

---

### Proposed solution

### Proposed Solution

The Copilot CLI app should discover and load MCP servers defined in `.vscode/mcp.json` at the repository root, using the same schema that VS Code supports. This includes:

- **HTTP-type servers** (`"type": "http"` with a `"url"` and optional `"headers"`)
- **Stdio-type servers** (`"type": "stdio"` with `"command"`, `"args"`, and optional `"cwd"`)
- **Variable substitution** (e.g., `${userHome}`, `${workspaceFolder}`)

### Benefits

1. **Single source of truth** — one config file works across VS Code and the Copilot CLI app
2. **Zero onboarding friction** — new team members get MCP servers automatically without extra setup
3. **Ecosystem consistency** — aligns with the broader MCP ecosystem's convention for project-level config

### Alternatives Considered

- `.github/extensions/` — requires a completely different format (executable scripts), doesn't support HTTP-type servers declaratively, and isn't portable to VS Code
- Manual per-user setup — doesn't scale for teams

### Workflow impact

_No response_

### Installation context

_No response_

### Additional context

### Additional Context

The `.vscode/mcp.json` format is already a de facto standard for project-scoped MCP server configuration. Supporting it in all GitHub Copilot surfaces would reduce fragmentation and improve the developer experience for teams using multiple Copilot interfaces.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc xem xét schema của .vscode/mcp.json và đường dẫn cấu hình .github/extensions/ hiện có của ứng dụng; so sánh cách các server HTTP và stdio, header, cwd và việc thay thế biến được biểu diễn. Hoàn tất khi phát hiện một .vscode/mcp.json ở thư mục gốc của repository và cả hai loại server đều hoạt động mà không cần thiết lập trùng lặp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github
Lĩnh vực
desktop, developer-experience
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.