Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_get_current_project

Auto-detect and fetch GitLab project details from a local git repository by examining git remotes. Works without parameters, identifying GitLab URLs and retrieving project data via API.

Instructions

Auto-detect project from git repository Returns: Same as gitlab_get_project Use when: Working in a git repo with GitLab remote No parameters needed: Examines git remotes

How it works:

  1. Checks git remotes in current/specified directory

  2. Identifies GitLab URLs

  3. Fetches project details from API

Related tools:

  • gitlab_get_project: When you know the project ID

  • gitlab_list_projects: Browse available projects

Input Schema

NameRequiredDescriptionDefault
pathNoLocal git repository path Type: string Format: Absolute or relative file system path Default: '.' (current directory) Examples: - '.' (current directory) - '/home/user/projects/my-app' (absolute path) - '../other-project' (relative path) - '~/repos/gitlab-project' (home directory) Use case: Detect project from a different directory

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "Local git repository path\nType: string\nFormat: Absolute or relative file system path\nDefault: '.' (current directory)\nExamples:\n - '.' (current directory)\n - '/home/user/projects/my-app' (absolute path)\n - '../other-project' (relative path)\n - '~/repos/gitlab-project' (home directory)\nUse case: Detect project from a different directory", "type": "string" } }, "type": "object" }

Other Tools from MCP GitLab Server

Related Tools

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