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,您可以在浏览器中访问该 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