You're viewing a demo portfolio

Join the waitlist
PRSM

gitlab_get_file

Active

Tool of Gitlab

declared in 0.1.0

Fetch file content from a GitLab repository by project ID and file path (e.g., "src/main.py"). Returns decoded content, file size, name, and encoding.

Parameters schema

{
  "type": "object",
  "examples": [
    {
      "_apiKey": "your-gitlab-api-key",
      "file_path": "README.md",
      "project_id": "123"
    },
    {
      "ref": "develop",
      "_apiKey": "your-gitlab-api-key",
      "file_path": "src/main.py",
      "project_id": "123"
    }
  ],
  "required": [
    "_apiKey",
    "project_id",
    "file_path"
  ],
  "properties": {
    "ref": {
      "type": "string",
      "description": "Branch, tag, or commit SHA (default: default branch)"
    },
    "_apiKey": {
      "type": "string",
      "description": "GitLab personal access token"
    },
    "file_path": {
      "type": "string",
      "description": "Path to the file within the repository"
    },
    "project_id": {
      "type": "string",
      "description": "Project ID or URL-encoded path"
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

Gitlab

https://github.com/pipeworx-io/mcp-gitlab

1/7 registries
View full server →