diff --git a/core/context/mcp/json/loadJsonMcpConfigs.ts b/core/context/mcp/json/loadJsonMcpConfigs.ts index 01ed60baed1..5600a27eec4 100644 --- a/core/context/mcp/json/loadJsonMcpConfigs.ts +++ b/core/context/mcp/json/loadJsonMcpConfigs.ts @@ -189,6 +189,7 @@ export async function loadJsonMcpConfigs( ...c.warnings.map((warning) => ({ fatal: false, message: warning, + uri: c.yamlConfig.sourceFile, })), ); return convertYamlMcpConfigToInternalMcpOptions( diff --git a/gui/src/pages/config/sections/ConfigsSection.tsx b/gui/src/pages/config/sections/ConfigsSection.tsx index 25d32ffed01..b7a6eaad891 100644 --- a/gui/src/pages/config/sections/ConfigsSection.tsx +++ b/gui/src/pages/config/sections/ConfigsSection.tsx @@ -34,16 +34,25 @@ export function ConfigsSection() { profiles.map((profile, index) => { const isSelected = profile.id === selectedProfile?.id; const errors = isSelected ? configError : profile.errors; + const hasFatalErrors = + errors && errors.some((error) => error.fatal); + const hasErrors = errors && errors.length > 0; return (