Skip to main content
Glama

GitHub MCP サーバー

GitHub 統合のための Model Context Protocol (MCP) サーバー実装。このサーバーは、MCP プロトコルを介して GitHub API とやり取りするためのツールを提供します。

特徴

  • GitHubリポジトリを作成する

  • コンテンツをリポジトリにプッシュする

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

  • 適切なエラー処理とTypeScriptの型安全性

  • 自動インストールスクリプト

Related MCP server: GitHub MCP Server Plus

前提条件

  • Node.js (v18以上)

  • npm (v8以上)

  • PowerShell(Windows インストール用)

  • リポジトリスコープを持つGitHubパーソナルアクセストークン

インストール

ウィンドウズ

  1. このリポジトリをクローンします:

git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git
  1. インストール スクリプトを実行します。

.\install.ps1

スクリプトは次のようになります。

  • 必要なディレクトリを作成する

  • 依存関係をインストールする

  • TypeScriptコードをビルドする

  • MCP設定を構成する

手動インストール

  1. MCP ディレクトリを作成します。

mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. このリポジトリをそのディレクトリにクローンします。

git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
  1. 依存関係をインストールします:

cd "$env:APPDATA\Roo-Code\MCP\github-mcp" npm install
  1. TypeScript コードをビルドします。

npm run build
  1. サーバー構成を MCP 設定ファイルに追加します: %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json

{ "mcpServers": { "github": { "command": "node", "args": [ "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js" ], "env": { "GITHUB_TOKEN": "your-github-token-here" }, "disabled": false, "alwaysAllow": [] } } }

利用可能なツール

get_user

GitHub ユーザー情報を取得します。

{ "username": "octocat" }

リポジトリの作成

新しい GitHub リポジトリを作成します。

{ "repo_name": "my-new-repo", "description": "A new repository", "private": false }

リポジトリへのプッシュ

コンテンツを GitHub リポジトリにプッシュします。

{ "repo_name": "my-repo", "file_path": "docs/README.md", "content": "# My Project\nThis is a test file.", "message": "Add README file" }

発達

  1. リポジトリをクローンする

  2. 依存関係をインストール: npm install

  3. src/index.tsに変更を加える

  4. ビルド: npm run build

  5. 変更をテストする

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. 変更をコミットする

  4. ブランチにプッシュする

  5. プルリクエストを作成する

ライセンス

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

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

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/oghenetejiriorukpegmail/github-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server