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

Function NewRequestDeps

pkg/github/dependencies.go:282–302  ·  view source on GitHub ↗

NewRequestDeps creates a RequestDeps with the provided clients and configuration.

(
	apiHosts utils.APIHostResolver,
	version string,
	lockdownMode bool,
	repoAccessOpts []lockdown.RepoAccessOption,
	t translations.TranslationHelperFunc,
	contentWindowSize int,
	featureChecker inventory.FeatureFlagChecker,
	obsv observability.Exporters,
)

Source from the content-addressed store, hash-verified

280
281// NewRequestDeps creates a RequestDeps with the provided clients and configuration.
282func NewRequestDeps(
283 apiHosts utils.APIHostResolver,
284 version string,
285 lockdownMode bool,
286 repoAccessOpts []lockdown.RepoAccessOption,
287 t translations.TranslationHelperFunc,
288 contentWindowSize int,
289 featureChecker inventory.FeatureFlagChecker,
290 obsv observability.Exporters,
291) *RequestDeps {
292 return &RequestDeps{
293 apiHosts: apiHosts,
294 version: version,
295 lockdownMode: lockdownMode,
296 RepoAccessOpts: repoAccessOpts,
297 T: t,
298 ContentWindowSize: contentWindowSize,
299 featureChecker: featureChecker,
300 obsv: obsv,
301 }
302}
303
304// GetClient implements ToolDependencies.
305func (d *RequestDeps) GetClient(ctx context.Context) (*gogithub.Client, error) {

Callers 1

RunHTTPServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected