Github-Oauth MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Enables OAuth authentication with GitHub, allowing users to authorize the application to access GitHub resources on their behalf

発達

環境を設定する

まず、uv をインストールし、Python プロジェクトと環境を設定しましょう。

MacOS/Linux : curl -LsSf https://astral.sh/uv/install.sh | sh Windows : powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

uv コマンドが確実に実行されるように、後でターミナルを再起動してください。

それでは、プロジェクトを作成して設定しましょう。

ローカルのクロードデスクトップアプリを実行中

  1. ツールを登録するには、claude_desktop_config.json を更新する必要があることを確認してください。

claude_desktop_config.json は次の場所にあります:

For Windows : code $env:AppData\Claude\claude_desktop_config.json For Mac/Linux :code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{ "mcpServers": { "Github-Oauth": { "command": "C:\\Users\\Hp\\.local\\bin\\uv", "args": [ "--directory", "C:\\Users\\Hp\\Github-Oauth\\src\\github_oauth", "run", "server.py" ] } } }

デバッグ

MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。

次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。

npx @modelcontextprotocol/inspector uv --directory C:\Users\Hp\Github-Oauth run github-oauth

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

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

OAuth プロトコルを使用して GitHub での認証を容易にし、GitHub リポジトリおよびサービスへの安全なアクセスと対話を可能にします。

  1. Set up your environment
    1. Running to local claude desktop app
  2. you can find claude_desktop_config.json :
    1. Debugging
      ID: 4f78zjhwvl