copilot_spaces: org-owned Spaces unreachable via the app's managed github MCP token (missing organization_copilot_spaces: read)
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- github, go
- 领域
- api, authentication, backend
调研方向
从 README 中关于 copilot_spaces 身份验证的说明以及 get_copilot_space 和 list_copilot_spaces 入口开始。将应用管理的 github MCP 令牌行为与 CLI 进行比较,重点关注 organization_copilot_spaces: read 和通用的未找到响应。完成的标准是应用支持所需的访问权限,或记录受支持的 PAT 使用路径,并在适当情况下提供可区分的权限错误。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 33.1k
- 派生
- 5k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 27
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/github-mcp-server 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
github/github-mcp-server#3235 ·
-
enhancement
难度 1/5 1 小时以内 新手友好度 88/100
github/github-mcp-server#3042 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
github/github-mcp-server#3032 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 74/100
github/github-mcp-server#2803 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
github/github-mcp-server#2740 ·
查看 github/github-mcp-server 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/registry#1654 ·
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
OpenNSW/nsw-srilanka#497 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
milvus-io/birdwatcher#545 ·
-
kind/bug
难度 2/5 1-3 小时 新手友好度 88/100
kubernetes-sigs/prow#953 · 1 条评论 ·