Skip to content

Claude Code workflow (.github/workflows/claude.yml) lost in the v2 tree swap — @claude no longer triggers #1850

Description

@cliffhall

Same regression class as #1843 (SECURITY.md): the v2 tree swap in #1817 replaced the default branch's tree, and .github/workflows/claude.yml did not exist in the v2 tree, so it was silently removed from main.

Impact

@claude mentions no longer trigger anything, repo-wide — on any PR or issue. issue_comment / pull_request_review_comment / issues events always run workflows from the default branch, so the loss on main disables the integration everywhere, including for PRs targeting v2/main.

Evidence

  • The workflow's API state is now deleted:
    gh api repos/modelcontextprotocol/inspector/actions/workflows/173749385 --jq "{name, path, state}"
    # => {"name":"Claude Code","path":".github/workflows/claude.yml","state":"deleted"}
  • Its last three runs (all issue_comment, latest 2026-07-28T03:10:05Z) are skipped.
  • The last commit carrying the file, ac3c1a12 ("Bump to version 1.0.0", Bump to version 1.0.0 #1720), is not an ancestor of current main.
  • .github/workflows/ on main today contains only main.yml.
  • Reproduced live: two @claude review comments on fix(core): mirror SEP-2243 x-mcp-header args to Mcp-Param-* on tools/call #1847 (19:08 and 19:10 UTC) produced no bot reply and no workflow run.

The last successful run was on #1825 (run 30315124707), which is where the file content can be recovered from:

gh api "repos/modelcontextprotocol/inspector/contents/.github/workflows/claude.yml?ref=ac3c1a12" --jq .content | base64 -d

Fix

Restore .github/workflows/claude.yml to main verbatim from ac3c1a12 (3592 bytes). The @claude trigger is gated to OWNER / MEMBER / COLLABORATOR author associations, which remains the behavior we want under the issues-only contribution model (#1820).

Worth a look at whether anything else went missing in the same swap — SECURITY.md and this file are two instances of one pattern, and neither was caught by CI.

Metadata

Metadata

Assignees

Labels

v2Issues and PRs for v2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions