github-oauth-mcp

github-oauth-mcp

4

This project provides a minimal example of a Model Context Protocol (MCP) server implementing GitHub OAuth. It is not suitable for production usage, and users must ensure secure practices when adopting this implementation.

Minimal GitHub OAuth-enabled MCP Server

Minimal MCP server showing how to potentially implement GitHub OAuth with an MCP server. This repository has been archived. Refer to the reference collection for the latest samples and best practices. This is not intended for production use. If adopting any practices from this implementation, ensure proper caching and secure token or credential handling.

GitHub application registration

Ensure you have a GitHub App for testing, which can be registered in your GitHub settings. Generate a new secret, and with the client ID and secret, create a new .env file in the root of this project.

Run server

Use npm to install dependencies, build, and start the server.

Testing

Use MCP Inspector or a tool that supports HTTP+SSE transport for MCP servers and authentication.