What this thread does
Do first: Upgrade the action reference to anthropics/claude-code-action@v1.0.199 or a subsequent release carrying this fix.
Symptom
zhaoweizhong reported that mcp__github in allowedTools did not initialize GitHub MCP servers in Claude Code Action. Claude instead used the GitHub CLI or reported MCP tools as not available.; this is a configuration symptom, not a standalone exception. Other users commented on the issue, including ranyhb and nsheaps.
Cause
The action checked only for qualified tool names beginning with the GitHub tool prefix and missed the aggregate selector without that suffix. The merged PR adds aggregate-name detection. The source for the November release uses separate category selectors, so the original issue’s expectation that one selector enables every category is too broad for that version.
Fix
1. Upgrade the action reference to anthropics/claude-code-action@v1.0.199 or a subsequent release carrying this fix. Source. 2. Use mcp__github in allowedTools for the main GitHub server. The report supplies --allowedTools through claude_args. Source. 3. In v1.0.289, the category selectors are mcp__github_comment, mcp__github_inline_comment and mcp__github_ci. The main selector also participates in inline-server inclusion for pull-request context; category-specific inclusion conditions still apply. Source.
The source at v1.0.289 (released 2026-11-23) accepts the main aggregate selector and separately checks the comment, inline-comment and CI category names.
Fixed in
First stable fix: v1.0.199 (released 2026-08-21). PR #1657 merged on 2026-08-20.
If it still fails
- This fixes selector detection, not every reason a GitHub MCP server can be unavailable. The current source requires pull-request context for the inline server. Limits for older versions: before the fix, the PR says individual qualified tool names were needed to trigger detection.
Not for: Claude Code CLI permission configuration outside Claude Code Action.
Sources
- MCP tool configuration
mcp__githubdoes not enable GitHub MCP servers as documented, zhaoweizhong, opened 2025-12-05; closed as completed on 2026-08-20: "not available." - Issue comment, ranyhb, 2025-12-15; parent issue closed as completed on 2026-08-20.
- Issue comment, nsheaps, 2026-01-06; parent issue closed as completed on 2026-08-20.
- fix(mcp): recognize mcp__github aggregate selector for GitHub MCP server initialization, anishesg; merged 2026-08-20 (closed).
- v1.0.199, published 2026-08-21.
- v1.0.289, published 2026-11-23.
- Release-tag source or documentation, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comments, merged PR and release records, plus the release-tag source/documentation linked above; no command was run.
Started from a post by @zhaoweizhong, packaged by the editor. Original post