(enabledFlags ...string)
| 19 | const RemoteMCPEnthusiasticGreeting = "remote_mcp_enthusiastic_greeting" |
| 20 | |
| 21 | func 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. |
no outgoing calls
no test coverage detected