github / github/github-mcp-server

Restrict MCP access to private repositories

Đang mở
#1,685 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Go
Star
33k
Fork
5k
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
52

Mô tả

### Describe the feature or problem you’d like to solve

Currently, I can not find a documented method, or a method within the issues/discussions to restrict a local MCP deployment to access only specific repositories (In my case, private repos belonging to the org). I also don't see this option when creating the PAT, as even the "Only select repositories" includes "Also includes public repositories (read-only)."
I have seen some suggestions of modifying the prompt to account for this, but that doesn't offer a deterministic way of restricting the search space for repositories.

### Proposed solution

Offer some flag to restrict repo's by org name, and even further by repo name if wanted.
This would allow for agent's to have a focused selection of code, without relying on the model to strictly follow the prompt.

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

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

Đánh giá

Issue này chưa được đánh giá.

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.