export const MCP_CONFIG_TARGETS = ["claude", "cursor", "opencode"];
export const MCP_CONFIG_DISPLAY_NAMES = {
    claude: ".mcp.json",
    cursor: ".cursor/mcp.json",
    opencode: "opencode.json"
};
const MCP_CONFIG_ALIASES = {
    claude: "claude",
    ".mcp": "claude",
    ".mcp.json": "claude",
    mcp: "claude",
    cursor: "cursor",
    ".cursor": "cursor",
    "cursor/mcp": "cursor",
    "cursor/mcp.json": "cursor",
    opencode: "opencode",
    "opencode.json": "opencode"
};
function normalizeToken(value) {
    return value.trim().toLowerCase();
}
export function parseDisabledMcpConfigs(input) {
    if (!input) {
        return [];
    }
    const tokens = input
        .split(/[,\s]+/)
        .map(normalizeToken)
        .filter(Boolean);
    if (tokens.length === 0) {
        return [];
    }
    if (tokens.includes("all")) {
        return [...MCP_CONFIG_TARGETS];
    }
    const disabled = new Set();
    for (const token of tokens) {
        if (token === "none") {
            continue;
        }
        const target = MCP_CONFIG_ALIASES[token];
        if (target) {
            disabled.add(target);
        }
    }
    return Array.from(disabled);
}
export function formatMcpConfigTargets(targets) {
    if (targets.length === 0) {
        return "";
    }
    return targets.map((target) => MCP_CONFIG_DISPLAY_NAMES[target]).join(", ");
}
//# sourceMappingURL=mcp-configs.js.map