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

Function featureCheckerFor

pkg/github/feature_flags_test.go:21–29  ·  view source on GitHub ↗
(enabledFlags ...string)

Source from the content-addressed store, hash-verified

19const RemoteMCPEnthusiasticGreeting = "remote_mcp_enthusiastic_greeting"
20
21func featureCheckerFor(enabledFlags ...string) func(context.Context, string) (bool, error) {
22 enabled := make(map[string]bool, len(enabledFlags))
23 for _, flag := range enabledFlags {
24 enabled[flag] = true
25 }
26 return func(_ context.Context, flagName string) (bool, error) {
27 return enabled[flagName], nil
28 }
29}
30
31// HelloWorld returns a simple greeting tool that demonstrates feature flag conditional behavior.
32// This tool is for testing and demonstration purposes only.

Calls

no outgoing calls

Tested by

no test coverage detected