gitlab-clone-mcp-server
v1.1.0Model Context Protocol server for GitLab API integration
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_project
Create a new GitLab project. Args: name: Project name description: Project description (optional) visibility: Project visibility (private, internal, public) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
name * | string | |
ctx | string | |
description | string | |
token | string | |
visibility | string |
delete_project
Delete a GitLab project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
list_projects
List GitLab projects. Args: owned: If True, only show owned projects. If False, show all accessible projects. per_page: Number of projects per page (max 100) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
ctx | string | |
owned | boolean | |
per_page | integer | |
token | string |
get_project_issues
Get issues for a GitLab project. Args: project_id: GitLab project ID state: Issue state (opened, closed, all) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
state | string | |
token | string |
get_merge_requests
Get merge requests for a GitLab project. Args: project_id: GitLab project ID state: MR state (opened, closed, merged, all) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
state | string | |
token | string |
create_issue
Create a new issue in a GitLab project. Args: project_id: GitLab project ID title: Issue title description: Issue description (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
title * | string | |
ctx | string | |
description | string | |
token | string |
get_pipelines
Get CI/CD pipelines for a GitLab project. Args: project_id: GitLab project ID status: Pipeline status (running, pending, success, failed, canceled, skipped) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
status | string | |
token | string |
get_project_branches
Get branches for a GitLab project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
list_groups
List GitLab groups. Args: per_page: Number of groups per page (max 100) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
ctx | string | |
per_page | integer | |
token | string |
get_group_members
Get members of a GitLab group. Args: group_id: GitLab group ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | |
ctx | string | |
token | string |
get_repository_files
Get repository files and directories. Args: project_id: GitLab project ID path: Directory path (optional) ref: Branch/tag reference (default: main) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
path | string | |
ref | string | |
token | string |
get_file_content
Get content of a repository file. Args: project_id: GitLab project ID file_path: Path to the file ref: Branch/tag reference (default: main) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
project_id * | integer | |
ctx | string | |
ref | string | |
token | string |
get_commits
Get recent commits for a project. Args: project_id: GitLab project ID ref_name: Branch name (default: main) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
ref_name | string | |
token | string |
create_commit
Create a commit with file changes. Args: project_id: GitLab project ID branch: Target branch commit_message: Commit message file_path: Path to the file file_content: File content action: Action (create, update, delete) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_message * | string | |
file_content * | string | |
file_path * | string | |
project_id * | integer | |
action | string | |
ctx | string | |
token | string |
create_branch
Create a new branch. Args: project_id: GitLab project ID branch_name: New branch name ref: Source branch/commit (default: main) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | |
project_id * | integer | |
ctx | string | |
ref | string | |
token | string |
delete_branch
Delete a branch. Args: project_id: GitLab project ID branch_name: Branch name to delete token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | |
project_id * | integer | |
ctx | string | |
token | string |
create_merge_request
Create a merge request. Args: project_id: GitLab project ID source_branch: Source branch target_branch: Target branch title: MR title description: MR description (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
source_branch * | string | |
target_branch * | string | |
title * | string | |
ctx | string | |
description | string | |
token | string |
merge_merge_request
Merge a merge request. Args: project_id: GitLab project ID merge_request_iid: Merge request IID merge_commit_message: Custom merge commit message (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
merge_request_iid * | integer | |
project_id * | integer | |
ctx | string | |
merge_commit_message | string | |
token | string |
create_tag
Create a new tag. Args: project_id: GitLab project ID tag_name: Tag name ref: Source branch/commit message: Tag message (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ref * | string | |
tag_name * | string | |
ctx | string | |
message | string | |
token | string |
get_pipeline_jobs
Get jobs for a specific pipeline. Args: project_id: GitLab project ID pipeline_id: Pipeline ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
pipeline_id * | integer | |
project_id * | integer | |
ctx | string | |
token | string |
trigger_pipeline
Trigger a new pipeline. Args: project_id: GitLab project ID ref: Branch/tag to run pipeline on (default: main) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
ref | string | |
token | string |
get_current_user
Get current user information. Args: token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
ctx | string | |
token | string |
search_projects
Search for projects. Args: query: Search query token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
query * | string | |
ctx | string | |
token | string |
get_project_milestones
Get project milestones. Args: project_id: GitLab project ID state: Milestone state (active, closed, all) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
state | string | |
token | string |
get_project_labels
Get project labels. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
list_project_hooks
List project webhooks. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
update_project
Update project settings. Args: project_id: GitLab project ID name: New project name (optional) description: New description (optional) visibility: New visibility (private, internal, public) (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
description | string | |
name | string | |
token | string | |
visibility | string |
fork_project
Fork a project. Args: project_id: GitLab project ID to fork namespace: Target namespace (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
namespace | string | |
token | string |
archive_project
Archive a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
unarchive_project
Unarchive a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
create_file
Create a new file in repository. Args: project_id: GitLab project ID file_path: Path for the new file content: File content branch: Target branch commit_message: Commit message token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_message * | string | |
content * | string | |
file_path * | string | |
project_id * | integer | |
ctx | string | |
token | string |
update_file
Update an existing file in repository. Args: project_id: GitLab project ID file_path: Path to the file content: New file content branch: Target branch commit_message: Commit message token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_message * | string | |
content * | string | |
file_path * | string | |
project_id * | integer | |
ctx | string | |
token | string |
delete_file
Delete a file from repository. Args: project_id: GitLab project ID file_path: Path to the file branch: Target branch commit_message: Commit message token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_message * | string | |
file_path * | string | |
project_id * | integer | |
ctx | string | |
token | string |
get_repository_tags
Get repository tags. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
delete_tag
Delete a tag. Args: project_id: GitLab project ID tag_name: Tag name to delete token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
tag_name * | string | |
ctx | string | |
token | string |
compare_branches
Compare two branches. Args: project_id: GitLab project ID from_branch: Source branch to_branch: Target branch token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
from_branch * | string | |
project_id * | integer | |
to_branch * | string | |
ctx | string | |
token | string |
revert_commit
Revert a commit. Args: project_id: GitLab project ID commit_sha: Commit SHA to revert branch: Target branch for revert token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_sha * | string | |
project_id * | integer | |
ctx | string | |
token | string |
cherry_pick_commit
Cherry-pick a commit. Args: project_id: GitLab project ID commit_sha: Commit SHA to cherry-pick branch: Target branch for cherry-pick token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
branch * | string | |
commit_sha * | string | |
project_id * | integer | |
ctx | string | |
token | string |
update_issue
Update an issue. Args: project_id: GitLab project ID issue_iid: Issue IID title: New title (optional) description: New description (optional) state_event: State change (close, reopen) (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | |
project_id * | integer | |
ctx | string | |
description | string | |
state_event | string | |
title | string | |
token | string |
close_issue
Close an issue. Args: project_id: GitLab project ID issue_iid: Issue IID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
issue_iid * | integer | |
project_id * | integer | |
ctx | string | |
token | string |
clone_repository
Clone a GitLab repository to local path. Args: project_id: GitLab project ID local_path: Local directory path (optional, defaults to project name) use_ssh: Use SSH URL instead of HTTPS (default: False) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
local_path | string | |
token | string | |
use_ssh | boolean |
clone_group_repositories
Clone all repositories from a GitLab group. Args: group_id: GitLab group ID base_path: Base directory for cloned repos (default: ./repos) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
group_id * | integer | |
base_path | string | |
ctx | string | |
token | string |
get_project
Get detailed information about a specific project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
star_project
Star a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
unstar_project
Unstar a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
list_user_projects
List projects owned by a specific user. Args: user_id: GitLab user ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | |
ctx | string | |
token | string |
list_starred_projects
List projects starred by a specific user. Args: user_id: GitLab user ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | |
ctx | string | |
token | string |
get_project_languages
Get programming languages used in a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
get_project_forks
List forks of a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
transfer_project
Transfer a project to a new namespace. Args: project_id: GitLab project ID namespace: Target namespace (user or group) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
namespace * | string | |
project_id * | integer | |
ctx | string | |
token | string |
get_project_users
Get users with access to a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | |
ctx | string | |
token | string |
list_group_projects
List projects in a group by group name. Args: group_name: GitLab group name or path per_page: Number of projects per page (max 100) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)
| Parameter | Type | Description |
|---|---|---|
group_name * | string | |
ctx | string | |
per_page | integer | |
token | string |