Skip to content

Conversation

@Dreadnoth
Copy link

Official GH MCP Server supports only STDIO. This commit allows you to run the GH MCP as server and covers more enterprise use-cases (ie. handling multiple external clients with one instance)

@Dreadnoth Dreadnoth requested a review from a team as a code owner August 14, 2025 18:28
@koren-henrik
Copy link

@Dreadnoth Hi
This is good PR
How can this be promoted to be merge

talalryz pushed a commit to talalryz/github-mcp-server that referenced this pull request Oct 14, 2025
This adds HTTP server mode to the GitHub MCP Server, enabling multi-client
support with "bring your own token" OAuth functionality. This is useful for
enterprise scenarios where a single MCP server instance handles multiple
external clients, each authenticating with their own credentials.

Key changes:
- Add `http` command to start HTTP server on configurable port (default 8080)
- Support per-request OAuth tokens via Authorization header
- Fall back to GITHUB_PERSONAL_ACCESS_TOKEN env var if no header provided
- Modify client factories to extract token from request context
- Add comprehensive HTTP server documentation to README

This implementation is inspired by PR github#888 by @Dreadnoth, updated to work
with the current codebase architecture and dependencies.

Co-authored-by: Dreadnoth <15017947+Dreadnoth@users.noreply.github.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants