GitHub MCP サーバー
GitHub APIと連携するためのツールを提供するModel Context Protocol(MCP)サーバー。現在、説明、トピック、ウェブサイトURLを含むリポジトリの作成をサポートしています。
特徴
Related MCP server: GitHub MCP Bridge
インストール
リポジトリをクローンする
依存関係をインストールします:
サーバーを構築します。
構成
サーバーには、リポジトリ作成権限を持つ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"
}
});
これにより、次のようになります。
「my-machine-learning-image-classifier」という名前のリポジトリを作成します。
説明を「私の機械学習画像分類器」に設定します
リポジトリトピックとして「python」、「tensorflow」、「computer-vision」を追加します
ウェブサイトを「 https://example.com/docs 」に設定します
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」
発達
サーバーを変更または拡張するには:
src/index.tsに変更を加える
サーバーを再構築します。
ライセンス
マサチューセッツ工科大学