github-mcp-server icon indicating copy to clipboard operation
github-mcp-server copied to clipboard

Reject Invalid Parameters

Open lieut-data opened this issue 8 months ago • 2 comments

Describe the feature or problem you’d like to solve

For better or worse, Claude Code will periodically try to find the pull request for my current branch using this:

 github:list_pull_requests(owner: "<owner>", repo: "<repo>", head: "<branch_name>", state: "open")

The problem is that list_pull_requests doesn't take a head parameter, nor does it reject the request as invalid. Instead, it happily returns all the open pull requests, immediately exhausting Claude's context window.

Proposed solution

Reject requests if unsupported parameters are provided. This would hint to the LLM that this approach is likely wrong.

lieut-data avatar Apr 30 '25 13:04 lieut-data

I was about to report this same issue, but now my question is: Why are these parameters invalid?

kblok avatar Jul 28 '25 16:07 kblok

This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.

github-actions[bot] avatar Nov 01 '25 08:11 github-actions[bot]