- Notifications
You must be signed in to change notification settings - Fork3.1k
Closed
Description
Describe the bug
It's not able to resolve a file.
Affected version
GitHub MCP Server
Version: v0.10.0
Commit:45e90ae
Build Date: 2025-08-01T14:36:17Z
Steps to reproduce the behavior
- Type "Read file X in repo Y"
Expected vs actual behavior
File should be correctly retrieved from the Github.
Logs
⏺ I found the file localenv.config.yaml. Let me read its contents:⏺ github_twdcgrid - Get file or directory contents (MCP)(owner: "COST", repo: "baymax", path: "localenv.config.yaml") ⎿ Path did not point to a file or directory, but resolved git ref to {"Ref":"refs/heads/main","SHA":"b32ec16443d8f6fef6ba16913d33f0abfc3aa02d"} with possible path matches: [" localenv.config.yaml"] ⎿ Interrupted by user> supply "Ref":"refs/heads/main"✻ Thinking… The user wants me to supply the ref parameter with "refs/heads/main" when making the request to get the file contents.⏺ github_twdcgrid - Get file or directory contents (MCP)(owner: "COST", repo: "baymax", path: "localenv.config.yaml", ref: "refs/heads/main") ⎿ Path did not point to a file or directory, but resolved git ref to {"Ref":"refs/heads/main","SHA":"b32ec16443d8f6fef6ba16913d33f0abfc3aa02d"} with possible path matches: [" localenv.config.yaml"] ⎿ Interrupted by user> supply sha as well✻ Thinking… The user wants me to supply the SHA as well when making the request. Let me use the SHA that was returned in the previous response.⏺ github_twdcgrid - Get file or directory contents (MCP)(owner: "COST", repo: "baymax", path: "localenv.config.yaml", sha: "b32ec16443d8f6fef6ba16913d33f0abfc3aa02d") ⎿ Path did not point to a file or directory, but resolved git ref to {"Ref":"","SHA":"b32ec16443d8f6fef6ba16913d33f0abfc3aa02d"} with possible path matches: ["localenv.config .yaml"] ⎿ Interrupted by user> sha and ref✻ Thinking… The user wants me to supply both sha and ref parameters. Let me try that.⏺ github_twdcgrid - Get file or directory contents (MCP)(owner: "COST", repo: "baymax", path: "localenv.config.yaml", ref: "refs/heads/main", sha: "b32ec16443d8f6fef6ba16913d33f0abfc3aa02d") ⎿ Path did not point to a file or directory, but resolved git ref to {"Ref":"","SHA":"b32ec16443d8f6fef6ba16913d33f0abfc3aa02d"} with possible path matches: ["localenv.config .yaml"] ⎿ Interrupted by user