You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a private repo and MCP is able to tell me information about open PRs. However, when I want to find the specific PR or commit where a particular code change was introduced, such as a metric app.my_metric.health, the agent fails to find any PRs or commits. Here's my prompt:
Link me to the PR in foo/bar where the "app.my_metric.health" metric was added
The agent stumbles on this prompt. It first tries to find the local file where the metric is located which it finds correctly but then it runs search_code on the remote repo, then search_issues and then search_code again showing me the same local file location. It repeats the previous 3 external search calls again before finally giving up with:
Unfortunately, I wasn't able to identify the specific PR where this metric was introduced using the available tools.
Affected version
Please run docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version and paste the output below
server version v0.1.1 (7ab5d968e065f13a660cd123c2c5d0be6d8b6dbd) 2025-04-07T16:05:10Z
I've tried both latest and main. In main, the agent searches the git log locally for a commit containing the code change.
Steps to reproduce the behavior
Install the MCP server and give it a PAT with access to read repos
Confirm that token is valid since agent is able to find info about open PRs
Ask agent to look for a specific metric in the code (or any code really)
Observe agent goes into loop, first checking for local file and then issuing external calls to GitHub
Agent eventually gives up and is unable to find requested information.
Expected vs actual behavior
Agent should be able to list the PR or commit in which a code change was added. Ideally it should be able to provide a link to the commit/PR.
Logs
Paste any available logs. Redact if needed.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a private repo and MCP is able to tell me information about open PRs. However, when I want to find the specific PR or commit where a particular code change was introduced, such as a metric
app.my_metric.health
, the agent fails to find any PRs or commits. Here's my prompt:The agent stumbles on this prompt. It first tries to find the local file where the metric is located which it finds correctly but then it runs
search_code
on the remote repo, thensearch_issues
and thensearch_code
again showing me the same local file location. It repeats the previous 3 external search calls again before finally giving up with:Affected version
Please run
docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version
and paste the output belowI've tried both latest and main. In main, the agent searches the git log locally for a commit containing the code change.
Steps to reproduce the behavior
Expected vs actual behavior
Agent should be able to list the PR or commit in which a code change was added. Ideally it should be able to provide a link to the commit/PR.
Logs
Paste any available logs. Redact if needed.
The text was updated successfully, but these errors were encountered: