码云企业MCP

william11zhu/mcp-gitee-ent
Hosted
0 Stars 79 次浏览 willliam 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "gitee-ent": {
      "args": [
        "-y",
        "@gitee/mcp-gitee-ent@latest"
      ],
      "command": "npx",
      "env": {
        "GITEE_ENT_API_BASE": "https://api.gitee.com/enterprises",
        "GITEE_ENT_MCP_ACCESS_TOKEN": "\u003cyour mcp ent access token\u003e"
      }
    }
  }
}

可用工具 (31 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

comment_enterprise_issue 3 个参数 需填 3 项

Comment on an issue

必填参数:enterprise_id、issue_id、body

comment_enterprise_pull 5 个参数 需填 4 项

Comment on a pull request in an enterprise

必填参数:enterprise_id、project_id、pull_request_id、body

create_enterprise_issue 24 个参数 需填 2 项

Create an issue in an enterprise

必填参数:enterprise_id、title

create_enterprise_repo_pull 10 个参数 需填 5 项

Create a pull request for repository in an enterprise

必填参数:enterprise_id、project_id、source_branch、target_branch、title

create_enterprise_repo_release 7 个参数 需填 5 项

Create a release for repository in an enterprise

必填参数:enterprise_id、project_id、release_tag_version、release_title、release_description

create_enterprise_repository 13 个参数 需填 4 项

Create a repository in an enterprise

必填参数:enterprise_id、project_name、project_namespace_path、project_path

create_scrum_sprint 8 个参数 需填 6 项

Create a Scrum Sprint

必填参数:enterprise_id、program_id、title、assignee_id、started_at、finished_at

get_enterprise_issue_detail 2 个参数 需填 2 项

Get issue detail

必填参数:enterprise_id、issue_id

get_enterprise_pull_detail 3 个参数 需填 3 项

Get the detail of a pull request

必填参数:enterprise_id、project_id、pull_request_id

get_enterprise_pull_diff 3 个参数 需填 3 项

Get the diff of a pull request

必填参数:enterprise_id、project_id、pull_request_id

get_enterprise_repo_tree 3 个参数 需填 3 项

Get the tree of a repository

必填参数:enterprise_id、project_id、ref

get_enterprise_repository_file_content 3 个参数 需填 3 项

Get the content of the specified file in the repository

必填参数:enterprise_id、project_id、ref

get_user_info

Get user info

该工具无需必填参数,直接调用即可

list_enterprise_groups 7 个参数 需填 1 项

List groups in an enterprise

必填参数:enterprise_id

list_enterprise_issue_comments 6 个参数 需填 2 项

List comments of an issue

必填参数:enterprise_id、issue_id

list_enterprise_issues 26 个参数 需填 1 项

List issues in an enterprise

必填参数:enterprise_id

list_enterprise_labels 6 个参数 需填 1 项

List labels of an enterprise

必填参数:enterprise_id

list_enterprise_members 11 个参数 需填 1 项

List members of an enterprise

必填参数:enterprise_id

list_enterprise_pull_comments 5 个参数 需填 3 项

List comments of a pull request

必填参数:enterprise_id、project_id、pull_request_id

list_enterprise_pulls 20 个参数 需填 1 项

List enterprise pull requests

必填参数:enterprise_id

list_enterprise_repo_releases 4 个参数 需填 2 项

List releases for repository in an enterprise

必填参数:enterprise_id、project_id

list_enterprise_repositories 15 个参数 需填 1 项

List repositories in an enterprise

必填参数:enterprise_id

list_enterprises

List user's enterprises

该工具无需必填参数,直接调用即可

list_issue_type_states 6 个参数 需填 2 项

List issue states of an issue type

必填参数:enterprise_id、issue_type_id

list_issue_types 9 个参数 需填 1 项

List issue types of an enterprise

必填参数:enterprise_id

list_programs 11 个参数 需填 1 项

List programs of an enterprise

必填参数:enterprise_id

list_scrum_sprints 7 个参数 需填 2 项

List Scrum Sprints

必填参数:enterprise_id、program_id

list_scrum_versions 6 个参数 需填 2 项

List Scrum Versions

必填参数:enterprise_id、program_id

merge_enterprise_pull 6 个参数 需填 3 项

Merge a pull request in an enterprise

必填参数:enterprise_id、project_id、pull_request_id

update_enterprise_issue 21 个参数 需填 2 项

Update an issue in an enterprise

必填参数:enterprise_id、issue_id

update_enterprise_pull 7 个参数 需填 3 项

Update a pull request in an enterprise

必填参数:enterprise_id、project_id、pull_request_id

服务介绍

命令行选项

  • --token: 访问令牌
  • --api-base: Gitee 企业版 API 基础 URL(默认:https://api.gitee.com/enterprises)
  • --version: 显示版本信息
  • --transport: 传输类型(stdio 或 sse,默认:stdio)
  • --sse-address: SSE 服务器的地址和端口(默认:localhost:8000)
  • --enabled-toolsets: 逗号分隔的要启用的工具列表(如果指定,则只启用这些工具)
  • --disabled-toolsets: 逗号分隔的要禁用的工具列表

环境变量

你也可以使用环境变量来配置服务器:

  • GITEE_ENT_MCP_ACCESS_TOKEN: Gitee MCP 企业版访问令牌
  • GITEE_ENT_API_BASE: Gitee 企业版 API 基础 URL
  • ENABLED_TOOLSETS: 逗号分隔的要启用的工具列表
  • DISABLED_TOOLSETS: 逗号分隔的要禁用的工具列表

相关 MCP 服务