{"record":{"id":"76851da05df9a9dc","repo":"github/github-mcp-server","slug":"failed-to-unmarshal-exclude-tools-w","errorCode":null,"errorMessage":"failed to unmarshal exclude-tools: %w","messagePattern":"failed to unmarshal exclude-tools: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/github-mcp-server/main.go","lineNumber":99,"sourceCode":"\t\t\t\tif err := viper.UnmarshalKey(\"toolsets\", &enabledToolsets); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to unmarshal toolsets: %w\", err)\n\t\t\t\t}\n\t\t\t}\n\t\t\t// else: enabledToolsets stays nil, meaning \"use defaults\"\n\n\t\t\t// Parse tools (similar to toolsets)\n\t\t\tvar enabledTools []string\n\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,","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/github/github-mcp-server/blob/0ea1f775a7c73eff1bd2e25904d01136756bbfe2/cmd/github-mcp-server/main.go#L81-L117","documentation":"Error \"failed to unmarshal exclude-tools: %w\" thrown in github/github-mcp-server.","triggerScenarios":"Thrown at cmd/github-mcp-server/main.go:99 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"}