Skip to content

Commit 64928ae

Browse files
committed
add ff saupport and consolidated actions toolsets
1 parent 5da71e3 commit 64928ae

File tree

4 files changed

+1417
-347
lines changed

4 files changed

+1417
-347
lines changed

cmd/github-mcp-server/main.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,18 @@ var (
4848

4949
// Parse tools (similar to toolsets)
5050
var enabledTools []string
51-
if err := viper.UnmarshalKey("tools", &enabledTools); err != nil {
52-
return fmt.Errorf("failed to unmarshal tools: %w", err)
51+
if viper.IsSet("tools") {
52+
if err := viper.UnmarshalKey("tools", &enabledTools); err != nil {
53+
return fmt.Errorf("failed to unmarshal tools: %w", err)
54+
}
5355
}
5456

55-
// If neither toolset config nor tools config is passed we enable the default toolset
56-
if len(enabledToolsets) == 0 && len(enabledTools) == 0 {
57-
enabledToolsets = []string{github.ToolsetMetadataDefault.ID}
57+
// Parse enabled features (similar to toolsets)
58+
var enabledFeatures []string
59+
if viper.IsSet("features") {
60+
if err := viper.UnmarshalKey("features", &enabledFeatures); err != nil {
61+
return fmt.Errorf("failed to unmarshal features: %w", err)
62+
}
5863
}
5964

6065
ttl := viper.GetDuration("repo-access-cache-ttl")

0 commit comments

Comments
 (0)