mcpField
M
Mcp Server Github

Mcp Server Github

リモート
github.com/kogunlowo123バージョン管理029 週間前に更新
リポジトリ

Mcp Server Github について

Mcp Server Githubは、リポジトリやプロジェクトの自動化に取り組むチームや開発者向けに、GitHub APIの操作を提供します。リポジトリ情報、Issue、プルリクエスト、コード検索、ブランチ、Actionsワークフローを扱えます。

主な機能

  1. 01リポジトリの一覧表示
  2. 02Issueの作成
  3. 03プルリクエストの一覧表示
  4. 04ファイル内容の取得
  5. 05コード検索
  6. 06ブランチとActionsワークフローの管理

活用シーン

  1. 01リポジトリやプルリクエストの情報確認
  2. 02ラベルや担当者を指定したIssue作成
  3. 03GitHubリポジトリ内のコード検索
  4. 04ワークフロー実行の確認

MCP 対応

MCPクライアントにGitHub APIのツールを提供するMCPサーバーです。利用にはGITHUB_TOKENにGitHub個人アクセストークンを設定します。

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttps://github.com/kogunlowo123/mcp-server-aws
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

すべてのエンドポイント
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-aws
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-azure
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-terraform
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-kubernetes
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-devops
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-github
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-database
Streamable HTTPhttps://github.com/kogunlowo123/mcp-server-vector-db

ツール

詳細

mcp-server-github

GitHub API と連携するためのツールを提供する MCP(Model Context Protocol)サーバーです。リポジトリ、イシュー、プルリクエスト、コード検索、ブランチ、GitHub Actions のワークフローに対応しています。

アーキテクチャ

graph TB
    subgraph Client
        style Client fill:#4A90D9,stroke:#2E6BA6,color:#FFFFFF
        MCP_Client["MCP Client"]
    end

    subgraph Server["mcp-server-github"]
        style Server fill:#2ECC71,stroke:#1A9B52,color:#FFFFFF
        Index["index.ts<br/>MCP Server Entry"]
        subgraph Tools
            style Tools fill:#F39C12,stroke:#C67D0A,color:#FFFFFF
            T1["list_repos"]
            T2["create_issue"]
            T3["list_pull_requests"]
            T4["get_file_contents"]
            T5["search_code"]
            T6["create_branch"]
            T7["list_workflows"]
            T8["get_workflow_runs"]
        end
    end

    subgraph External["GitHub API"]
        style External fill:#24292E,stroke:#1B1F23,color:#FFFFFF
        Repos["Repos API"]
        Issues["Issues API"]
        PRs["Pull Requests API"]
        Contents["Contents API"]
        Search["Search API"]
        Git["Git Refs API"]
        Actions["Actions API"]
    end

    MCP_Client -- "stdio transport" --> Index
    Index --> T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8
    T1 --> Repos
    T2 --> Issues
    T3 --> PRs
    T4 --> Contents
    T5 --> Search
    T6 --> Git
    T7 --> Actions
    T8 --> Actions

インストール

npm install
npm run build

設定

変数説明必須
GITHUB_TOKENGitHub の個人用アクセストークンはい

使用方法

スタンドアロン
GITHUB_TOKEN=ghp_xxxx npm start
開発
npm run dev
Docker
docker build -t mcp-server-github .
docker run -e GITHUB_TOKEN=ghp_xxxx mcp-server-github
MCP クライアントの設定
{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {
        "GITHUB_TOKEN": "ghp_xxxx"
      }
    }
  }
}

ツールのリファレンス

ツール説明パラメーター
list_reposリポジトリを一覧表示しますowner?、type?、sort?
create_issueイシューを作成しますowner、repo、title、body?、labels?、assignees?
list_pull_requestsプルリクエストを一覧表示しますowner、repo、state?、sort?
get_file_contentsファイルの内容を取得しますowner、repo、path、ref?
search_codeコードを検索しますquery、per_page?
create_branchブランチを作成しますowner、repo、branch、from_branch?
list_workflowsワークフローを一覧表示しますowner、repo
get_workflow_runsワークフローの実行を取得しますowner、repo、workflow_id、status?

ライセンス

MIT

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。