Skip to main content
Glama

get_repository_tree

List files and directories in a Git repository to explore its structure. Specify a path, branch, or use recursive mode to view the complete file tree.

Instructions

List files and directories in a repository. Use recursive=true to get full tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo")
pathNoPath inside repository (default: root)
refNoBranch name, tag, or commit SHA
recursiveNoGet tree recursively (default: false)
pageNoPage number (default: 1)
per_pageNoItems per page (default: 20, max: 100)

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/Ray0907/git-mcp-server'

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