Skip to main content
Glama

gitlab-mcp-server

get_file_contents

Retrieve file or directory contents from a GitLab project by specifying the file path, project ID, and reference. Simplify access to project data within the GitLab MCP server.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
file_pathNo
project_idNo
refNo

Input Schema (JSON Schema)

{ "properties": { "file_path": { "type": "string" }, "project_id": { "type": "string" }, "ref": { "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/yoda-digital/mcp-gitlab-server'

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