SuperAPIAI Directory

mcp-gitee

github.com · AI developer platforms

Gitee API integration, repository, issue, and pull request management, and more.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsWindows · Linux

About this tool

Purpose

mcp-gitee is a Model Context Protocol (MCP) server implementation for Gitee, providing a set of tools for interacting with the Gitee API, enabling AI assistants to manage repositories, Issues, Pull Requests, notifications, and more.

Main Capabilities

  • Interact with Gitee repositories, Issues, Pull Requests, and notifications.
  • Configurable API base address to support different Gitee instances.
  • Provides command-line flags for easy configuration.
  • Supports personal, organization, and enterprise-level operations.
  • Supports dynamically enabling/disabling toolsets.
  • Can fetch repository Issues, implement coding based on Issue details and create Pull Requests, comment on and close Issues.

Usage

Remote MCP Server (Recommended)

No installation required, ready to use out of the box. Add the corresponding configuration in the mcpServers section of the host configuration, and replace <your personal access token> with your personal access token. For the configuration file paths and formats of each client (Claude Code, Codex, Cursor, Trae, Cline, Continue, opencode), see the guide linked in the MCP Hosts Configuration section.

Local Run (stdio)

You can obtain the compressed package for the corresponding platform (linux-amd64 / linux-arm / darwin-amd64 / darwin-arm64 / windows-amd64) from Releases, and after extracting it, place mcp-gitee into PATH (on Windows the executable is mcp-gitee.exe).

You can also use it without installation, automatically downloading the prebuilt binary for the corresponding platform at startup.

Building from source requires Go 1.23.0 or later:

git clone https://gitee.com/oschina/mcp-gitee.git
cd mcp-gitee
make build

Then move ./bin/mcp-gitee into the PATH environment variable.

It can be used once mcp-gitee is available in PATH (via Releases, source build, or go install). On Windows, the executable must include the .exe suffix, and the path in command should use forward slashes / (Windows accepts forward slashes and this avoids JSON backslash escaping errors).

Command-Line Options

  • --token: Gitee access token
  • --api-base: Gitee API base address (default:https://gitee.com/api/v5)
  • --version: Display version information
  • --transport: Transport type (stdio, sse, or http, default: stdio)
  • --address: Host and port to start the server on (default: localhost:8000)
  • --enabled-toolsets: Comma-separated list of toolsets to enable (if specified, only these tools are enabled)
  • --disabled-toolsets: Comma-separated list of toolsets to disable

Environment Variables

  • GITEE_ACCESS_TOKEN: Gitee access token
  • GITEE_API_BASE: Gitee API base address
  • ENABLED_TOOLSETS: Comma-separated list of toolsets to enable
  • DISABLED_TOOLSETS: Comma-separated list of toolsets to disable

Toolset Management

Two modes are supported:

  • Whitelist mode: Use the --enabled-toolsets parameter or the ENABLED_TOOLSETS environment variable. Once specified, only the listed tools are enabled and other tools are disabled. Example: --enabled-toolsets="list_user_repos,get_file_content"
  • Blacklist mode: Use the --disabled-toolsets parameter or the DISABLED_TOOLSETS environment variable. Once specified, the listed tools are disabled and other tools are enabled. Example: --disabled-toolsets="list_user_repos,get_file_content"

If both enabled-toolsets and disabled-toolsets are specified, enabled-toolsets takes precedence. Tool names are case-sensitive.

Per-Request Tool Filtering (HTTP Headers)

When using the remote MCP server (HTTP/SSE transport), you can dynamically filter available tools per request via HTTP headers, which is suitable for clients that need fine-grained control over tool exposure without restarting the server.

  • Enable specified tools via header (whitelist): Use the X-MCP-Enabled-Tools header to enable only the listed tools for that request. Example: X-MCP-Enabled-Tools: list_user_repos,get_file_content
  • Disable specified tools via headers (blacklist): use the X-MCP-Disabled-Tools header to disable the listed tools for that request. Example: X-MCP-Disabled-Tools: create_repo,delete_repo

Priority rule: if both X-MCP-Enabled-Tools and X-MCP-Disabled-Tools are present in the same request, the whitelist (X-MCP-Enabled-Tools) takes precedence.

Use cases

Suitable for users who want to manage Gitee repositories, Issues, Pull Requests, and notifications through an AI assistant, including personal, organizational, and enterprise-level use cases; also suitable for client integration scenarios that need to dynamically control tool exposure per request.

Limitations

  • Building from source requires Go 1.23.0 or later.
  • On Windows, the executable file must include the .exe suffix, and paths in command should use forward slashes /.
  • Tool names are case-sensitive.
  • If both enabled-toolsets and disabled-toolsets are specified, enabled-toolsets takes precedence.
  • If both X-MCP-Enabled-Tools and X-MCP-Disabled-Tools are present in the same request, the whitelist takes precedence.
  • The project uses the MIT license; see the LICENSE file for details.
  • The specific list of available tools is not fully listed in the materials and is not provided for now.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools