Versions in this module Expand all Collapse all v0 v0.31.0 Feb 19, 2026 Changes in this version + 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(_ *ServerConfig, t translations.TranslationHelperFunc, ...) InventoryFactoryFunc + type ServerConfig struct + BaseURL string + ContentWindowSize int + EnableCommandLogging bool + ExportTranslations bool + Host string + LockdownMode bool + LogFilePath string + Port int + RepoAccessCacheTTL *time.Duration + ResourcePath string + ScopeChallenge bool + Version string