GitHub MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides tools for interacting with GitHub's API, allowing users to create repositories with auto-generated names from descriptions, add topics/tags to repositories, set repository homepages, and initialize repositories with README files.

GitHub MCP サーバー

GitHub APIと連携するためのツールを提供するModel Context Protocol(MCP)サーバー。現在、説明、トピック、ウェブサイトURLを含むリポジトリの作成をサポートしています。

特徴

  • 説明から自動生成された名前で GitHub リポジトリを作成する
  • リポジトリにトピック/タグを追加する
  • リポジトリのホームページを設定する
  • README ファイルでリポジトリを自動初期化する

インストール

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
npm install
  1. サーバーを構築します。
npm run build

構成

サーバーには、リポジトリ作成権限を持つGitHub個人アクセストークンが必要です。MCP設定ファイルに以下の行を追加してください。

{ "mcpServers": { "github": { "command": "node", "args": ["path/to/github-server/build/index.js"], "env": { "GITHUB_TOKEN": "your-github-token" } } } }

利用可能なツール

リポジトリの作成

自然言語コマンドを使用して GitHub リポジトリを作成または更新します。

コマンド形式

このツールは、さまざまな操作のための自然言語コマンドを受け入れます。

リポジトリの作成:

Create a repository for [description] with tags [tag1 tag2 tag3] website [url]

または

Make a new repository called [description] tagged with [tag1, tag2, tag3]

リポジトリの説明を更新しています:

Update [owner/repo] description to [new description]

または

Change [repo-name] description as [new description]

リポジトリタグを更新しています:

Update [owner/repo] tags to [tag1 tag2 tag3]

または

Set [repo-name] topics as [tag1, tag2, tag3]

リポジトリ Web サイトを更新しています:

Update [owner/repo] website to [url]

または

Set [repo-name] homepage as [url]

使用例

新しいリポジトリの作成:

const result = await use_mcp_tool({ server_name: "github", tool_name: "create_repo", arguments: { command: "Create a repository for my machine learning image classifier with tags python tensorflow computer-vision website https://example.com/docs" } });

これにより、次のようになります。

  1. 「my-machine-learning-image-classifier」という名前のリポジトリを作成します。
  2. 説明を「私の機械学習画像分類器」に設定します
  3. リポジトリトピックとして「python」、「tensorflow」、「computer-vision」を追加します
  4. ウェブサイトを「 https://example.com/docs 」に設定します
  5. READMEファイルで初期化する

リポジトリの説明を更新しています:

const result = await use_mcp_tool({ server_name: "github", tool_name: "create_repo", arguments: { command: "Update username/existing-repo description to Updated ML project for image classification" } });

リポジトリタグを更新しています:

const result = await use_mcp_tool({ server_name: "github", tool_name: "create_repo", arguments: { command: "Update username/existing-repo tags to machine-learning python updated" } });

リポジトリ Web サイトを更新しています:

const result = await use_mcp_tool({ server_name: "github", tool_name: "create_repo", arguments: { command: "Update username/existing-repo website to https://example.com/new-docs" } });

このツールは、さまざまな自然言語パターンとキーワードを理解します。

  • リポジトリを作成するための Create/make/new
  • リポジトリを更新するための更新/変更/設定/修正
  • 説明を更新するための「description to/as」
  • タグを更新するための「tags/topics to/as」
  • ウェブサイトを更新するための「ウェブサイト/ホームページ/URL to/as」

発達

サーバーを変更または拡張するには:

  1. src/index.tsに変更を加える
  2. サーバーを再構築します。
npm run build

ライセンス

マサチューセッツ工科大学

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

AI モデルが GitHub の API と対話できるようにし、自然言語コマンドを使用して説明、トピック、Web サイトの URL を含むリポジトリの作成と管理を可能にするモデル コンテキスト プロトコル サーバー。

  1. Features
    1. Installation
      1. Configuration
        1. Available Tools
          1. create_repo
        2. Development
          1. License
            ID: yrvpqd8vee