Versions in this module Expand all Collapse all v2 v2.0.2 Oct 8, 2026 v2.0.1 Oct 7, 2026 Changes in this version + const MRTRStateKeyEnv + func DefaultGitHubMCPServerFactory(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, ...) (*mcp.Server, error) + func InventoryFiltersForRequest(r *http.Request, builder *inventory.Builder) *inventory.Builder + func PATScopeFilter(b *inventory.Builder, r *http.Request, fetcher scopes.FetcherInterface) *inventory.Builder + func RunHTTPServer(cfg ServerConfig) error + type GitHubMCPServerFactoryFunc func(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, ...) (*mcp.Server, error) + type Handler struct + func NewHTTPMcpHandler(ctx context.Context, cfg *ServerConfig, deps github.ToolDependencies, ...) *Handler + func (h *Handler) RegisterMiddleware(r chi.Router) + func (h *Handler) RegisterRoutes(r chi.Router) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type HandlerOption func(*HandlerOptions) + func WithFeatureChecker(checker inventory.FeatureFlagChecker) HandlerOption + func WithGitHubMCPServerFactory(f GitHubMCPServerFactoryFunc) HandlerOption + func WithInventoryFactory(f InventoryFactoryFunc) HandlerOption + func WithOAuthConfig(cfg *oauth.Config) HandlerOption + func WithScopeFetcher(f scopes.FetcherInterface) HandlerOption + type HandlerOptions struct + FeatureChecker inventory.FeatureFlagChecker + GitHubMcpServerFactory GitHubMCPServerFactoryFunc + InventoryFactory InventoryFactoryFunc + OAuthConfig *oauth.Config + ScopeFetcher scopes.FetcherInterface + type InventoryFactoryFunc func(r *http.Request) (*inventory.Inventory, error) + func DefaultInventoryFactory(cfg *ServerConfig, t translations.TranslationHelperFunc, ...) InventoryFactoryFunc + func NewDefaultInventoryFactory(cfg *ServerConfig, t translations.TranslationHelperFunc, ...) (InventoryFactoryFunc, error) + type ServerConfig struct + AuthorizationServer string + BaseURL string + ContentWindowSize int + EnableCommandLogging bool + EnabledFeatures []string + EnabledTools []string + EnabledToolsets []string + ExcludeTools []string + ExportTranslations bool + Host string + InsidersMode bool + ListenHost string + LockdownMode bool + LogFilePath string + MRTRStateKey string + MaxRequestBodyBytes int64 + Port int + ReadOnly bool + RepoAccessCacheTTL *time.Duration + ResourcePath string + ScopeChallenge bool + TrustProxyHeaders bool + Version string Other modules containing this package github.com/github/github-mcp-server