Skip to main content
Glama

get_repository_tree

Retrieve a GitHub repository's directory structure and file listing by SHA or branch name. Use recursive mode to obtain complete nested file trees for comprehensive repository analysis.

Instructions

Get a repository tree (directory listing) by SHA or branch name. Set recursive=True to get the full nested file tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner
repoYesRepository name
tree_shaYesSHA of the tree, commit, or branch name (e.g. 'main')
recursiveNoRecursively get all nested trees

Latest Blog Posts

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/software-engineer-mj/github-mcp'

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