Skip to main content
Glama

GitHub Enterprise MCP Server

get-file-contents

Retrieve file or directory contents from GitHub repositories using owner, repo, and path parameters to access code and project files.

Instructions

Get the contents of a file or directory from a GitHub repository

Input Schema

NameRequiredDescriptionDefault
branchNoBranch to get contents from
ownerYesRepository owner (username or organization)
pathYesPath to the file or directory
repoYesRepository name

Input Schema (JSON Schema)

{ "properties": { "branch": { "description": "Branch to get contents from", "type": "string" }, "owner": { "description": "Repository owner (username or organization)", "type": "string" }, "path": { "description": "Path to the file or directory", "type": "string" }, "repo": { "description": "Repository name", "type": "string" } }, "required": [ "owner", "repo", "path" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piyushgIITian/github-enterprice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server