copilot_spaces: org-owned Spaces unreachable via the app's managed github MCP token (missing organization_copilot_spaces: read)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github, go
- Lĩnh vực
- api, authentication, backend
Hướng nghiên cứu
Bắt đầu với ghi chú xác thực copilot_spaces trong README và các điểm vào get_copilot_space và list_copilot_spaces. So sánh hành vi của token MCP github do ứng dụng quản lý với CLI, tập trung vào organization_copilot_spaces: read và phản hồi không tìm thấy chung. Được xem là hoàn tất khi ứng dụng hỗ trợ quyền truy cập cần thiết hoặc ghi lại một cách sử dụng PAT được hỗ trợ, với lỗi quyền hạn có thể phân biệt khi thích hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
get_copilot_space and list_copilot_spaces cannot read org-owned Copilot Spaces when called through the GitHub Copilot app's managed github MCP server. The same calls work from the Copilot CLI. Per this repo's README, org-owned spaces require a fine-grained PAT with organization_copilot_spaces: read installed on the owning org — and the app's auto-provisioned Copilot token appears not to carry that scope, with no user-facing way to add it.
Environment
- Surface: GitHub Copilot app (built on Copilot CLI), MCP server
github(https://api.githubcopilot.com/mcp/), toolsetcopilot_spacesenabled. - Comparison surface: Copilot CLI ~v1.0.66 on macOS.
- Space under test:
GitHub Roadmaps Space, ownergithub, URLgithub.com/copilot/spaces/github/445(org-owned).
Steps to reproduce
- In the app, call
get_copilot_spacewithowner: "github",name: "GitHub Roadmaps Space". → not found. - In the app, call
list_copilot_spaces. → returns only the user's own/bookmarked spaces; the org space is absent. - Star/bookmark
github/445in the browser, wait ~1 day, repeat steps 1–2 in a fresh app window. → still not found / still absent. - In the CLI, call
get_copilot_spacewithowner: "github",name: "GitHub Roadmaps Space". → success, ~17 documents.list_copilot_spacesreturns ~505 org spaces.
Expected
A user who has access to an org-owned space (and has starred it) should be able to read it via get_copilot_space / see it via list_copilot_spaces in the app, matching CLI behavior — or there should be a documented, user-actionable way to grant the app's github MCP token the required organization_copilot_spaces: read scope.
Actual
Org-owned spaces are "treated as not found" in the app. The tools are present (so it's not a toolset-availability issue) but fail on org spaces. This matches the README's copilot_spaces authentication note:
- Fine-grained PATs are not hidden by classic PAT scope filtering, so these tools may still appear even when the token cannot use them.
- For org-owned spaces, fine-grained PATs must be installed on the owning organization and include
organization_copilot_spaces: read.- If an org-owned space contains repository-backed resources, the token must also have access to every referenced repository or the space may be treated as not found.
Root cause (hypothesis)
The app's managed github MCP token does not carry organization_copilot_spaces: read for the owning org (github), whereas the CLI's credentials do. Starring a space is a personal action and does not change the token's org scope, which is why bookmarking had no effect.
Asks
- Confirm whether the app's auto-provisioned Copilot token can include
organization_copilot_spaces: readfor orgs the user belongs to. - If not, document a supported way for a user to supply a fine-grained PAT (with that scope) to the
githubMCP server in the app context, the same way it works in the CLI. - Consider returning a distinguishable auth/permission error for org spaces instead of a generic "not found," so clients can tell "missing scope" apart from "wrong name" and guide the user.
Impact
Tools/agents that pin org-owned Spaces (e.g. an internal PM router) work in the CLI but silently fail in the app, forcing a degraded "here's the URL, open it in your browser" fallback for every org Space.
- Ngôn ngữ chính
- Go
- Star
- 33.1k
- Fork
- 5k
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 27
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/github-mcp-server
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/github-mcp-server#3235 ·
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
github/github-mcp-server#3042 · 2 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/github-mcp-server#3032 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
github/github-mcp-server#2803 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/github-mcp-server#2740 ·
Tất cả issue của github/github-mcp-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
enhancement needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
kind/cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
kubernetes-sigs/kueue#15947 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sympozium-ai/sympozium#627 ·