You're viewing a demo portfolio

Join the waitlist
PRSM

get_file_contents

Active

Tool of github

declared in 0.1.0

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\")."
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

github

https://github.com/pipeworx-io/mcp-github

1/7 registries
View full server →
get_file_contents — github — PRSM MCP