github: defer MCP tool loading instead of alwaysLoad - #95
Conversation
Remove "alwaysLoad": true from the GitHub MCP server config so its tools are loaded on demand through tool search rather than being injected into every session's context window. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R96fvxFzaMYDUy9jAivP7g
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The configuration, documentation, and required semantic version bump are consistent.
Pull request overview
Defers GitHub MCP tool loading to reduce startup context usage.
Changes:
- Removes
alwaysLoad. - Documents on-demand loading.
- Bumps the plugin minor version.
File summaries
| File | Description |
|---|---|
github/.mcp.json |
Enables deferred tool loading. |
github/README.md |
Documents the new behavior. |
github/.claude-plugin/plugin.json |
Bumps version to 1.4.0. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Removes
"alwaysLoad": truefrom the GitHub MCP server config so its tools are deferred and loaded on demand via tool search, rather than being injected into every session's context window at startup.Changes
github/.mcp.json— drop"alwaysLoad": truegithub/README.md— update the MCP Server description to reflect on-demand tool loadinggithub/.claude-plugin/plugin.json— 1.3.1 → 1.4.0 (minor: backward-compatible behavior change)The SessionStart hook is unchanged — its "prefer GitHub MCP tools over the
ghCLI and WebFetch" guidance still applies, and is arguably more useful now that the tools aren't listed upfront.Validation
claude plugin validate .— passedclaude plugin validate ./github— passednpx markdownlint-cli2ongithub/README.md— cleanGenerated by Claude Code