modelcontextprotocol / modelcontextprotocol/servers

[Git MCP] Blob or Tree named 'XXX.py^0' not found

Open
#1,682 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
90.5k
Forks
11.7k
Avg merge
2d 2h
Merged PRs (30d)
5

Description

Describe the bug
When ask LLM to use git_show tool to get some infos, get response like Blob or Tree named 'XXX.py^0' not found

  • parameter
{
  "repo_path": "/home/ahigh/work/Worker3/Workers/message_send",
  "revision": "HEAD:logic/position_realtime_infos.py"
}
  • response from Git MCP
Blob or Tree named 'position_realtime_infos.py^0' not found

Expected behavior
show correct infos

Anyone encounter this? :)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the git_show call with revision HEAD:logic/position_realtime_infos.py in the issue body, then trace how that revision is parsed before the Git lookup. Done means the request returns the file contents instead of reporting position_realtime_infos.py^0 as missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.