gitee-mcp-server

v0.1.1
gitee-mcp-server Checked 1 day ago Published 1 year ago

MCP Server for using the Gitee API

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_repository

创建 Gitee 仓库

ParameterTypeDescription
name *stringRepository name
auto_initbooleanWhether to automatically initialize the repository
descriptionstringRepository description
gitignore_templatestringGit Ignore template
has_issuesbooleanWhether to enable Issue functionality
has_wikibooleanWhether to enable Wiki functionality
homepagestringHomepage URL
license_templatestringLicense template
pathstringRepository path
privatebooleanWhether the repository is private

fork_repository

Fork Gitee 仓库

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
organizationstringOrganization path, defaults to personal account if not provided

create_branch

在 Gitee 仓库中创建一个新分支

ParameterTypeDescription
branch_name *stringName for the new branch
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
refsstringSource reference for the branch, default: master

list_branches

列出 Gitee 仓库中的分支

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
directionstringSort direction
pageintegerPage number
per_pageintegerNumber of items per page, maximum 100
sortstringSort field

get_branch

获取 Gitee 仓库中的特定分支信息

ParameterTypeDescription
branch *stringBranch name
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path

get_file_contents

获取 Gitee 仓库中文件或目录的内容

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
path *stringFile path
repo *stringRepository path
branchstringBranch name, defaults to the repository's default branch

create_or_update_file

在 Gitee 仓库中创建或更新文件

ParameterTypeDescription
content *stringFile content
message *stringCommit message
owner *stringRepository owner path (enterprise, organization, or personal path)
path *stringFile path
repo *stringRepository path
branchstringBranch name, defaults to the repository's default branch
shastringFile SHA, required when updating an existing file

push_files

向 Gitee 仓库提交多个文件

ParameterTypeDescription
files *arrayList of files to commit
message *stringCommit message
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
branchstringBranch name, defaults to the repository's default branch

create_issue

在 Gitee 仓库中创建 Issue

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
title *stringIssue title
assigneesarrayUsers assigned to the issue
bodystringIssue content
labelsarrayLabels
milestonenumberMilestone ID
security_holebooleanWhether the issue is private, default is false

list_issues

列出 Gitee 仓库中的 Issues

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
assigneestringFilter issues assigned to a specific user
creatorstringFilter issues created by a specific user
directionstringSort direction
labelsstringLabels, multiple labels separated by commas
milestonenumberMilestone ID
pageintegerPage number
per_pageintegerNumber of items per page, maximum 100
programstringFilter issues for a specific program
sortstringSort field
statestringIssue state

get_issue

获取 Gitee 仓库中的特定 Issue

ParameterTypeDescription
issue_number *number | stringIssue number
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path

update_issue

更新 Gitee 仓库中的 Issue

ParameterTypeDescription
issue_number *number | stringIssue number
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
assigneesarrayUsers assigned to the issue
bodystringIssue content
labelsarrayLabels
milestonenumberMilestone ID
statestringIssue state
titlestringIssue title

add_issue_comment

向 Gitee 仓库中的 Issue 添加评论

ParameterTypeDescription
body *stringComment content
issue_number *number | stringIssue number
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path

create_pull_request

在 Gitee 仓库中创建 Pull Request

ParameterTypeDescription
base *stringTarget branch name
head *stringSource branch name
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
title *stringPull Request title
assigneesarrayReviewers
bodystringPull Request content
issuestringRelated issue, format: #xxx
labelsarrayLabels
milestone_numbernumberMilestone number
prune_source_branchbooleanWhether to delete the source branch after merging
testersarrayTesters

list_pull_requests

列出 Gitee 仓库中的 Pull Requests

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
repo *stringRepository path
directionstringSort direction
labelsstringLabels, multiple labels separated by commas
milestonenumberMilestone ID
pageintegerPage number
per_pageintegerNumber of items per page, maximum 100
sortstringSort field
statestringPull Request state

get_pull_request

获取 Gitee 仓库中的特定 Pull Request

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
pull_number *numberPull Request number
repo *stringRepository path

update_pull_request

更新 Gitee 仓库中的 Pull Request

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
pull_number *numberPull Request number
repo *stringRepository path
assigneesarrayReviewers
bodystringPull Request content
labelsarrayLabels
milestone_numbernumberMilestone number
statestringPull Request state
testersarrayTesters
titlestringPull Request title

merge_pull_request

合并 Gitee 仓库中的 Pull Request

ParameterTypeDescription
owner *stringRepository owner path (enterprise, organization, or personal path)
pull_number *numberPull Request number
repo *stringRepository path
merge_methodstringMerge method
prune_source_branchbooleanWhether to delete the source branch after merging

get_user

获取 Gitee 用户信息

ParameterTypeDescription
username *stringUsername

get_current_user

获取当前认证的 Gitee 用户信息