Skip to main content
Glama

MCP GitLab Server

by Vijay-Duke

gitlab_list_commits

Retrieve commit history for GitLab projects or branches, filtered by date range, author, file path, or paginated results. Provides SHA, message, timestamp, author, and stats for each commit.

Instructions

List commit history for a project or specific branch/tag. Filter by date range (since/until), file path, author, and paginate results. Returns commit SHA, message, author, timestamp, and stats.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (integer, ≥1, default: 1)
pathNoFilter commits affecting this file path (string). Shows only commits that modified this file. Example: 'src/main.py'
per_pageNoNumber of results per page (integer, 1-100, default: 20)
project_idNoProject ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided
ref_nameNoGit reference: branch name, tag name, or tag name. Optional - defaults to project's default branch (usually 'main' or 'master')
sinceNoStart date for filtering (string, ISO 8601 format). Example: '2024-01-01' or '2024-01-01T00:00:00Z'
untilNoEnd date for filtering (string, ISO 8601 format). Example: '2024-12-31' or '2024-12-31T23:59:59Z'

Input Schema (JSON Schema)

{ "properties": { "page": { "default": 1, "description": "Page number for pagination (integer, ≥1, default: 1)", "minimum": 1, "type": "integer" }, "path": { "description": "Filter commits affecting this file path (string). Shows only commits that modified this file. Example: 'src/main.py'", "type": "string" }, "per_page": { "default": 50, "description": "Number of results per page (integer, 1-100, default: 20)", "maximum": 100, "minimum": 1, "type": "integer" }, "project_id": { "description": "Project ID (integer) or path (string like 'group/project'). Optional - auto-detects from current git repository if not provided", "type": "string" }, "ref_name": { "description": "Git reference: branch name, tag name, or tag name. Optional - defaults to project's default branch (usually 'main' or 'master')", "type": "string" }, "since": { "description": "Start date for filtering (string, ISO 8601 format). Example: '2024-01-01' or '2024-01-01T00:00:00Z'", "type": "string" }, "until": { "description": "End date for filtering (string, ISO 8601 format). Example: '2024-12-31' or '2024-12-31T23:59:59Z'", "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