Labsco
MCP SERVER

Gitee

by oschina

Work a Gitee repository end to end — read an issue, open the pull request that closes it, review it and merge — without leaving your editor.

Git Hosting & Code ReviewVerified
Summary
The issue-to-merge loop, closed inside the editor.

Reading an issue, opening the pull request against it, pulling the changed files, approving and merging with the related issue closed are all here, which is what makes this more than a read-only Gitee viewer. Two practical notes: the hosted endpoint means no install and no Go toolchain, and the allowlist and blocklist settings are worth using — a session that should only read repositories can be limited to exactly the tools that do so.

What it is

A Gitee server for repositories, issues, pull requests and notifications, available as a hosted endpoint or as a local binary. Which tools are exposed is configurable, by allowlist or blocklist.

What you get
  • Issues listed with filters on state, labels, assignee, deadline and schedule, read individually, created and updated — including issue type, milestone, program and collaborators
  • Pull requests listed by base, head, author, assignee, tester and state, created with reviewers, testers, labels and draft status, and updated afterwards
  • get_diff_files returns a pull request's changed files, and compare_branches_tags diffs two branches, tags or commits
  • manage_pull_review approves or cancels a review, and merge_pull merges with a merge method, optional source-branch pruning and closing the related issue
  • Comments listed and created on either an issue or a pull request, chosen by resource_type
  • search_files_by_content greps a repository at a given ref, with path filters and before and after context lines
  • get_file_content reads a file at a ref; create_repo makes a repository for a user, organization or enterprise; fork_repository forks one
  • Releases listed and created with tag, target commit and prerelease flag
  • list_user_notifications covers the authorized user's notifications, filtered to unread or participating; list_user_repos, search_open_source_repositories and search_users cover discovery
  • Toolsets narrowed with --enabled-toolsets as an allowlist or --disabled-toolsets as a blocklist, with the allowlist winning if both are given
Requirements

A Gitee account and a personal access token. The quickest route needs no install at all: point the client at the official remote server at https://api.gitee.com/mcp with the token as an Authorization: Bearer header. Running it yourself means Go 1.23.0 or higher — go install gitee.com/oschina/mcp-gitee@latest, or make build from a clone — with the token in --token or GITEE_ACCESS_TOKEN. --api-base (or GITEE_API_BASE) points at a different Gitee instance, defaulting to https://gitee.com/api/v5, and --transport selects stdio, sse or http with --address setting the bind, default localhost:8000.

Setup effort

One command plus a key — go install gitee.com/oschina/mcp-gitee@latest, then supply credentials