fix: add explicit review tool names and additional workflow permissions

- Add explicit tool names in case wildcards aren't working properly
- Add statuses and checks write permissions to workflow
- Include both github and github_comment MCP server tools
This commit is contained in:
km-anthropic
2025-07-30 17:33:37 -07:00
parent bf8c12ecfa
commit e09345adba
2 changed files with 13 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ jobs:
contents: read contents: read
pull-requests: write pull-requests: write
issues: write issues: write
statuses: write # May be needed for some review operations
checks: write # May be needed for review checks
# Note: id-token not needed since review mode doesn't use OIDC for GitHub auth # Note: id-token not needed since review mode doesn't use OIDC for GitHub auth
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

@@ -47,7 +47,17 @@ export const reviewMode: Mode = {
}, },
getAllowedTools() { getAllowedTools() {
return ["mcp__github__*"]; return [
"mcp__github__*",
"mcp__github_comment__*",
// Explicitly list review tools in case wildcards aren't working
"mcp__github__create_pending_pull_request_review",
"mcp__github__add_comment_to_pending_review",
"mcp__github__submit_pending_pull_request_review",
"mcp__github__get_pull_request",
"mcp__github__get_pull_request_diff",
"mcp__github__get_pull_request_files"
];
}, },
getDisallowedTools() { getDisallowedTools() {