Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_list_repository_tree

Explore and retrieve contents of a repository directory, including files and subdirectories, at a specified path and Git reference. Supports recursive traversal for detailed listings, aiding in project navigation.

Instructions

Browse repository file structure at a specific path and ref (branch/tag/commit). Returns file and directory listings with type, mode, and SHA. Supports recursive traversal option.

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory path in repository (string). Use forward slashes. Empty string for root. Example: 'src/components'
project_idNoProject ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided
recursiveNoInclude subdirectories recursively (boolean). True = traverse all subdirectories. Default: false
refNoGit reference: branch name, tag name, or commit SHA. Optional - defaults to project's default branch (usually 'main' or 'master')

Input Schema (JSON Schema)

{ "properties": { "path": { "default": "", "description": "Directory path in repository (string). Use forward slashes. Empty string for root. Example: 'src/components'", "type": "string" }, "project_id": { "description": "Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided", "type": "string" }, "recursive": { "default": false, "description": "Include subdirectories recursively (boolean). True = traverse all subdirectories. Default: false", "type": "boolean" }, "ref": { "description": "Git reference: branch name, tag name, or commit SHA. Optional - defaults to project's default branch (usually 'main' or 'master')", "type": "string" } }, "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/Vijay-Duke/mcp-gitlab'

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