Skip to content

Commit 918efa9

Browse files
fix(ci): allow inline comment MCP tool for review skill
Add --allowedTools flag to claude_args to register mcp__github_inline_comment__create_inline_comment with the action. The inline comment MCP server is conditionally initialized by claude-code-action only when this tool appears in the allowed list.
1 parent bf78314 commit 918efa9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/claude.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
- uses: anthropics/claude-code-action@v1
4848
with:
4949
anthropic_api_key: ${{ secrets.LITELLM_API_KEY }}
50-
claude_args: "--model claude-sonnet-4"
50+
claude_args: |
51+
--model claude-sonnet-4
52+
--allowedTools "mcp__github_inline_comment__create_inline_comment"
5153
custom_instructions: |
5254
When a user asks you to "review" a pull request (e.g. "@claude review",
5355
"@claude review this PR", "@claude please review"), execute the /review

0 commit comments

Comments
 (0)