gitlab-clone-mcp-server

v1.1.0
gitlab-clone-mcp-server Checked 23 hours ago Published 1 year ago

Model 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)

ParameterTypeDescription
name *string
ctxstring
descriptionstring
tokenstring
visibilitystring

delete_project

Delete a GitLab project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
ctxstring
ownedboolean
per_pageinteger
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
statestring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
statestring
tokenstring

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)

ParameterTypeDescription
project_id *integer
title *string
ctxstring
descriptionstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
statusstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
ctxstring
per_pageinteger
tokenstring

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)

ParameterTypeDescription
group_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
pathstring
refstring
tokenstring

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)

ParameterTypeDescription
file_path *string
project_id *integer
ctxstring
refstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
ref_namestring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_message *string
file_content *string
file_path *string
project_id *integer
actionstring
ctxstring
tokenstring

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)

ParameterTypeDescription
branch_name *string
project_id *integer
ctxstring
refstring
tokenstring

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)

ParameterTypeDescription
branch_name *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
source_branch *string
target_branch *string
title *string
ctxstring
descriptionstring
tokenstring

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)

ParameterTypeDescription
merge_request_iid *integer
project_id *integer
ctxstring
merge_commit_messagestring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ref *string
tag_name *string
ctxstring
messagestring
tokenstring

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)

ParameterTypeDescription
pipeline_id *integer
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
refstring
tokenstring

get_current_user

Get current user information. Args: token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
ctxstring
tokenstring

search_projects

Search for projects. Args: query: Search query token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
query *string
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
statestring
tokenstring

get_project_labels

Get project labels. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

list_project_hooks

List project webhooks. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
descriptionstring
namestring
tokenstring
visibilitystring

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)

ParameterTypeDescription
project_id *integer
ctxstring
namespacestring
tokenstring

archive_project

Archive a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

unarchive_project

Unarchive a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_message *string
content *string
file_path *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_message *string
content *string
file_path *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_message *string
file_path *string
project_id *integer
ctxstring
tokenstring

get_repository_tags

Get repository tags. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
tag_name *string
ctxstring
tokenstring

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)

ParameterTypeDescription
from_branch *string
project_id *integer
to_branch *string
ctxstring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_sha *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
branch *string
commit_sha *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
issue_iid *integer
project_id *integer
ctxstring
descriptionstring
state_eventstring
titlestring
tokenstring

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)

ParameterTypeDescription
issue_iid *integer
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
local_pathstring
tokenstring
use_sshboolean

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)

ParameterTypeDescription
group_id *integer
base_pathstring
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

star_project

Star a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

unstar_project

Unstar a project. Args: project_id: GitLab project ID token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
user_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
user_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
namespace *string
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
project_id *integer
ctxstring
tokenstring

share_project_with_group

Share project with a group. Args: project_id: GitLab project ID group_id: Group ID to share with group_access: Access level (10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner) expires_at: Expiration date (YYYY-MM-DD) (optional) token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
group_access *integer
group_id *integer
project_id *integer
ctxstring
expires_atstring
tokenstring

unshare_project_with_group

Remove project sharing with a group. Args: project_id: GitLab project ID group_id: Group ID to unshare from token: GitLab Personal Access Token (optional) ctx: MCP context (automatically injected)

ParameterTypeDescription
group_id *integer
project_id *integer
ctxstring
tokenstring

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)

ParameterTypeDescription
group_name *string
ctxstring
per_pageinteger
tokenstring