← GitLab MCP Server

GitLab MCP Server 0.2.4

npm · @jesbrian/gitlab-mcp-server · current release

12
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-22T15:18:53.578Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {}
}

Tools 12

ToolCategoryAnnotationsRisk
close_merge_request关闭合并请求
Input schema
{
  "type": "object",
  "properties": {
    "targetProjectId": {
      "type": "number",
      "description": "目标项目 ID"
    },
    "mergeRequestIid": {
      "type": "string",
      "description": "MR 内部 ID"
    }
  },
  "required": [
    "targetProjectId",
    "mergeRequestIid"
  ]
}
— · —
create_branch创建新分支
Input schema
{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "number",
      "description": "项目 ID"
    },
    "branchName": {
      "type": "string",
      "description": "新分支名"
    },
    "ref": {
      "type": "string",
      "description": "源分支/标签",
      "default": "master"
    }
  },
  "required": [
    "projectId",
    "branchName"
  ]
}
— · —
create_merge_request创建合并请求 (MR)
Input schema
{
  "type": "object",
  "properties": {
    "sourceProjectId": {
      "type": "number",
      "description": "源项目 ID"
    },
    "targetProjectId": {
      "type": "number",
      "description": "目标项目 ID"
    },
    "sourceBranch": {
      "type": "string",
      "description": "源分支名"
    },
    "targetBranch": {
      "type": "string",
      "description": "目标分支名"
    },
    "title": {
      "type": "string",
      "description": "MR 标题"
    },
    "description": {
      "type": "string",
      "description": "MR 描述"
    }
  },
  "required": [
    "sourceProjectId",
    "targetProjectId",
    "sourceBranch",
    "targetBranch"
  ]
}
— · —
create_merge_request_to_public创建从个人仓库到公共仓库的合并请求
Input schema
{
  "type": "object",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "项目名称"
    },
    "sourceBranch": {
      "type": "string",
      "description": "源分支名"
    },
    "targetBranch": {
      "type": "string",
      "description": "目标分支名"
    },
    "title": {
      "type": "string",
      "description": "MR 标题"
    },
    "description": {
      "type": "string",
      "description": "MR 描述"
    }
  },
  "required": [
    "projectName",
    "sourceBranch",
    "targetBranch"
  ]
}
— · —
delete_branch删除分支
Input schema
{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "number",
      "description": "项目 ID"
    },
    "branchName": {
      "type": "string",
      "description": "分支名"
    }
  },
  "required": [
    "projectId",
    "branchName"
  ]
}
— · —
get_current_user获取当前 GitLab 用户信息
Input schema
{
  "type": "object",
  "properties": {}
}
— · —
get_merge_request_status获取合并请求状态
Input schema
{
  "type": "object",
  "properties": {
    "targetProjectId": {
      "type": "number",
      "description": "目标项目 ID"
    },
    "mergeRequestIid": {
      "type": "string",
      "description": "MR 内部 ID"
    }
  },
  "required": [
    "targetProjectId",
    "mergeRequestIid"
  ]
}
— · —
get_project获取项目详情
Input schema
{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "number",
      "description": "项目 ID"
    }
  },
  "required": [
    "projectId"
  ]
}
— · —
get_project_ids搜索项目并获取项目 ID 映射
Input schema
{
  "type": "object",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "项目名称"
    }
  },
  "required": [
    "projectName"
  ]
}
— · —
get_repository_branches获取仓库所有分支
Input schema
{
  "type": "object",
  "properties": {
    "projectId": {
      "type": "number",
      "description": "项目 ID"
    }
  },
  "required": [
    "projectId"
  ]
}
— · —
merge_branch执行分支合并
Input schema
{
  "type": "object",
  "properties": {
    "targetProjectId": {
      "type": "number",
      "description": "目标项目 ID"
    },
    "mergeRequestIid": {
      "type": "string",
      "description": "MR 内部 ID"
    }
  },
  "required": [
    "targetProjectId",
    "mergeRequestIid"
  ]
}
— · —
wait_for_mergeable_status等待 MR 状态变为可合并
Input schema
{
  "type": "object",
  "properties": {
    "targetProjectId": {
      "type": "number",
      "description": "目标项目 ID"
    },
    "mergeRequestIid": {
      "type": "string",
      "description": "MR 内部 ID"
    },
    "timeout": {
      "type": "number",
      "description": "超时时间 (毫秒)",
      "default": 300000
    }
  },
  "required": [
    "targetProjectId",
    "mergeRequestIid"
  ]
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.