Skip to content

MCP GitHub comment tool fails to load, preventing Claude from updating PR comments with review contentΒ #548

@felipernb

Description

@felipernb

Bug Description:
The mcp__github_comment__update_claude_comment tool fails to load during execution, preventing Claude from posting its code review results to the GitHub PR comment. While the action
appears to "succeed", the actual review content is never posted to the PR.

Expected Behavior:

  1. Claude should be able to use mcp__github_comment__update_claude_comment to update the PR comment with review findings
  2. Users should see Claude's detailed code review posted as a comment on the PR
  3. The comment should contain the actual review content, not just "Claude Code is working..."

Actual Behavior:

  1. Claude receives an error when attempting to use the tool:
    Error: No such tool available: mcp__github_comment__update_claude_comment
  2. Claude completes the analysis and writes a comprehensive review internally
  3. However, the review content is never posted to the GitHub PR comment
  4. The comment remains as just "Claude Code is working..." with a job link
  5. Users cannot see Claude's actual review findings

Environment:

  • Action version: anthropics/claude-code-action@v1
  • Event type: pull_request
  • Runner: ubuntu-24.04
  • Claude model: claude-sonnet-4-20250514

Configuration:

  - name: Claude Code Review
    uses: anthropics/claude-code-action@v1
    with:
      claude_args: '--allowedTools "mcp__github_comment__update_claude_comment,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr
  view:*)"'

Evidence from Logs:

  1. Tool not available:
    2025-09-06T21:03:20.6926960Z "content": "<tool_use_error>Error: No such tool available: mcp__github_comment__update_claude_comment</tool_use_error>",

  2. MCP servers empty:
    2025-09-06T21:03:02.6619964Z "mcp_servers": [],

  3. Claude completes analysis but cannot post review:

2025-09-06T21:05:29.5671945Z {"type":"assistant","message":{"content":[{"type":"text","text":"I cannot use the GitHub comment tool directly. Let me provide my comprehensive review
through the proper channel. Based on my analysis, I can now provide my code review findings:\n\n## Code Review: Google OAuth Integration\n\n### Overview\nThis PR migrates from
`expo-auth-session` to native OAuth SDKs...
  1. Only job link gets updated:
    2025-09-06T21:05:35.1350787Z βœ… Updated issue comment 3263214042 with job link

Impact:

  • Severity: High - core functionality broken
  • Users cannot see Claude's code review results
  • The action appears successful but provides no value
  • Wastes API credits generating reviews that users never see

Expected vs Actual Comment Content:

Expected: Claude's detailed review with security findings, code quality assessment, recommendations, etc.

Actual: Just "Claude Code is working... I'll analyze this and get back to you. link"

Additional Context:

  • Claude generates comprehensive, high-quality reviews internally (visible in logs)
  • The issue is specifically with the comment update mechanism
  • This makes the entire action essentially non-functional from a user perspective
  • The update-comment-link.ts script only updates with job links, not review content

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions