gitee-mcp-server
v0.1.1MCP 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 仓库
| Parameter | Type | Description |
|---|---|---|
name * | string | Repository name |
auto_init | boolean | Whether to automatically initialize the repository |
description | string | Repository description |
gitignore_template | string | Git Ignore template |
has_issues | boolean | Whether to enable Issue functionality |
has_wiki | boolean | Whether to enable Wiki functionality |
homepage | string | Homepage URL |
license_template | string | License template |
path | string | Repository path |
private | boolean | Whether the repository is private |
fork_repository
Fork Gitee 仓库
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
organization | string | Organization path, defaults to personal account if not provided |
create_branch
在 Gitee 仓库中创建一个新分支
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | Name for the new branch |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
refs | string | Source reference for the branch, default: master |
list_branches
列出 Gitee 仓库中的分支
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
direction | string | Sort direction |
page | integer | Page number |
per_page | integer | Number of items per page, maximum 100 |
sort | string | Sort field |
get_branch
获取 Gitee 仓库中的特定分支信息
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch name |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
get_file_contents
获取 Gitee 仓库中文件或目录的内容
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
path * | string | File path |
repo * | string | Repository path |
branch | string | Branch name, defaults to the repository's default branch |
create_or_update_file
在 Gitee 仓库中创建或更新文件
| Parameter | Type | Description |
|---|---|---|
content * | string | File content |
message * | string | Commit message |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
path * | string | File path |
repo * | string | Repository path |
branch | string | Branch name, defaults to the repository's default branch |
sha | string | File SHA, required when updating an existing file |
push_files
向 Gitee 仓库提交多个文件
| Parameter | Type | Description |
|---|---|---|
files * | array | List of files to commit |
message * | string | Commit message |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
branch | string | Branch name, defaults to the repository's default branch |
create_issue
在 Gitee 仓库中创建 Issue
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
title * | string | Issue title |
assignees | array | Users assigned to the issue |
body | string | Issue content |
labels | array | Labels |
milestone | number | Milestone ID |
security_hole | boolean | Whether the issue is private, default is false |
list_issues
列出 Gitee 仓库中的 Issues
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
assignee | string | Filter issues assigned to a specific user |
creator | string | Filter issues created by a specific user |
direction | string | Sort direction |
labels | string | Labels, multiple labels separated by commas |
milestone | number | Milestone ID |
page | integer | Page number |
per_page | integer | Number of items per page, maximum 100 |
program | string | Filter issues for a specific program |
sort | string | Sort field |
state | string | Issue state |
get_issue
获取 Gitee 仓库中的特定 Issue
| Parameter | Type | Description |
|---|---|---|
issue_number * | number | string | Issue number |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
update_issue
更新 Gitee 仓库中的 Issue
| Parameter | Type | Description |
|---|---|---|
issue_number * | number | string | Issue number |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
assignees | array | Users assigned to the issue |
body | string | Issue content |
labels | array | Labels |
milestone | number | Milestone ID |
state | string | Issue state |
title | string | Issue title |
add_issue_comment
向 Gitee 仓库中的 Issue 添加评论
| Parameter | Type | Description |
|---|---|---|
body * | string | Comment content |
issue_number * | number | string | Issue number |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
create_pull_request
在 Gitee 仓库中创建 Pull Request
| Parameter | Type | Description |
|---|---|---|
base * | string | Target branch name |
head * | string | Source branch name |
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
title * | string | Pull Request title |
assignees | array | Reviewers |
body | string | Pull Request content |
issue | string | Related issue, format: #xxx |
labels | array | Labels |
milestone_number | number | Milestone number |
prune_source_branch | boolean | Whether to delete the source branch after merging |
testers | array | Testers |
list_pull_requests
列出 Gitee 仓库中的 Pull Requests
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
repo * | string | Repository path |
direction | string | Sort direction |
labels | string | Labels, multiple labels separated by commas |
milestone | number | Milestone ID |
page | integer | Page number |
per_page | integer | Number of items per page, maximum 100 |
sort | string | Sort field |
state | string | Pull Request state |
get_pull_request
获取 Gitee 仓库中的特定 Pull Request
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
pull_number * | number | Pull Request number |
repo * | string | Repository path |
update_pull_request
更新 Gitee 仓库中的 Pull Request
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
pull_number * | number | Pull Request number |
repo * | string | Repository path |
assignees | array | Reviewers |
body | string | Pull Request content |
labels | array | Labels |
milestone_number | number | Milestone number |
state | string | Pull Request state |
testers | array | Testers |
title | string | Pull Request title |
merge_pull_request
合并 Gitee 仓库中的 Pull Request
| Parameter | Type | Description |
|---|---|---|
owner * | string | Repository owner path (enterprise, organization, or personal path) |
pull_number * | number | Pull Request number |
repo * | string | Repository path |
merge_method | string | Merge method |
prune_source_branch | boolean | Whether to delete the source branch after merging |
get_user
获取 Gitee 用户信息
| Parameter | Type | Description |
|---|---|---|
username * | string | Username |
get_current_user
获取当前认证的 Gitee 用户信息