From a5ff0c23b873d418c58ffceb99fe91a9669e4539 Mon Sep 17 00:00:00 2001 From: jnasbyupgrade Date: Mon, 10 Aug 2026 13:51:51 -0500 Subject: [PATCH] claude-code-review.yml: allow the inline-comment MCP tool so review comments post individually Without --allowedTools mcp__github_inline_comment__create_inline_comment in claude_args, the code-review plugin's agent-mode run never starts the inline-comment MCP server, so every review silently falls back to one consolidated PR comment instead of real per-line inline comments -- no error, no warning either way. Already fixed the same way in cat_tools, object_reference, extension_tools, test_factory, and pg_count_nulls. --- .github/workflows/claude-code-review.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 17dfb68..b9524af 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -120,3 +120,14 @@ jobs: # provided, so no GitHub comments were posted"). Every review run # before this fix has been silently invisible on GitHub. prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' + # A direct `prompt:` (no @claude mention) runs the action in "agent + # mode". In that mode, claude-code-action only installs the + # github_inline_comment MCP server if it sees + # mcp__github_inline_comment__create_inline_comment listed in an + # --allowedTools flag inside claude_args (src/modes/agent/parse-tools.ts) -- + # it does NOT look at the code-review plugin's own `allowed-tools` + # frontmatter to decide that. Without this, the MCP server never + # starts, the tool genuinely doesn't exist in the session, and the + # plugin silently falls back to one consolidated PR comment instead + # of real inline line comments. + claude_args: '--allowedTools mcp__github_inline_comment__create_inline_comment'