MCPcopy
hub / github.com/github/github-mcp-server / Handler

Struct Handler

pkg/http/handler.go:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25type GitHubMCPServerFactoryFunc func(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, cfg *github.MCPServerConfig) (*mcp.Server, error)
26
27type Handler struct {
28 ctx context.Context
29 config *ServerConfig
30 deps github.ToolDependencies
31 logger *slog.Logger
32 apiHosts utils.APIHostResolver
33 t translations.TranslationHelperFunc
34 githubMcpServerFactory GitHubMCPServerFactoryFunc
35 inventoryFactoryFunc InventoryFactoryFunc
36 oauthCfg *oauth.Config
37 scopeFetcher scopes.FetcherInterface
38 schemaCache *mcp.SchemaCache
39}
40
41type HandlerOptions struct {
42 GitHubMcpServerFactory GitHubMCPServerFactoryFunc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected