Title: Add Streamable HTTP Transport Support for Multi-User Mode · Issue #471 · github/github-mcp-server · GitHub
Open Graph Title: Add Streamable HTTP Transport Support for Multi-User Mode · Issue #471 · github/github-mcp-server
X Title: Add Streamable HTTP Transport Support for Multi-User Mode · Issue #471 · github/github-mcp-server
Description: Problem Currently, the GitHub MCP Server only supports single-user mode, requiring a single GitHub token to be configured at startup. This limits its usage in multi-tenant environments, shared services, and enterprise scenarios where dif...
Open Graph Description: Problem Currently, the GitHub MCP Server only supports single-user mode, requiring a single GitHub token to be configured at startup. This limits its usage in multi-tenant environments, shared serv...
X Description: Problem Currently, the GitHub MCP Server only supports single-user mode, requiring a single GitHub token to be configured at startup. This limits its usage in multi-tenant environments, shared serv...
Opengraph URL: https://github.com/github/github-mcp-server/issues/471
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add Streamable HTTP Transport Support for Multi-User Mode","articleBody":"## Problem\n\nCurrently, the GitHub MCP Server only supports single-user mode, requiring a single GitHub token to be configured at startup. This limits its usage in multi-tenant environments, shared services, and enterprise scenarios where different users need to authenticate with their own GitHub tokens.\n\n## Current State\n\n- ✅ Single-user mode supports both stdio and streamable HTTP transports\n- ❌ No multi-user mode exists - server requires one GitHub token per instance\n- ❌ Cannot serve multiple users with different authentication contexts\n- ❌ Limited scalability for shared or enterprise deployments\n\n## Proposed Solution\n\nAdd a new multi-user mode with streamable HTTP transport support, enabling the server to:\n\n- Accept HTTP requests with per-request authentication tokens\n- Serve multiple users simultaneously with their own GitHub tokens\n- Run behind load balancers and reverse proxies\n- Integrate with web applications and cloud services\n- Support containerized deployments with proper port binding\n\n## Use Cases\n\n1. **Enterprise Shared Services**: One server instance serving multiple teams/users\n2. **Cloud Deployments**: Multi-tenant SaaS applications using GitHub integration\n3. **Web Integration**: Web applications where users authenticate with their own GitHub tokens\n4. **Load Balancing**: Distributing requests across multiple server instances\n5. **Kubernetes Deployments**: Enabling proper health checks and service discovery\n6. **API Gateway Integration**: Direct HTTP endpoints for API management platforms\n\n## Expected Implementation\n\n### Command Interface\n```bash\n# New multi-user mode with HTTP transport\n./github-mcp-server multi-user --port 8080\n\n# Existing single-user modes still work\n./github-mcp-server stdio # Single-user stdio\n./github-mcp-server streamable-http # Single-user HTTP\n```\n\n### Configuration Options\n- Configurable port binding via `--port` flag\n- Per-request authentication token extraction from request headers/context\n- No global GitHub token required - tokens provided per request\n- Backward compatibility with existing single-user modes\n\n### Technical Details\n- Utilize existing `server.NewStreamableHTTPServer()` from mcp-go library\n- Implement per-request authentication model with auth tokens\n- Create new multi-user toolsets that extract tokens from request context\n- Proper error handling and logging for HTTP transport\n- Support for standard HTTP headers and content types\n\n## Benefits\n\n1. **🌐 Production Ready**: Enables production deployments in cloud environments\n2. **🔄 Scalable**: Works seamlessly with load balancers and auto-scaling\n3. **🔌 Integration Friendly**: Direct HTTP API for web applications and services\n4. **📦 Container Native**: Proper port binding for containerized deployments\n5. **👥 Multi-Tenant**: Support multiple users with their own GitHub authentication\n6. **⚡ Performance**: HTTP transport optimized for distributed scenarios\n\n## Acceptance Criteria\n\n- [ ] New `multi-user` command that starts HTTP server on configurable port\n- [ ] Per-request authentication tokens work correctly\n- [ ] Multiple users can use the server simultaneously with their own tokens\n- [ ] Backward compatibility with existing single-user modes\n- [ ] Proper error handling and logging for multi-user scenarios\n- [ ] Documentation for new multi-user mode\n- [ ] Docker support for multi-user HTTP deployments\n\n## Additional Context\n\nThis enhancement would introduce a completely new operational mode to the GitHub MCP Server, making it suitable for enterprise and multi-tenant deployments. Unlike the current single-user model where one GitHub token is configured globally, this multi-user mode would extract authentication tokens from each individual request.\n\nThe implementation should leverage the existing mcp-go library's streamable HTTP capabilities while introducing a new multi-user authentication approach that differentiates this mode from the existing single-user implementations. ","author":{"url":"https://github.com/devendershekhawat","@type":"Person","name":"devendershekhawat"},"datePublished":"2025-06-04T05:10:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/471/github-mcp-server/issues/471"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f5c3f01e-a446-f139-8af8-c97a18cc4c65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C06:9D839:751EB:A120E:6A60F9C3 |
| html-safe-nonce | e66f5259da3fd2481742023a97b303c943e240fe99da521931a526e5c77134ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzA2OjlEODM5Ojc1MUVCOkExMjBFOjZBNjBGOUMzIiwidmlzaXRvcl9pZCI6IjQwMDkxOTEwNjU5NDU5NjI5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 50072a0f5f6c6885155a9fc374d988481c38265ce400964beb2581ac222d4702 |
| hovercard-subject-tag | issue:3116455120 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/471/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0c245803ba2dcaf1a6808202e20ebe1dc35cf1de069de9e5005c78fb6b7d848/github/github-mcp-server/issues/471 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0c245803ba2dcaf1a6808202e20ebe1dc35cf1de069de9e5005c78fb6b7d848/github/github-mcp-server/issues/471 |
| og:image:alt | Problem Currently, the GitHub MCP Server only supports single-user mode, requiring a single GitHub token to be configured at startup. This limits its usage in multi-tenant environments, shared serv... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devendershekhawat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40a35f8d38abec207dcde39ffae0c0d14012c6d27b769f13fdac3ab78dc77ebe |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ef41e0ca8cf502957b8d49077bbe7c8dcdcbb037 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width