Repository navigation
Conversation
claude-code-action merges --mcp-config values with its own inline servers and drops file paths, so the Jira server from mcp.json was silently ignored. Pass it as inline JSON instead (credentials still expanded from env by Claude Code), check Jira access before the review, and log MCP server/tool status after each run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The incremental review diffed from the last reviewed commit, so merging main into a PR made Claude re-review everything that came from main. Compute the range in a step instead: whole PR first time, then the author's changes since the last review, diffed against the last reviewed commit merged with the same base (git merge-tree). A push that only merges the base skips the review; conflicts fall back to the whole PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes to
.github/workflows/claude-review.yml, in separate commits.1. Jira context never reached Claude
The summaries on #1585 and #1586 both say "The Jira tool wasn't available in this run".
claude-code-actionmerges--mcp-configvalues with its own built-in server and drops any value that is a file path (mergeMcpConfigsinbase-action/src/parse-sdk-options.ts). Our Jira server was in$RUNNER_TEMP/mcp.json, so it was silently ignored.Credentials still never appear in args or logs. Claude Code fills in the
${JIRA_*}placeholders from the step's environment.2. Merging
maininto a PR re-reviewed all of main's changesThe next review diffed
<last reviewed>..HEAD, which includes everything merged in frommain. The range is now computed in a step before Claude runs:Claude gets the exact
git diffcommand and the range label in the prompt, instead of working out the range itself. With no previous summary, the first review is now the whole PR. Before, it was only the last push, so a PR whose first review failed never got a full review.Evidence
--mcp-configprobe server sawcfg=expanded-ok inherit=inherited-ok. The action'sshell-quoteparsing keeps the inline JSON intact, and--allowedToolsis unchanged.ghfor the comment lookup:Not tested on GitHub: the action skips itself on PRs that change its own workflow file, so this takes effect after merge.
Merge Danger
Door: two-way. Revert to restore the previous behaviour.
Blast Radius: review job only.
mcp-atlassian.🤖 Generated with Claude Code