Gitee Service MCP Integration
Provides Gitee service invocation via the MCP protocol, supporting code reviews, file operations, repository management, search capabilities, and more.
Environment Variables
- Need to configure the GITEE_ACCESS_TOKEN environment variable as the personal access token you created on Gitee
- Need to set GITEE_API_BASE to https://gitee.com/api/v5 (default setting is sufficient)
Usage Instructions
Gitee MCP Server Reference Documentation
🗺️ Feature List
Tool Identifier | Function Description | Core Parameters |
---|---|---|
comment_issue | Comment on a repository issue | body (comment content), number (issue number), owner (repository namespace), repo (repository path) |
comment_pull | Comment on a pull request | body (comment content), number (pull request number), owner (repository namespace), repo (repository path) |
create_enterprise_repo | Create an enterprise repository | auto_init (whether to initialize the repository), description (repository description), enterprise (enterprise path), name (repository name), private (whether it is private) |
create_issue | Create an issue | assignee (issue assignee), body (issue description), title (issue title), owner (repository namespace), repo (repository path) |
create_org_repo | Create an organization repository | auto_init (whether to initialize the repository), description (repository description), org (organization path), name (repository name), private (whether it is private) |
create_pull | Create a pull request | assignees (assignee(s)), base (target branch), body (PR content), head (source branch), title (PR title), owner (repository namespace), repo (repository path) |
create_release | Create a release | body (release description), name (release name), owner (repository namespace), repo (repository path), tag_name (tag name) |
create_user_repo | Create a user repository | auto_init (whether to initialize the repository), description (repository description), name (repository name), private (whether it is private) |
fork_repository | Fork a repository | name (new repository name), owner (original repository namespace), repo (original repository path) |
get_file_content | Get the content of a specified file in the repository | owner (repository namespace), path (file path), ref (branch name or commit ID), repo (repository path) |
get_pull_detail | Get the details of a pull request | number (pull request number), owner (repository namespace), repo (repository path) |
get_repo_issue_detail | Get issue details | number (issue number), owner (repository namespace), repo (repository path) |
get_user_info | Get authenticated user information | No parameters |
list_issue_comments | List all comments on a repository issue | number (issue number), owner (repository namespace), repo (repository path), page (page number), per_page (number per page) |
list_pull_comments | List all comments on a pull request | number (pull request number), owner (repository namespace), repo (repository path), page (page number), per_page (number per page) |
list_releases | List all releases of the repository | owner (repository namespace), repo (repository path), page (page number), per_page (number per page) |
list_repo_issues | List all issues of the repository | owner (repository owner namespace), repo (repository path), page (page number), per_page (number per page), state (issue state) |
list_repo_pulls | List all pull requests of the repository | owner (repository owner namespace), repo (repository path), page (page number), per_page (number per page), state (pull request state) |
list_user_notifications | List all notifications for the authenticated user | page (page number), per_page (number per page), unread (unread notifications only), type (notification type), since (update time) |
list_user_repos | List repositories accessible to the user | page (page number), per_page (number per page), visibility (repository visibility), affiliation (user's relationship to the repository) |
merge_pull | Merge a pull request | number (pull request number), owner (repository namespace), repo (repository path), merge_method (merge method) |
search_open_source_repositories | Search open source repositories | q (search keyword), from (search starting position), size (page size), sort_by_f (sort field) |
search_users | Search users on Gitee | page (page number), per_page (number per page), q (search keyword) |
update_issue | Update an issue | number (issue number), owner (repository namespace), repo (repository path), title (issue title), state (issue state) |
update_pull | Update a pull request | number (pull request number), owner (repository namespace), repo (repository path), title (pull request title), state (pull request state) |
Repository URL
https://gitee.com/oschina/mcp-gitee