/**
 * olam mcp remove <service> — Remove an MCP credential from the vault.
 */
import { printError, printSuccess } from '../../output.js';
import { getMcpAuthClient } from './client.js';
export function registerMcpRemove(cmd) {
    cmd
        .command('remove <service>')
        .description('Remove an MCP credential by service ID')
        .action(async (service) => {
        const client = getMcpAuthClient();
        const result = await client.remove(service);
        if (!result.ok) {
            printError(result.error ?? `No credential found for: ${service}`);
            process.exitCode = 1;
            return;
        }
        printSuccess(`Removed credential for ${service}`);
    });
}
//# sourceMappingURL=remove.js.map