基于GitLab API的MCP服务器,支持项目管理、文件操作等功能,具备以下特性:
create_or_update_file(创建/更新单个文件)
project_id
(字符串):项目ID或URL编码路径file_path
(字符串):文件创建/更新路径content
(字符串):文件内容commit_message
(字符串):提交信息branch
(字符串):目标分支previous_path
(可选字符串):文件移动/重命名前的路径push_files(批量推送文件)
project_id
(字符串):项目ID或URL编码路径branch
(字符串):目标分支files
(数组):文件数组(包含file_path
和content
)commit_message
(字符串):提交信息search_repositories(搜索项目)
search
(字符串):搜索关键词page
(可选数字):分页页码per_page
(可选数字):每页结果数(默认20)create_repository(创建项目)
name
(字符串):项目名称description
(可选字符串):项目描述visibility
(可选字符串):private
/internal
/public
initialize_with_readme
(可选布尔值):是否初始化READMEget_file_contents(获取文件/目录内容)
project_id
(字符串):项目ID或URL编码路径file_path
(字符串):文件/目录路径ref
(可选字符串):分支/标签/提交版本create_issue(创建问题)
project_id
(字符串):项目ID或URL编码路径title
(字符串):Issue标题description
(可选字符串):Issue描述assignee_ids
(可选数组):指派用户IDlabels
(可选数组):标签列表milestone_id
(可选数字):里程碑IDcreate_merge_request(创建合并请求)
project_id
(字符串):项目ID或URL编码路径title
(字符串):MR标题description
(可选字符串):MR描述source_branch
(字符串):源分支(含变更)target_branch
(字符串):目标分支(合并至)draft
(可选布尔值):是否作为草稿MRallow_collaboration
(可选布尔值):允许上游成员提交fork_repository( fork项目)
project_id
(字符串):原项目ID或URL编码路径namespace
(可选字符串):目标命名空间create_branch(创建分支)
project_id
(字符串):项目ID或URL编码路径branch
(字符串):新分支名称ref
(可选字符串):源分支/提交(默认基于主分支)api
:完整API访问read_api
:只读访问read_repository
+ write_repository
:仓库操作(读写)