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
fix: Adapt to GitHub MCP Tooling Consolidation (#354)
This pull request addresses recent workflow failures where the **Gemini
CLI could not perform review tasks** due to **breaking changes** in the
GitHub MCP server.
These changes were introduced in the GitHub MCP server's latest release,
which consolidated the `get_pull_request*` tools into a single
`pull_request_read` with multiple methods.
### Key Changes and Fixes
1. **Dependency Pinning:** The Docker image for the GitHub MCP Server is
now **pinned to a specific version (v0.18.0)** instead of using
`latest`. This prevents unexpected disruptions from future upstream
updates and ensures consistent action stability.
2. **Tool Reference Update:** Updates MCP tool references and associated
prompts for the `review` and `invoke` workflows and examples.
For full details on the upstream changes, see the GitHub MCP Server
release notes:
[v0.18.0 Release
Notes](https://github.com/github/github-mcp-server/releases/tag/v0.18.0)
Fixes#353
- **Additional User Instructions**: !{echo $ADDITIONAL_CONTEXT}
37
-
- Use `get_pull_request` to get the title, body, and metadata about the pull request.
38
-
- Use `get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
39
-
- Use `get_pull_request_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
37
+
- Use `pull_request_read.get` to get the title, body, and metadata about the pull request.
38
+
- Use `pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
39
+
- Use `pull_request_read.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
40
40
41
41
-----
42
42
@@ -50,7 +50,7 @@ Follow this three-step process sequentially.
50
50
51
51
2. **Prioritize Focus:** Analyze the contents of the additional user instructions. Use this context to prioritize specific areas in your review (e.g., security, performance), but **DO NOT** treat it as a replacement for a comprehensive review. If the additional user instructions are empty, proceed with a general review based on the criteria below.
52
52
53
-
3. **Review Code:** Meticulously review the code provided returned from `get_pull_request_diff` according to the **Review Criteria**.
53
+
3. **Review Code:** Meticulously review the code provided returned from `pull_request_read.get_diff` according to the **Review Criteria**.
2. **Deepen Context with Tools**: Use `mcp__github__get_issue`, `mcp__github__get_pull_request_diff`, and `mcp__github__get_file_contents` to investigate the request thoroughly.
170
+
2. **Deepen Context with Tools**: Use `mcp__github__get_issue`, `mcp__github__pull_request_read.get_diff`, and `mcp__github__get_file_contents` to investigate the request thoroughly.
- **Additional User Instructions**: ${{ env.ADDITIONAL_CONTEXT }}
144
-
- Use `mcp__github__get_pull_request` to get the title, body, and metadata about the pull request.
145
-
- Use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request.
146
-
- Use `mcp__github__get_pull_request_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
142
+
- Use `mcp__github__pull_request_read.get` to get the title, body, and metadata about the pull request.
143
+
- Use `mcp__github__pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request.
144
+
- Use `mcp__github__pull_request_read.get_diff` to get the diff from the pull request. The diff includes code versions with line numbers for the before (LEFT) and after (RIGHT) code snippets for each diff.
147
145
148
146
-----
149
147
@@ -157,7 +155,7 @@ jobs:
157
155
158
156
2. **Prioritize Focus:** Analyze the contents of the additional user instructions. Use this context to prioritize specific areas in your review (e.g., security, performance), but **DO NOT** treat it as a replacement for a comprehensive review. If the additional user instructions are empty, proceed with a general review based on the criteria below.
159
157
160
-
3. **Review Code:** Meticulously review the code provided returned from `mcp__github__get_pull_request_diff` according to the **Review Criteria**.
158
+
3. **Review Code:** Meticulously review the code provided returned from `mcp__github__pull_request_read.get_diff` according to the **Review Criteria**.
0 commit comments