Hosted search_issues silently returns incorrect keyword results
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
- 48/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
- backend-api-design, search
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện các truy vấn search_issues được liệt kê trên MCP endpoint được host và so sánh chúng với GitHub REST GET /search/issues. Sau đó lần theo phần triển khai search_issues và đường dẫn request được host; công việc được xem là hoàn tất khi các truy vấn từ khóa giữ nguyên ngữ nghĩa tìm kiếm của GitHub hoặc trả về tín hiệu rõ ràng về truy vấn không được hỗ trợ/lỗi thay vì âm thầm trả về các kết quả thành công nhưng không chính xác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug description
The hosted GitHub MCP search_issues tool silently returns materially incorrect keyword search results while reporting incomplete_results: false.
This reproduces when calling the hosted endpoint directly, without an MCP aggregator.
Environment
- Endpoint:
https://api.githubcopilot.com/mcp - Server:
github-mcp-server - Reported version:
github-mcp-server/remote-34ac9c16f8fd3e2a5af74929de89de3a11e98f9b - Protocol negotiated:
2025-11-25 - Date verified: 2026-08-31
Reproduction
Call search_issues with ordinary GitHub issue search syntax already scoped to issues.
| Query | Hosted MCP total_count |
GitHub REST GET /search/issues |
|---|---|---|
repo:modelcontextprotocol/python-sdk transport |
0 | 410 |
repo:modelcontextprotocol/python-sdk windows |
0 | 95 |
repo:anthropics/claude-code hooks |
3 | 8016 |
memory leak |
40 | 407744 at verification time |
The three returned hooks results were titled plugins, trap, and Hook before Exit, which also does not match normal GitHub full-text search behavior.
Passing owner and repo separately with a keyword-only query produced the same incorrect results, so this is not limited to embedding repo: in query.
Qualifier-only searches such as repo:modelcontextprotocol/python-sdk label:bug return plausible counts, which makes the keyword failure easy for an agent to trust silently.
Expected behavior
search_issues should preserve GitHub issue search semantics and return counts/results consistent with the GitHub REST Search API for the same effective query, or return an explicit error/unsupported-query signal.
Actual behavior
The tool returns a successful response with incomplete_results: false, but keyword matches are missing or unrelated.
Impact
Agents can incorrectly conclude that an issue, bug report, or prior discussion does not exist. This is a correctness failure rather than only a ranking-quality difference.
- Ngôn ngữ chính
- Go
- Star
- 33.1k
- Fork
- 5k
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 25
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ự
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
kind/bug status/0-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
🤔 refinement needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
equinor/radix-operator#1979 ·