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

Method WithFeatureChecker

pkg/inventory/builder.go:145–148  ·  view source on GitHub ↗

WithFeatureChecker sets the feature flag checker function. The checker receives a context (for actor extraction) and feature flag name, and returns (enabled, error). Errors are logged and treated as "not enabled". When the checker is non-nil, Build() installs a feature-flag ToolFilter at the head o

(checker FeatureFlagChecker)

Source from the content-addressed store, hash-verified

143//
144// Returns self for chaining.
145func (b *Builder) WithFeatureChecker(checker FeatureFlagChecker) *Builder {
146 b.featureChecker = checker
147 return b
148}
149
150// WithFilter adds a filter function that will be applied to all tools.
151// Multiple filters can be added and are evaluated in order.

Calls

no outgoing calls