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

Struct BaseDeps

pkg/github/dependencies.go:113–130  ·  view source on GitHub ↗

BaseDeps is the standard implementation of ToolDependencies for the local server. It stores pre-created clients. The remote server can create its own struct implementing ToolDependencies with different client creation strategies.

Source from the content-addressed store, hash-verified

111// It stores pre-created clients. The remote server can create its own struct
112// implementing ToolDependencies with different client creation strategies.
113type BaseDeps struct {
114 // Pre-created clients
115 Client *gogithub.Client
116 GQLClient *githubv4.Client
117 RawClient *raw.Client
118
119 // Static dependencies
120 RepoAccessCache *lockdown.RepoAccessCache
121 T translations.TranslationHelperFunc
122 Flags FeatureFlags
123 ContentWindowSize int
124
125 // Feature flag checker for runtime checks
126 featureChecker inventory.FeatureFlagChecker
127
128 // Observability exporters (includes logger)
129 Obsv observability.Exporters
130}
131
132// Compile-time assertion to verify that BaseDeps implements the ToolDependencies interface.
133var _ ToolDependencies = (*BaseDeps)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected