Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/github-mcp-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: github/github-mcp-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: hotfix/resource-fixes
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 12, 2026

  1. Fix resource handler to use deps from context

    The RepositoryResourceContentsHandler was using closure-captured deps
    instead of retrieving them from context at call time. This causes issues
    on the remote server which injects per-request deps via context.
    
    Changed to use MustDepsFromContext(ctx) pattern consistent with tool
    handlers in NewTool and NewToolFromHandler.
    SamMorrowDrums committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    fad90b7 View commit details
    Browse the repository at this point in the history
  2. fix: keep all resources registered for resources/read requests

    The ForMCPRequest optimization was incorrectly filtering resources by
    doing an exact string match between the URI template pattern and the
    concrete URI. This would never match because templates like
    'repo://{owner}/{repo}/contents{/path*}' don't match concrete URIs
    like 'repo://owner/repo/contents/file.py'.
    
    Instead of implementing template matching in the inventory, we simply
    keep all resources registered for resources/read requests and let the
    SDK handle URI template matching internally (which it already does
    correctly via uritemplate.Regexp().MatchString()).
    
    This fixes resources/read returning 'Resource not found' for valid URIs.
    SamMorrowDrums committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    3b411bc View commit details
    Browse the repository at this point in the history
Loading