Gitee
Gitee MCP 服务器
让 AI 通过 MCP 为您操作 Gitee 仓库/Issues/Pull Requests
支持的AI操作
类别 | MCP 工具 | 描述 |
存储库操作 |
| 创建 Gitee 存储库 |
| 派生一个 Gitee 存储库 | |
分支机构运营 |
| 在 Gitee 存储库中创建新分支 |
| 列出 Gitee 存储库中的分支 | |
| 获取 Gitee 存储库中特定分支的详细信息 | |
文件操作 |
| 获取 Gitee 存储库中文件或目录的内容 |
| 在 Gitee 存储库中创建或更新文件 | |
| 将多个文件推送到 Gitee 存储库 | |
发行操作 |
| 在 Gitee 仓库中创建问题 |
| 列出 Gitee 存储库中的问题 | |
| 获取 Gitee 存储库中特定问题的详细信息 | |
| 更新 Gitee 存储库中的问题 | |
| 向 Gitee 存储库中的问题添加评论 | |
拉取请求操作 |
| 在 Gitee 存储库中创建 Pull 请求 |
| 列出 Gitee 存储库中的 Pull 请求 | |
| 获取 Gitee 存储库中特定 Pull 请求的详细信息 | |
| 更新 Gitee 存储库中的 Pull 请求 | |
| 在 Gitee 存储库中合并拉取请求 | |
用户操作 |
| 获取Gitee用户信息 |
| 获取已认证的Gitee用户信息 |
Related MCP server: mcp-gitee
用法
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Gitee MCP 服务器:
npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claude配置
GITEE_API_BASE_URL:可选,Gitee OpenAPI Endpoint,默认为https://gitee.com/api/v5GITEE_PERSONAL_ACCESS_TOKEN:必需,Gitee 帐户个人访问令牌(PAT),可从 Gitee 帐户设置个人访问令牌中获取DEBUG:可选,设置为true以启用调试日志记录,默认为禁用
通过 NPX 运行 MCP 服务器
{
"mcpServers": {
"Gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}通过 Docker 容器运行 MCP 服务器
获取 Docker 镜像
# Get from DockerHub
docker pull normalcoder/gitee-mcp-server
# Build locally
docker build -t normalcoder/gitee-mcp-server .配置 MCP 服务器
{
"mcpServers": {
"Gitee": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITEE_PERSONAL_ACCESS_TOKEN",
"normalcoder/gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}开发指南
安装依赖项
npm install建造
npm run build成功构建后, /dist将包含可运行的 MCP 服务器。
运行服务器
npm startMCP 服务器将在 stdio 上运行,允许 MCP 客户端将其用作子进程。
构建 Docker 镜像
您还可以使用 Docker 运行服务器:
docker build -t normalcoder/gitee-mcp-server .使用 Docker 运行 MCP 服务器:
docker run -e GITEE_PERSONAL_ACCESS_TOKEN=<YOUR_TOKEN> normalcoder/gitee-mcp-server调试 MCP 服务器
您可以使用@modelcontextprotocol/inspector进行调试:
在根目录中创建一个.env文件用于环境变量:
GITEE_API_BASE_URL=https://gitee.com/api/v5
GITEE_PERSONAL_ACCESS_TOKEN=<YOUR_TOKEN>运行调试工具,启动服务和Web调试界面:
npx @modelcontextprotocol/inspector npm run start --env-file=.env项目包含一个debug()函数,用于打印调试信息,用法:
import { debug } from './common/utils.js';
debug('Message to log');
debug('Message with data:', { key: 'value' });仅当DEBUG环境变量设置为true时才会打印调试日志。
依赖项
@modelcontextprotocol/sdk:用于服务器实现的 MCP SDKuniversal-user-agent:用于生成用户代理字符串zod:用于模式验证zod-to-json-schema:用于将 Zod 模式转换为 JSON 模式
执照
本软件遵循 MIT 许可证。您可以自由使用、修改和分发本软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目代码库中的LICENSE文件。
相关链接
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for managing your repositories on Forgejo/Gitea server.65Mozilla Public 2.0
- AlicenseBqualityCmaintenanceFull-featured MCP server exposing 200+ Gitee API v5 endpoints for repository, issue, pull request, user, enterprise, gist, and search management.10023MIT
- Alicense-qualityDmaintenanceMCP server for the GitCode API, enabling AI assistants to interact with GitCode repositories, issues, pull requests, and more.1MIT
- AlicenseBqualityDmaintenanceMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.113411MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
MCP Server for JFrog, providing tools for development and artifact management.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/normal-coder/gitee-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server