Skip to content

claude-code-review.yml: register the inline-comment MCP server via claude_args - #62

Merged
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:worktree-bright-rolling-church
Aug 1, 2026
Merged

claude-code-review.yml: register the inline-comment MCP server via claude_args#62
jnasbyupgrade merged 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:worktree-bright-rolling-church

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

The workflow invokes claude-code-action with an explicit prompt (agent mode, no @claude mention). In agent mode the action only installs the github_inline_comment MCP server when it sees mcp__github_inline_comment__create_inline_comment listed in a --allowedTools flag inside claude_args -- it does not read the code-review plugin's own allowed-tools frontmatter to decide that. Since claude_args was never set, the MCP server never started, so mcp__github_inline_comment__create_inline_comment did not exist as a callable tool. This made every review since the plugin switch fall back to one consolidated PR comment ("inline line comments were not available in this environment") instead of real per-line comments, e.g. #58 (comment)

Confirmed by reading claude-code-action's source (src/mcp/install-mcp-server.ts's prepareMcpConfig and src/modes/agent/parse-tools.ts's parseAllowedTools).

Test plan

  • Verified the diff is valid YAML
  • Per .github/workflows/CLAUDE.md, a pull_request_target workflow always runs the file version on the base branch, so this PR's own claude-review check cannot prove the fix took effect -- verify on the next PR after this merges to master (look for real inline comments instead of a single consolidated one)

…aude_args

The workflow invokes claude-code-action with an explicit prompt (agent mode,
no @claude mention). In agent mode the action only installs the
github_inline_comment MCP server when it sees
mcp__github_inline_comment__create_inline_comment listed in a --allowedTools
flag inside claude_args -- it does not read the code-review plugin's own
allowed-tools frontmatter to decide that. Since claude_args was never set,
the MCP server never started, so mcp__github_inline_comment__create_inline_comment
did not exist as a callable tool. This made every review since the plugin
switch fall back to one consolidated PR comment ("inline line comments were
not available in this environment") instead of real per-line comments, e.g.
Postgres-Extensions#58 (comment)

Confirmed by reading claude-code-action's source
(src/mcp/install-mcp-server.ts's prepareMcpConfig and
src/modes/agent/parse-tools.ts's parseAllowedTools): this repo's
pull_request_target design (see .github/workflows/CLAUDE.md) means the fix
can only be verified from a subsequent PR after this merges to master, since
GitHub always runs a pull_request_target workflow file from the base branch.
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d47b60a8-44ef-4cb2-9026-5f90e9ec8ce1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@jnasbyupgrade
jnasbyupgrade merged commit 58e7b65 into Postgres-Extensions:master Aug 1, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant