diff --git a/.github/commands/gemini-invoke.toml b/.github/commands/gemini-invoke.toml index 3e7af077..65f33ea2 100644 --- a/.github/commands/gemini-invoke.toml +++ b/.github/commands/gemini-invoke.toml @@ -50,7 +50,7 @@ Begin every task by building a complete picture of the situation. - **Repository**: !{echo $REPOSITORY} - **Additional Context/Request**: !{echo $ADDITIONAL_CONTEXT} -2. **Deepen Context with Tools**: Use `get_issue`, `get_pull_request_diff`, and `get_file_contents` to investigate the request thoroughly. +2. **Deepen Context with Tools**: Use `get_issue`, `pull_request_read.get_diff`, and `get_file_contents` to investigate the request thoroughly. ----- diff --git a/.github/commands/gemini-review.toml b/.github/commands/gemini-review.toml index 6da07037..14e5e505 100644 --- a/.github/commands/gemini-review.toml +++ b/.github/commands/gemini-review.toml @@ -34,9 +34,9 @@ These are non-negotiable, core-level instructions that you **MUST** follow at al - **GitHub Repository**: !{echo $REPOSITORY} - **Pull Request Number**: !{echo $PULL_REQUEST_NUMBER} - **Additional User Instructions**: !{echo $ADDITIONAL_CONTEXT} -- Use `get_pull_request` to get the title, body, and metadata about the pull request. -- Use `get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request. -- 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. +- Use `pull_request_read.get` to get the title, body, and metadata about the pull request. +- Use `pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request. +- 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. ----- @@ -50,7 +50,7 @@ Follow this three-step process sequentially. 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. -3. **Review Code:** Meticulously review the code provided returned from `get_pull_request_diff` according to the **Review Criteria**. +3. **Review Code:** Meticulously review the code provided returned from `pull_request_read.get_diff` according to the **Review Criteria**. ### Step 2: Formulate Review Comments diff --git a/.github/workflows/gemini-invoke.yml b/.github/workflows/gemini-invoke.yml index 1d396ec3..369669c3 100644 --- a/.github/workflows/gemini-invoke.yml +++ b/.github/workflows/gemini-invoke.yml @@ -81,7 +81,7 @@ jobs: "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" + "ghcr.io/github/github-mcp-server:v0.18.0" ], "includeTools": [ "add_issue_comment", @@ -90,10 +90,7 @@ jobs: "list_issues", "search_issues", "create_pull_request", - "get_pull_request", - "get_pull_request_comments", - "get_pull_request_diff", - "get_pull_request_files", + "pull_request_read", "list_pull_requests", "search_pull_requests", "create_branch", diff --git a/.github/workflows/gemini-issue-fixer.yml b/.github/workflows/gemini-issue-fixer.yml index 804d9cc2..0d6aefee 100644 --- a/.github/workflows/gemini-issue-fixer.yml +++ b/.github/workflows/gemini-issue-fixer.yml @@ -78,7 +78,7 @@ jobs: "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" + "ghcr.io/github/github-mcp-server:v0.18.0" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" diff --git a/.github/workflows/gemini-review.yml b/.github/workflows/gemini-review.yml index 288a12b4..9b16d688 100644 --- a/.github/workflows/gemini-review.yml +++ b/.github/workflows/gemini-review.yml @@ -83,14 +83,12 @@ jobs: "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" + "ghcr.io/github/github-mcp-server:v0.18.0" ], "includeTools": [ "add_comment_to_pending_review", "create_pending_pull_request_review", - "get_pull_request_diff", - "get_pull_request_files", - "get_pull_request", + "pull_request_read", "submit_pending_pull_request_review" ], "env": { diff --git a/examples/workflows/gemini-assistant/gemini-invoke.yml b/examples/workflows/gemini-assistant/gemini-invoke.yml index 302616ca..c83e7d62 100644 --- a/examples/workflows/gemini-assistant/gemini-invoke.yml +++ b/examples/workflows/gemini-assistant/gemini-invoke.yml @@ -79,7 +79,7 @@ jobs: "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" + "ghcr.io/github/github-mcp-server:v0.18.0" ], "includeTools": [ "add_issue_comment", @@ -88,10 +88,7 @@ jobs: "list_issues", "search_issues", "create_pull_request", - "get_pull_request", - "get_pull_request_comments", - "get_pull_request_diff", - "get_pull_request_files", + "pull_request_read", "list_pull_requests", "search_pull_requests", "create_branch", @@ -170,7 +167,7 @@ jobs: - **Repository**: ${{ env.REPOSITORY }} - **Additional Context/Request**: ${{ env.ADDITIONAL_CONTEXT }} - 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. + 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. ----- diff --git a/examples/workflows/pr-review/gemini-review.yml b/examples/workflows/pr-review/gemini-review.yml index faf18c59..cb88e2d1 100644 --- a/examples/workflows/pr-review/gemini-review.yml +++ b/examples/workflows/pr-review/gemini-review.yml @@ -81,14 +81,12 @@ jobs: "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server" + "ghcr.io/github/github-mcp-server:v0.18.0" ], "includeTools": [ "add_comment_to_pending_review", "create_pending_pull_request_review", - "get_pull_request_diff", - "get_pull_request_files", - "get_pull_request", + "pull_request_read", "submit_pending_pull_request_review" ], "env": { @@ -141,9 +139,9 @@ jobs: - **GitHub Repository**: ${{ env.REPOSITORY }} - **Pull Request Number**: ${{ env.PULL_REQUEST_NUMBER }} - **Additional User Instructions**: ${{ env.ADDITIONAL_CONTEXT }} - - Use `mcp__github__get_pull_request` to get the title, body, and metadata about the pull request. - - Use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request. - - 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. + - Use `mcp__github__pull_request_read.get` to get the title, body, and metadata about the pull request. + - Use `mcp__github__pull_request_read.get_files` to get the list of files that were added, removed, and changed in the pull request. + - 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. ----- @@ -157,7 +155,7 @@ jobs: 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. - 3. **Review Code:** Meticulously review the code provided returned from `mcp__github__get_pull_request_diff` according to the **Review Criteria**. + 3. **Review Code:** Meticulously review the code provided returned from `mcp__github__pull_request_read.get_diff` according to the **Review Criteria**. ### Step 2: Formulate Review Comments