Skip to content

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

@vedtam

Description

@vedtam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions