// tools/register-ide-tools.ts — Registers generate_ide_config MCP tool (SPEC-080).
import { safeLicensed } from './safe-handler.js';
import { handleIdeConfig } from './ide-config-handler.js';
import { IdeTargetEnum, IdeConfigScopeEnum } from './schemas/ide-config.js';
import { z } from 'zod';
export function registerIdeTools(server) {
    server.registerTool('generate_ide_config', {
        description: 'Generate MCP server configuration for your IDE. ' +
            'Supports VS Code, Cursor, Windsurf, JetBrains, Claude Desktop, Claude Code, Neovim, and ChatGPT. ' +
            'Use ide="auto" to detect installed IDEs and generate config for all of them.',
        inputSchema: {
            ide: IdeTargetEnum,
            projectPath: z.string().max(4096).optional().default('.').describe('Project root path'),
            scope: IdeConfigScopeEnum.optional()
                .default('project')
                .describe('Config scope: project | global'),
            dryRun: z
                .boolean()
                .optional()
                .default(false)
                .describe('Preview config without writing files'),
        },
        annotations: {
            title: 'Generate IDE Config',
        },
    }, safeLicensed('generate_ide_config', (args) => Promise.resolve(handleIdeConfig(args))));
}
//# sourceMappingURL=register-ide-tools.js.map