Hosted MCP cannot resolve review threads with a fine-grained PAT that succeeds via GraphQL
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- 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 từ entry point của công cụ MCP được lưu trữ để phân giải review thread và tái hiện lỗi bằng endpoint, các toolset và fine-grained PAT được liệt kê. So sánh đường dẫn cấp quyền của thao tác với mutation GraphQL resolveReviewThread hoạt động thành công. Hoàn tất khi thao tác MCP phân giải review thread bằng cùng token và giữ nguyên hành vi inline-reply hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
GitHub hosted remote MCP fails to resolve pull request review threads with a fine-grained personal access token, returning:
Resource not accessible by personal access token
The same token successfully performs both unresolveReviewThread and resolveReviewThread through GitHub GraphQL. This appears related to #2381, which reports a different hosted-MCP PR operation failing while the equivalent direct API request succeeds.
Environment
- Server: GitHub-hosted remote MCP
- Endpoint:
https://api.githubcopilot.com/mcp/ - Transport: Remote HTTP
- Client: OpenCode
- Authentication: fine-grained PAT supplied in the
Authorization: Bearerheader - MCP toolsets:
repos,issues,pull_requests - Repository:
crsiebler/pogo-gbl-analyzer - Token repository permission: Pull requests: Read and write
- Approximate failure time:
2026-09-08 05:35 UTC
Reproduction
- Configure the hosted server with
oauth: false, the endpoint above, anAuthorization: Bearer {env:GITHUB_MCP_TOKEN}header, andX-MCP-Toolsets: repos,issues,pull_requests. - Authenticate with a fine-grained PAT that has access to
crsiebler/pogo-gbl-analyzerand Pull requests: Read and write. - Read review threads for
crsiebler/pogo-gbl-analyzer#10. - Attempt to resolve
PRRT_kwDOPgvNY86gGnRDwith the MCP review-thread resolution tool. - Observe:
failed to resolve review thread: Resource not accessible by personal access token
Expected Behavior
The MCP operation resolves the review thread, matching GitHub GraphQL behavior for the same token.
Actual Behavior
The MCP operation returns a personal-access-token authorization error. Other writes succeeded in the same MCP workflow: inline replies were posted to five pull request review-comment threads.
Direct GraphQL Verification
Using the same fine-grained PAT outside MCP, unresolving the thread succeeded:
GH_TOKEN=github_pat_REDACTED gh api graphql \
-f query='mutation($threadId: ID!) {
unresolveReviewThread(input: {threadId: $threadId}) {
thread { id isResolved }
}
}' \
-f threadId='PRRT_kwDOPgvNY86gGnRD'
Response:
{
"data": {
"unresolveReviewThread": {
"thread": {
"id": "PRRT_kwDOPgvNY86gGnRD",
"isResolved": false
}
}
}
}
Resolving it again with the same token also succeeded:
GH_TOKEN=github_pat_REDACTED gh api graphql \
-f query='mutation($threadId: ID!) {
resolveReviewThread(input: {threadId: $threadId}) {
thread { id isResolved }
}
}' \
-f threadId='PRRT_kwDOPgvNY86gGnRD'
Response:
{
"data": {
"resolveReviewThread": {
"thread": {
"id": "PRRT_kwDOPgvNY86gGnRD",
"isResolved": true
}
}
}
}
Impact
Agents can reply to inline review feedback but cannot complete the normal review workflow by resolving addressed threads through the hosted GitHub MCP server, despite the configured PAT being authorized for the underlying GraphQL mutation.
Notes
- The token value is intentionally omitted.
- The hosted endpoint does not expose a locally inspectable server version.
- Inline reply timestamps immediately preceding the failure were
2026-09-08T05:35:45Zand2026-09-08T05:35:46Z.
- 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ự
-
Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenNSW/nsw-srilanka#497 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
milvus-io/birdwatcher#545 ·
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
kubernetes-sigs/prow#953 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
caddyserver/caddy#8046 ·