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

Function WithScopeFetcher

pkg/http/handler.go:51–55  ·  view source on GitHub ↗
(f scopes.FetcherInterface)

Source from the content-addressed store, hash-verified

49type HandlerOption func(*HandlerOptions)
50
51func WithScopeFetcher(f scopes.FetcherInterface) HandlerOption {
52 return func(o *HandlerOptions) {
53 o.ScopeFetcher = f
54 }
55}
56
57func WithGitHubMCPServerFactory(f GitHubMCPServerFactoryFunc) HandlerOption {
58 return func(o *HandlerOptions) {

Callers 5

RunHTTPServerFunction · 0.85
TestHTTPHandlerRoutesFunction · 0.85
TestContentTypeHandlingFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestHTTPHandlerRoutesFunction · 0.68
TestContentTypeHandlingFunction · 0.68