Skip to content

feat: Multi-org GitHub App support - #3

Merged
wpfleger96 merged 1 commit into
toolset_ro_rwfrom
multi-org-support
Feb 6, 2026
Merged

feat: Multi-org GitHub App support#3
wpfleger96 merged 1 commit into
toolset_ro_rwfrom
multi-org-support

Conversation

@wpfleger96

@wpfleger96 wpfleger96 commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Enables the GitHub MCP server to work with repositories across multiple GitHub organizations by supporting per-org GitHub App installation tokens.

Key changes:

  • Parse GITHUB_INSTALLATION_ID_<ORG> environment variables for per-org installation IDs
  • New MultiOrgClientFactory that creates authenticated clients per organization
  • Updated GetClientFn signature to accept owner parameter
  • All ~40 tool handlers updated to pass owner to client factory
  • Backwards compatible: falls back to GITHUB_INSTALLATION_ID if no org-specific ID configured

Environment Variables

Variable Purpose
GITHUB_INSTALLATION_ID_SQUAREUP squareup org installation ID
GITHUB_INSTALLATION_ID_AFTERPAYTOUCH AfterpayTouch org installation ID
GITHUB_INSTALLATION_ID Fallback (backwards compatibility)

Test plan

  • Build: go build ./cmd/...
  • Tests: go test ./...
  • Manual test with multi-org env vars set

🤖 Generated with Claude Code

@wpfleger96
wpfleger96 changed the base branch from main to toolset_ro_rw February 6, 2026 21:12
@wpfleger96
wpfleger96 marked this pull request as ready for review February 6, 2026 21:17
@wpfleger96
wpfleger96 merged commit 4ccfcd0 into toolset_ro_rw Feb 6, 2026
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.

1 participant