MCPcopy
hub / github.com/codeaashu/claude-code / getSettingsWithAllErrors

Function getSettingsWithAllErrors

src/utils/settings/allErrors.ts:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 * includes MCP errors to avoid the circular dependency.
22 */
23export function getSettingsWithAllErrors(): SettingsWithErrors {
24 const result = getSettingsWithErrors()
25 // 'dynamic' scope does not have errors returned; it throws and is set on cli startup
26 const scopes = ['user', 'project', 'local'] as const
27 const mcpErrors = scopes.flatMap(scope => getMcpConfigsByScope(scope).errors)
28 return {
29 settings: result.settings,
30 errors: [...result.errors, ...mcpErrors],
31 }
32}
33

Callers 5

showSetupScreensFunction · 0.85
useSettingsErrorsFunction · 0.85
_tempFunction · 0.85

Calls 2

getSettingsWithErrorsFunction · 0.85
getMcpConfigsByScopeFunction · 0.85

Tested by

no test coverage detected