Skip to main content
Glama

Gitee MCP サーバー

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

ノードバージョン NPMバージョンDockerプルDockerイメージバージョン ライセンス 鍛冶屋のバッジ


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

カテゴリ

MCPツール

説明

リポジトリ操作

create_repository

Giteeリポジトリを作成する

fork_repository

Giteeリポジトリをフォークする

支店運営

create_branch

Giteeリポジトリに新しいブランチを作成する

list_branches

Giteeリポジトリ内のブランチを一覧表示する

get_branch

Giteeリポジトリ内の特定のブランチの詳細を取得する

ファイル操作

get_file_contents

Giteeリポジトリ内のファイルまたはディレクトリの内容を取得する

create_or_update_file

Giteeリポジトリでファイルを作成または更新する

push_files

複数のファイルをGiteeリポジトリにプッシュする

発行業務

create_issue

Giteeリポジトリに問題を作成する

list_issues

Giteeリポジトリの問題を一覧表示する

get_issue

Giteeリポジトリ内の特定の問題の詳細を取得する

update_issue

Giteeリポジトリの問題を更新する

add_issue_comment

Giteeリポジトリの問題にコメントを追加する

プルリクエスト操作

create_pull_request

Giteeリポジトリにプルリクエストを作成する

list_pull_requests

Giteeリポジトリ内のプルリクエストを一覧表示する

get_pull_request

Giteeリポジトリ内の特定のプルリクエストの詳細を取得する

update_pull_request

Giteeリポジトリのプルリクエストを更新する

merge_pull_request

Giteeリポジトリにプルリクエストをマージする

ユーザー操作

get_user

Giteeユーザー情報を取得する

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ファイルをご覧ください。

関連リンク

Deploy Server
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
            0
            4
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            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
            2
            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
            3
          • A
            security
            A
            license
            A
            quality
            An MCP server for gitingest. It allows MCP clients like Claude Desktop, Cursor, Cline etc to quickly extract information about Github repositories including repository summaries, project directory structure, file contents, etc
            Last updated -
            3
            119
            MIT License
            • 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