From aa78efc0d04a8099542d253df9a2a11f25c08091 Mon Sep 17 00:00:00 2001 From: musingfox Date: Sun, 11 Oct 2026 00:07:09 +0800 Subject: [PATCH] fix(ci): let the claude review post its inline comments claude-code-action starts the github_inline_comment MCP server only when claude_args --allowedTools names it. With no claude_args the code-review plugin's comment tool was missing, Claude fell back to gh api, and that call was denied, so a found bug never reached the PR (run 38066240558). Also turns show_full_output back off. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/claude-code-review.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 321fabc..ca25c5b 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -39,7 +39,12 @@ jobs: plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' - show_full_output: true + # The action starts its inline-comment MCP server only when --allowedTools + # names it; without it the plugin's comment tool is missing and Claude falls + # back to `gh api`, which is denied. The list mirrors the plugin's own + # allowed-tools frontmatter. + claude_args: | + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)" # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options