Skip to main content
Glama

get_file_contents

Retrieve file or directory contents from a GitLab project by specifying the project ID, file path, and branch/tag reference.

Instructions

Get the contents of a file or directory from a GitLab project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID or complete URL-encoded path to project
file_pathYesPath to the file or directory
refNoBranch/tag/commit to get contents from

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/zereight/gitlab-mcp'

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