{"record":{"id":"62bad0d8dcb1b498","repo":"github/github-mcp-server","slug":"failed-to-unmarshal-features-w","errorCode":null,"errorMessage":"failed to unmarshal features: %w","messagePattern":"failed to unmarshal features: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/github-mcp-server/main.go","lineNumber":107,"sourceCode":"\t\t\tif viper.IsSet(\"tools\") {\n\t\t\t\tif err := viper.UnmarshalKey(\"tools\", &enabledTools); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to unmarshal tools: %w\", err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Parse excluded tools (similar to tools)\n\t\t\tvar excludeTools []string\n\t\t\tif viper.IsSet(\"exclude_tools\") {\n\t\t\t\tif err := viper.UnmarshalKey(\"exclude_tools\", &excludeTools); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to unmarshal exclude-tools: %w\", err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Parse enabled features (similar to toolsets)\n\t\t\tvar enabledFeatures []string\n\t\t\tif viper.IsSet(\"features\") {\n\t\t\t\tif err := viper.UnmarshalKey(\"features\", &enabledFeatures); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to unmarshal features: %w\", err)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tttl := viper.GetDuration(\"repo-access-cache-ttl\")\n\t\t\tstdioServerConfig := ghmcp.StdioServerConfig{\n\t\t\t\tVersion:              version,\n\t\t\t\tHost:                 viper.GetString(\"host\"),\n\t\t\t\tToken:                token,\n\t\t\t\tEnabledToolsets:      enabledToolsets,\n\t\t\t\tEnabledTools:         enabledTools,\n\t\t\t\tEnabledFeatures:      enabledFeatures,\n\t\t\t\tReadOnly:             viper.GetBool(\"read-only\"),\n\t\t\t\tExportTranslations:   viper.GetBool(\"export-translations\"),\n\t\t\t\tEnableCommandLogging: viper.GetBool(\"enable-command-logging\"),\n\t\t\t\tLogFilePath:          viper.GetString(\"log-file\"),\n\t\t\t\tContentWindowSize:    viper.GetInt(\"content-window-size\"),\n\t\t\t\tLockdownMode:         viper.GetBool(\"lockdown-mode\"),\n\t\t\t\tInsidersMode:         viper.GetBool(\"insiders\"),","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/cmd/github-mcp-server/main.go#L89-L125","documentation":"Error \"failed to unmarshal features: %w\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at cmd/github-mcp-server/main.go:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0ea1f775a7c73eff1bd2e25904d01136756bbfe2","analyzedAt":"2026-08-15T18:10:19.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}