発達
環境を設定する
まず、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 コマンドが確実に実行されるように、後でターミナルを再起動してください。
それでは、プロジェクトを作成して設定しましょう。
ローカルのクロードデスクトップアプリを実行中
ツールを登録するには、claude_desktop_config.json を更新する必要があることを確認してください。
Related MCP server: GitHub MCP Server
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 がインスペクタに表示されます。
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to authenticate as an admin.