← Back to Tools
📃

Read Repo File

Read the contents of a file from a GitHub repository at a specific branch or commit

Developer 🐙 GitHub Output: text

Example Prompt

Read the README.md from the main branch of acme/api

Input Parameters

owner string Required

Repository owner

repo string Required

Repository name

path string Required

File path in the repository

ref string Optional

Branch, tag, or commit SHA

Install MCP Server

aivyx hub install mcp-servers/github

This tool is available after installing the GitHub MCP server.

Tags

githubfilesreadsource-code