Skip to content

Commit 832a975

Browse files
Add MCP tools and fix allowed_tools for Claude Code workflow
- Remove erroneous allowed_tools action input that restricted Claude to a single tool - Add mcp__github_ci__* tools to assist job for CI investigation - Review job already has inline comment MCP tool in settings Co-authored-by: Isaac
1 parent c831fb5 commit 832a975

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/claude-code.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ jobs:
108108
For specific code issues, use the mcp__github_inline_comment__create_inline_comment tool to post inline comments on the relevant lines of the diff. Always set confirmed: true. For each inline comment, be specific about the issue and suggest a fix if possible.
109109
110110
After posting inline comments, write a brief summary to a temporary file and post it with: pr-comment --body-file <path>. If you have no issues to raise, just post a short comment saying the PR looks good.
111-
allowed_tools: "mcp__github_inline_comment__create_inline_comment"
112111
claude_args: "--max-turns 100"
113112
trigger_phrase: "@claude"
114113
settings: ${{ steps.config.outputs.settings }}
@@ -162,7 +161,7 @@ jobs:
162161
id: config
163162
run: |
164163
TOOLS_JSON=$(cat << 'TOOLS'
165-
["Bash(make lint)", "Bash(make test)", "Bash(make fmt)", "Bash(make schema)", "Bash(go build *)", "Bash(go test *)", "Bash(go vet)", "Bash(go vet *)", "Bash(git add *)", "Bash(git commit *)", "Bash(git diff)", "Bash(git diff *)", "Bash(git log)", "Bash(git log *)", "Bash(git status)", "Bash(git show *)", "Bash(pr-comment *)", "Bash(pr-push)", "Bash(pr-push *)", "Bash(pr-view)", "Bash(pr-view *)", "Bash(grep *)", "Read", "Edit", "Write", "Glob", "Grep"]
164+
["mcp__github_ci__get_ci_status", "mcp__github_ci__get_workflow_run_details", "mcp__github_ci__download_job_log", "Bash(make lint)", "Bash(make test)", "Bash(make fmt)", "Bash(make schema)", "Bash(go build *)", "Bash(go test *)", "Bash(go vet)", "Bash(go vet *)", "Bash(git add *)", "Bash(git commit *)", "Bash(git diff)", "Bash(git diff *)", "Bash(git log)", "Bash(git log *)", "Bash(git status)", "Bash(git show *)", "Bash(pr-comment *)", "Bash(pr-push)", "Bash(pr-push *)", "Bash(pr-view)", "Bash(pr-view *)", "Bash(grep *)", "Read", "Edit", "Write", "Glob", "Grep"]
166165
TOOLS
167166
)
168167
SETTINGS=$(jq -n \

0 commit comments

Comments
 (0)