MCPcopy Index your code
hub / github.com/github/github-mcp-server / DefaultGitHubMCPServerFactory

Function DefaultGitHubMCPServerFactory

pkg/http/handler.go:240–242  ·  view source on GitHub ↗
(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, cfg *github.MCPServerConfig)

Source from the content-addressed store, hash-verified

238}
239
240func DefaultGitHubMCPServerFactory(r *http.Request, deps github.ToolDependencies, inventory *inventory.Inventory, cfg *github.MCPServerConfig) (*mcp.Server, error) {
241 return github.NewMCPServer(r.Context(), cfg, deps, inventory)
242}
243
244// DefaultInventoryFactory creates the default inventory factory for HTTP mode.
245// When the ServerConfig includes static flags (--toolsets, --read-only, etc.),

Callers

nothing calls this directly

Calls 1

NewMCPServerFunction · 0.92

Tested by

no test coverage detected