Minimal MCP server showing how to potentially implement GitHub OAuth with an MCP server.
Important
This repository has been archived. Refer to the reference collection for latest samples and best practices.
Warning
This is not intended for production use. If you are to adopt any of the practices in this implementation, ensure that you are implementing proper caching and secure token/credential handling practices.
Prior to using this MCP server, make sure that you have a GitHub App you can use for testing. You can register one in your GitHub settings.
Once the app is registered, make sure to generate a new secret.
With the client ID and secret handy, create a new .env file in the root of this project, and add:
GITHUB_CLIENT_ID=YOUR_CLIENT_ID
GITHUB_CLIENT_SECRET=YOUR_SECRETnpm install
npm run build
npm run startYou will need to use MCP Inspector or a tool that supports HTTP+SSE transport for MCP servers and authentication.

