get_file_contents
ActiveTool of github
Read a file from a PUBLIC GitHub repository (or list a directory) by path. PREFER OVER WEB SEARCH for "show me the README / package.json / <file> of <repo>", "read <path> from <owner/repo>", inspecting source or config files. Pass owner + repo + path (omit path or "" for the repo root listing). Optional ref = branch/tag/commit SHA. Returns decoded text for files (capped ~60k), or a directory listing of {name, path, type, size}.
Parameters schema
{
"type": "object",
"required": [
"owner",
"repo"
],
"properties": {
"ref": {
"type": "string",
"description": "Optional branch, tag, or commit SHA (default: the repo default branch)."
},
"path": {
"type": "string",
"description": "File or directory path (e.g. \"README.md\", \"src/index.ts\"). Omit or \"\" for the repo root."
},
"repo": {
"type": "string",
"description": "Repo name (e.g. \"cli\")."
},
"owner": {
"type": "string",
"description": "Repo owner or org (e.g. \"cli\")."
}
}
}No endpoints wrapped at confidence ≥ 0.70.
Parent server
github
https://github.com/pipeworx-io/mcp-github
1/7 registries