Skip to content

Unable to access file via get_file_contents in private repository (404 error) – organization with IP allow list #1285

@piotr-m-bielski

Description

@piotr-m-bielski

Describe the bug

We are experiencing an issue when trying to access a file in our private repository in our organization using the get_file_contents tool.

The file exists in the repository and is accessible via the GitHub web interface, but the API returns a 404 error when using get_file_contents.

Our organization has an IP allow list configured. Please advise if this restriction could be causing the issue, and how we can resolve it or work around it.

Image

Additional information:
When running the MCP server locally in Docker, this problem does not occur and the file is accessible via the tool.

Steps to reproduce the behavior

Steps to reproduce:

Try to access the file via the get_file_contents (as above).
Observe the 404 response on every repository in our organization. Traversing directory works

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