Skip to main content
Glama

Gitee MCP サーバー

MCP を通じて AI が Gitee リポジトリ/Issues/Pull Request を操作します

NPMバージョンDockerプルDockerイメージバージョン


サポートされているAI操作

カテゴリMCPツール説明
リポジトリ操作create_repositoryGiteeリポジトリを作成する
fork_repositoryGiteeリポジトリをフォークする
支店運営create_branchGiteeリポジトリに新しいブランチを作成する
list_branchesGiteeリポジトリ内のブランチを一覧表示する
get_branchGiteeリポジトリ内の特定のブランチの詳細を取得する
ファイル操作get_file_contentsGiteeリポジトリ内のファイルまたはディレクトリの内容を取得する
create_or_update_fileGiteeリポジトリでファイルを作成または更新する
push_files複数のファイルをGiteeリポジトリにプッシュする
発行業務create_issueGiteeリポジトリに問題を作成する
list_issuesGiteeリポジトリの問題を一覧表示する
get_issueGiteeリポジトリ内の特定の問題の詳細を取得する
update_issueGiteeリポジトリの問題を更新する
add_issue_commentGiteeリポジトリの問題にコメントを追加する
プルリクエスト操作create_pull_requestGiteeリポジトリにプルリクエストを作成する
list_pull_requestsGiteeリポジトリ内のプルリクエストを一覧表示する
get_pull_requestGiteeリポジトリ内の特定のプルリクエストの詳細を取得する
update_pull_requestGiteeリポジトリのプルリクエストを更新する
merge_pull_requestGiteeリポジトリにプルリクエストをマージする
ユーザー操作get_userGiteeユーザー情報を取得する
get_current_user認証されたGiteeユーザー情報を取得する

使用法

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Gitee MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claude

構成

  • GITEE_API_BASE_URL : オプション、Gitee OpenAPI エンドポイント、デフォルトはhttps://gitee.com/api/v5
  • GITEE_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サーバーを実行する

  1. Dockerイメージを取得する
# Get from DockerHub docker pull normalcoder/gitee-mcp-server # Build locally docker build -t normalcoder/gitee-mcp-server .
  1. 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 start

MCP サーバーは 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 SDK
  • universal-user-agent : ユーザーエージェント文字列を生成する
  • zod : スキーマ検証用
  • zod-to-json-schema : ZodスキーマをJSONスキーマに変換します

ライセンス

MITライセンスに基づきライセンスされています。MITライセンスの条件に従い、本ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。

関連リンク

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Gitee 用の MCP ツール サーバー。リポジトリ ファイル/ブランチ、問題、プル リクエストの管理をサポートします。

  1. サポートされているAI操作
    1. 使用法
      1. Smithery経由でインストール
      2. 構成
      3. NPX経由でMCPサーバーを実行する
      4. Dockerコンテナ経由でMCPサーバーを実行する
    2. 開発ガイド
      1. 依存関係をインストールする
      2. 建てる
      3. サーバーを実行
      4. Dockerイメージのビルド
      5. MCPサーバーのデバッグ
    3. 依存関係
      1. ライセンス
        1. 関連リンク

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
            Last updated -
            18
            4
            3
            TypeScript
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A specialized MCP server for in-depth analysis of git repositories, offering tools for branch overview, time period analysis, file changes, and merge recommendations.
            Last updated -
            4
            1
            JavaScript
            Apache 2.0
          • A
            security
            F
            license
            A
            quality
            MCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.
            Last updated -
            6
            Python
          • -
            security
            A
            license
            -
            quality
            Gitee API integration, repository, issue, and pull request management, and more.
            Last updated -
            28
            Go
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          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