github / github/github-mcp-server

Unable to read the contents of a file, but can write and edit when used in ChatGPT.

未關閉
#1,383 5 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Go
星號
33k
分支
5k
平均合併
2 天 1 小時
30 天內合併 PR
52

描述

### Describe the bug

After configuring and successfully connecting the `github-mcp-server` to my ChatGPT account, I can:

- List my repositories
- List files within a repository
- Create new files
- Modify existing files

However, I **cannot retrieve the contents of an existing file**. Any attempt to get a file’s contents from the MCP only returns some metadata without the actual text content, though other GitHub operations work as expected:

```
{"text":"successfully downloaded text file (SHA: 7dab38d7c52ab273abe930b4619dc1e1dc1118c4)"}
```

### Affected version
- latest.

Image

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。