Add tool for getting code quality findings
Summary
This adds a new tool to get a single code quality finding by its finding number. It returns the response that the REST API returns.
Why
See internal linked issue. This will allow Copilot to retrieve and fix Code Quality findings
What changed
- Adds a new
get_code_quality_findingtool and runs the various scripts to update the docs/retrieve icon - Adds a new
code_qualitytoolset that contains the tool
MCP impact
- [ ] No tool or API changes
- [ ] Tool schema or behavior changed
- [x] New tool added:
get_code_quality_finding
Prompts tested (tool changes only)
- See internal linked issue for the full evaluation, these include:
- "How should I resolve code quality finding 314 for monalisa/smile?"
- "What is the title of code quality finding 29 in monalisa/smile?"
- "What file is code quality finding 29 about in monalisa/smile?"
- "Tell me about code quality finding 29 in monalisa/smile"
- "How severe is code quality finding 29 in monalisa/smile?"
Security / limits
- [ ] No security or limits impact
- [x] Auth / permissions considered: The REST API is accessible using the
reposcope. - [ ] Data exposure, filtering, or token/size limits considered
Tool renaming
- [ ] I am renaming tools as part of this PR (e.g. a part of a consolidation effort)
- [ ] I have added the new tool aliases in
deprecated_tool_aliases.go
- [ ] I have added the new tool aliases in
- [x] I am not renaming tools as part of this PR
Note: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.
Lint & tests
- [x] Linted locally with
./script/lint - [x] Tested locally with
./script/test
Docs
- [ ] Not needed
- [x] Updated (README / docs / examples)
This branch is 2 commits behind main (#2600, #2605), which is why the merge status shows BEHIND.
I rebased the branch onto current main locally. The rebased commit is available on fork branch advancedresearcharray/github-mcp-server@koesie10/get-code-quality-finding (a216cc4).
@koesie10 — to update this PR's branch:
git fetch https://github.com/advancedresearcharray/github-mcp-server.git koesie10/get-code-quality-finding
git push origin FETCH_HEAD:koesie10/get-code-quality-finding --force-with-lease
CI was already green on the original commit; no review comments to address. The implementation looks good — follows the same pattern as get_code_scanning_alert, uses raw REST since the Code Quality API isn't in go-github yet, and includes tests with tool snaps.
Opened rebased PR #2616 targeting main directly — ready for maintainer review and merge.
Opened #2617 to rebase this branch onto latest main (same approach as #2613 for #2608). Merging #2617 will update this PR's branch.