Back to MCP directory
publicPublicdnsLocal runtime

Gitee MCP Server

Gitee MCP Server是一个通过Model Context Protocol让AI操作Gitee仓库/问题/拉取请求的服务

article

README

🚀 码云MCP服务器

通过MCP,您可以借助AI操作Gitee仓库、处理问题以及管理拉取请求,为您的开发流程带来更多便利。

🚀 快速开始

安装方式

通过 Smithery 安装

# 在package.json中添加以下内容:
{
  "modelcontextprotocol": {
    "servers": {
      "giteeMCP": {
        "type": "subprocess",
        "command": "npm run start"
      }
    }
  }
}

然后运行:

npx mcp@latest giteeMCP

通过 Docker 安装

创建一个 docker-compose.yml 文件:

version: '3'
services:
  gitee-mcp-server:
    image: normalcoder/gitee-mcp-server:latest
    environment:
      - GITEE_PERSONAL_ACCESS_TOKEN=your_token_here

运行:

docker-compose up

✨ 主要特性

shields 标志

  • Node.js版本:Node.js Shields
  • 包大小:Size Shields
  • 依赖项数量:Dependencies Shields
  • 打包状态:Pack Status Shields

支持的操作

| 类别 | 工具名称 | 描述 | | ---- | ---- | ---- | | 仓库操作 | create_repository | 创建一个新仓库 | | | delete_repository | 删除指定的仓库 | | | list_repositories | 获取所有用户或组织的仓库列表 | | 问题管理 | create_issue | 在指定仓库创建一个问题 | | | get_issue | 获取指定仓库中的某个问题 | | | update_issue | 更新指定仓库中的某个问题的状态 | | 拉取请求管理 | create_pull_request | 创建一个新的拉取请求 | | | get_pull_request | 获取指定仓库中的某个拉取请求 | | | merge_pull_request | 合并一个拉取请求到目标分支 |

📦 安装指南

安装依赖项

npm install

构建项目

npm run build

构建完成后,会在 /dist 文件夹中生成可执行的 MCP 服务器。

运行服务器

npm start

MCP 服务器将在标准输出上运行,允许作为子进程由 MCP 客户端使用。

📚 详细文档

依赖项

  • @modelcontextprotocol/sdk: 用于服务器实现的MCP SDK
  • universal-user-agent: 生成用户代理字符串
  • zod: 用于模式验证
  • zod-to-json-schema: 将 Zod 模式转换为 JSON 模式的工具

相关链接

📄 许可证

本项目根据 MIT 许可证发布。您可以在遵守 MIT 许可证的条件下自由使用、修改和分发软件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client