import { createGuard } from '../../../../shared/foundation/guard.base.js';
import { mcpSettingsSchema } from '../../../../modules/cli-configuration/entities/mcpSettings/mcpSettings.schema.js';
const mcpSettingsGuard = createGuard(mcpSettingsSchema, 'mcpSettings');
export const isValidMcpSettings = mcpSettingsGuard.isValid;
export const safeParseMcpSettings = mcpSettingsGuard.safeParse;
export function parseMcpSettings(data) {
    return mcpSettingsSchema.passthrough().parse(data);
}
export function hasServerEntry(data, serverName) {
    const result = mcpSettingsGuard.safeParse(data);
    if (!result.success)
        return false;
    return serverName in result.data.mcpServers;
}
//# sourceMappingURL=mcpSettings.guard.js.map