From 92470473fe7ec7604defcf1a99dd33063023e61a Mon Sep 17 00:00:00 2001 From: jnasbyupgrade Date: Wed, 5 Aug 2026 17:21:13 -0500 Subject: [PATCH] CI: register inline-comment MCP tool for claude-code-review The review step drives claude-code-action with a bare prompt: (no @claude mention), which runs it in "agent mode". That mode decides which MCP servers to start from an --allowedTools flag inside claude_args, not from the invoked plugin's own allowed-tools frontmatter. Without mcp__github_inline_comment__create_inline_comment listed there, that MCP server never starts, so the code-review plugin silently falls back to one consolidated PR comment instead of real per-line inline comments. --- .github/workflows/claude-code-review.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 6585d24..cc3cb90 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -99,6 +99,15 @@ jobs: # marketplace repo's default branch (upstream anthropics/claude-code). plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' + # A bare `prompt:` with no @claude mention runs the action in "agent + # mode", which starts MCP servers based on an --allowedTools flag + # inside claude_args -- it does not look at the invoked plugin's own + # allowed-tools frontmatter. Without this, the github_inline_comment + # MCP server never starts, so mcp__github_inline_comment__create_inline_comment + # doesn't exist in the session at all, and the code-review plugin + # silently falls back to a single consolidated PR comment instead of + # real per-line inline comments (no error, no warning either way). + claude_args: '--allowedTools mcp__github_inline_comment__create_inline_comment' # --comment is required: without it, the code-review plugin only # prints its findings to the job log and never posts anything to # the PR (confirmed by capturing the hidden SDK transcript on a