DG

ddukbg/github-enterprise-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

29 stars 13 forks 品質 58 トレンド 0

github-enterprise-mcp の一覧

概要

GitHub Enterprise API と連携するための MCP (Model Context Protocol) サーバです。 GitHub Enterprise の Cursor でリポジトリ情報、問題、PR などを簡単にアクセスできる MCP インターフェイスです。 このプロジェクトは、主に GitHub Enterprise Server 環境向けに設計されていますが、以下のような機能もあります。 : 一部の企業固有の機能(ライセンス情報や企業統計など)は、GitHub.com や GitHub Enterprise Cloud では動作しません。 - GitHub Enterpriseインスタンスからリポジトリリストを取得する - リポジトリの詳細情報を取得する - リストリポジトリのブランチ - ファイルとディレクトリのコンテンツの表示 - 問題とプルリクエストの管理 - リポジトリ管理(作成、更新、削除) - GitHub Actions ワークフロー管理 - ユーザー管理(リスト、作成、更新、削除、中断/中止) - 企業の統計アクセス - エラー処理とユーザーフレンドリーな応答フォーマットの強化 - ノード.

概要(AI 翻訳)

GitHub Enterprise API と連携するための MCP (Model Context Protocol) サーバです。 GitHub Enterprise の Cursor でリポジトリ情報、問題、PR などを簡単にアクセスできる MCP インターフェイスです。

互換性

このプロジェクトは、主に GitHub Enterprise Server 環境向けに設計されていますが、以下のような機能もあります。

  • GitHub.com - ディレクトリ
  • GitHubエンタープライズクラウド

**注記: 一部の企業固有の機能(ライセンス情報や企業統計など)は、GitHub.com や GitHub Enterprise Cloud では動作しません。

主な特長

  • GitHub Enterpriseインスタンスからリポジトリリストを取得する
  • 詳細なリポジトリ情報を入手
  • リポジトリのブランチのリスト
  • ファイルとディレクトリの内容を表示
  • 問題の管理と要求のプル
  • リポジトリ管理(作成、更新、削除)
  • GitHub Actions ワークフロー管理
  • ユーザー管理(リスト、作成、更新、削除、中断/中止)
  • アクセス企業統計
  • エラー処理とユーザーフレンドリーな応答フォーマットの強化

はじめる

前提条件

  • Node.js 18以上
  • GitHub Enterpriseインスタンスへのアクセス
  • 個人アクセストークン(PAT)

Dockerのインストールとセットアップ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

GitHub Enterprise MCP Server

An MCP (Model Context Protocol) server for integration with GitHub Enterprise API. This server provides an MCP interface to easily access repository information, issues, PRs, and more from GitHub Enterprise in Cursor.

Compatibility

This project is primarily designed for GitHub Enterprise Server environments, but it also works with:

Note: Some enterprise-specific features (like license information and enterprise statistics) will not work with GitHub.com or GitHub Enterprise Cloud.

Key Features

  • Retrieve repository list from GitHub Enterprise instances
  • Get detailed repository information
  • List repository branches
  • View file and directory contents
  • Manage issues and pull requests
  • Repository management (create, update, delete)
  • GitHub Actions workflows management
  • User management (list, create, update, delete, suspend/unsuspend users)
  • Access enterprise statistics
  • Enhanced error handling and user-friendly response formatting

Getting Started

Prerequisites

  • Node.js 18 or higher
  • Access to a GitHub Enterprise instance
  • Personal Access Token (PAT)

Docker Installation and Setup

Option 1: Running with Docker

  1. Build the Docker image:

    docker build -t github-enterprise-mcp .
    
  2. Run the Docker container with environment variables:

    docker run -p 3000:3000 \
      -e GITHUB_TOKEN="your_github_token" \
      -e GITHUB_ENTERPRISE_URL="https://github.your-company.com/api/v3" \
      -e DEBUG=true \
      github-enterprise-mcp
    

Note: The Dockerfile is configured to run with --transport http by default. If you need to change this, you can override the command:

docker run -p 3000:3000 \
  -e GITHUB_TOKEN="your_github_token" \
  -e GITHUB_ENTERPRISE_URL="https://github.your-company.com/api/v3" \
  -e DEBUG=true \
  github-enterprise-mcp node dist/index.js --transport http --debug

Option 2: Using Docker Compose

  1. Create a .env file in the project root with the required environment variables:

    GITHUB_ENTERPRISE_URL=https://github.your-company.com/api/v3
    GITHUB_TOKEN=your_github_token
    DEBUG=true
    
  2. Start the container with Docker Compose:

    docker-compose up -d
    
  3. Check the logs:

    docker-compose logs -f
    
  4. Stop the container:

    docker-compose down
    

Installation and Setup

Local Development (Using Concurrent Mode)

GitHub で README 全文を見る

インストール

npx -y @ddukbg/github-enterprise-mcp --token=YOUR_GITHUB_TOKEN --github-enterprise-url=YOUR_GITHUB_ENTERPRISE_URL
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "github-enterprise": { "url": "http://localhost:3000/sse" } } }