getRepoAllDirectoriesLABSCO SUMMARY
A way to let a model read a repository you have not cloned.
The three tools split by scope — everything, one directory, one file — which is what stops a large repository from arriving in a single response. There is no search and no history here: you navigate by path, so it works best when you already know roughly where in the tree to look.
What it is
A three-tool reader over a GitHub repository addressed by repoUrl: the whole directory listing, one directory, or one file.
What you get
- Every directory in a repository, from its URL alone
- The entries under one path, for when the full tree is more than the question needs
- The contents of a single file by path
Requirements
No account and no key. Each call carries the repoUrl, so the repository has to be one that can be read without authentication, and you supply the URL rather than configuring a default.
Setup effort
One command — npx github-repo-mcp
USE CASES
Getting oriented in a repository you have never opened
Pull the whole directory listing to see how the project is laid out, then open the one directory that looks like where the answer lives.
Reading one file from a project you have not cloned
Fetch the file by path when you know exactly what you want — an implementation someone linked, a config you are copying, a licence you need to check.
3 tools
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
getRepoDirectoriesgetRepoFileBEFORE YOU INSTALL
What to know first
Tools you get
3 tools when we connected. All three only read public repositories. Binary files are not displayed, and GitHub's API limits how large a retrievable file can be.
Requires
- npx on PATH
- Node.js 18+
Where it runs
The documented client runs the server on your machine.
CONTEXT COST
Light Standing cost
Rated by the size of the 3 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Connect your client
Server setup
npx github-repo-mcpMCP Clients
Cursor — Windows via WSL
{
"mcpServers": {
"github-repo-mcp": {
"command": "wsl",
"args": [
"bash",
"-c",
"cmd /c npx -y github-repo-mcp"
],
"enabled": true
}
}
}