
oschina/mcp-gitee 是从 https://github.com/oschina/mcp-gitee. 导入的 MCP 服务器候选
概览
oschina/mcp-gitee 是从 https://github.com/oschina/mcp-gitee. 导入的 MCP 服务器候选
概述(AI 翻译)
Gitee MCP 服务器是 Gite 的一个模型上下文协议(MCP)服务器实现。它提供了一套工具,用于与 Gitee 的 API 交互,使 AI 助手能够管理仓库、问题、拉取请求等。
特色
- 与 Gitee 仓库、问题、拉取请求和通知交互
- 可配置的API基础URL,支持不同的Gitee实例
- 命令行标志,便于配置
- 支持个人、组织和企业运营
- 动态工具集启用/禁用
实际场景:从仓库获取问题,实现并创建拉取请求
-
获取仓库问题
-
实现编码并基于问题细节创建拉取请求
-
评论与结尾问题
安装
远程MCP服务器无需安装,开箱即用。要本地运行mcp-gitee(stdio),请选择以下选项之一。
远程MCP服务器(推荐)
在主机配置的mcpServers部分添加以下内容,从这里用令牌替换 :
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Gitee MCP Server
Gitee MCP Server is a Model Context Protocol (MCP) server implementation for Gitee. It provides a set of tools for interacting with Gitee’s API, allowing AI assistants to manage repositories, issues, pull requests, and more.
Features
- Interact with Gitee repositories, issues, pull requests, and notifications
- Configurable API base URL to support different Gitee instances
- Command-line flags for easy configuration
- Supports both personal, organization, and enterprise operations
- Dynamic toolset enable/disable
Installation
The Remote MCP Server requires no installation and works out of the box. To run mcp-gitee locally (stdio), pick one of the options below.
Remote MCP Server (Recommended)
Add the following to the mcpServers section of your host config, replacing `` with a token from here:
{
"mcpServers": {
"gitee": {
"url": "https://api.gitee.com/mcp",
"headers": {
"Authorization": "Bearer "
}
}
}
}
For per-client config file paths and formats (Claude Code, Codex, Cursor, Trae, Cline, Continue, opencode), follow the guides linked in the MCP Hosts Configuration section below.
Local (stdio)
Download Pre-built Binaries
Grab the archive for your platform (linux-amd64 / linux-arm / darwin-amd64 / darwin-arm64 / windows-amd64) from Releases, extract it, and put mcp-gitee on your PATH (on Windows the executable is mcp-gitee.exe).
Use npx
No installation needed; the pre-built binary for your platform is downloaded automatically at startup:
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"@gitee/mcp-gitee@latest"
],
"env": {
"GITEE_API_BASE": "https://gitee.com/api/v5",
"GITEE_ACCESS_TOKEN": ""
}
}
}
}
Building from Source
Requires Go 1.23.0 or higher.
-
Clone the repository:
git clone https://gitee.com/oschina/mcp-gitee.git cd mcp-gitee -
Build the project:
make buildMove ./bin/mcp-gitee PATH env
安装
npx -y @gitee/mcp-gitee@latest配置
{
"mcpServers": {
"gitee": {
"url": "https://api.gitee.com/mcp",
"headers": {
"Authorization": "Bearer <your personal access token>"
}
}
}
}