Hosted search_issues silently returns incorrect keyword results
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github, go
研究方向
先針對託管的 MCP 端點重現列出的 search_issues 查詢,並將其與 GitHub REST GET /search/issues 進行比較。接著追蹤 search_issues 的實作與託管請求路徑;當關鍵字查詢保留 GitHub 搜尋語意,或回傳明確的不支援查詢/錯誤訊號,而不是靜默回傳錯誤的成功結果時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Go
- 星號
- 33.1k
- 分支
- 5k
- 平均合併
- 2 天 3 小時
- 30 天內合併 PR
- 18
貢獻指南
從這裡開始
- 先讀完整個 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
-
難度 1/5 1 小時以內 新手友好度 90/100
-
enhancement
難度 2/5 1-3 小時 新手友好度 65/100
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
santhosh-tekuri/jsonschema#276 ·