Skip to content

feat(github): add SessionStart hook to prefer MCP tools - #19

Merged
cblecker merged 1 commit into
mainfrom
worktree-dapper-mixing-valiant
Mar 2, 2026
Merged

feat(github): add SessionStart hook to prefer MCP tools#19
cblecker merged 1 commit into
mainfrom
worktree-dapper-mixing-valiant

Conversation

@cblecker

@cblecker cblecker commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a SessionStart hook to the GitHub MCP plugin that reminds Claude to prefer MCP tools over gh CLI and WebFetch for all GitHub operations
  • Includes guidance for handling raw.githubusercontent.com URLs via the get_file_contents MCP tool
  • Bumps plugin version from 1.0.0 to 1.1.0

Changes

  • github/hooks/hooks.json — New SessionStart hook with echo command
  • github/.claude-plugin/plugin.json — Version bump to 1.1.0

Test plan

  • claude plugin validate ./github passes
  • Restart Claude Code and confirm the system-reminder appears in session output

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Version updated to 1.1.0
    • Added session initialization guidance directing users to recommended tools for GitHub operations

Adds a SessionStart hook that reminds Claude to prefer GitHub MCP tools
over gh CLI and WebFetch for all GitHub operations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 2, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6a34c9f and cc4ea42.

📒 Files selected for processing (2)
  • github/.claude-plugin/plugin.json
  • github/hooks/hooks.json

Walkthrough

This PR bumps the Claude plugin version from 1.0.0 to 1.1.0 and adds a new SessionStart hook configuration that provides user guidance on preferring MCP tools over alternative GitHub CLI and WebFetch approaches.

Changes

Cohort / File(s) Summary
Plugin Version Update
github/.claude-plugin/plugin.json
Bumps plugin version from 1.0.0 to 1.1.0
Hook Configuration
github/hooks/hooks.json
Adds new SessionStart hook that displays guidance message directing users to use MCP tools (specifically get_file_contents) for GitHub operations instead of gh CLI and WebFetch, with a 5-second timeout

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 A version hops from one to one-point-one,
While hooks now whisper wisdom in the sun,
"Use MCP tools," they gently call,
For GitHub's tasks—the best choice of all! 🌟

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding a SessionStart hook to prefer MCP tools in the GitHub plugin.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch worktree-dapper-mixing-valiant

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cblecker
cblecker merged commit b646379 into main Mar 2, 2026
10 checks passed
@cblecker
cblecker deleted the worktree-dapper-mixing-valiant branch March 2, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant