"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createPlaywrightCliServer = createPlaywrightCliServer;
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
const logger_1 = require("../../../lib/logger");
const tools_auth_1 = require("./tools-auth");
const tools_capture_1 = require("./tools-capture");
async function createPlaywrightCliServer(options) {
    const name = options?.name || 'long-tail-playwright-cli';
    const instance = new mcp_js_1.McpServer({ name, version: '1.0.0' });
    (0, tools_auth_1.registerAuthTools)(instance);
    (0, tools_capture_1.registerCaptureTools)(instance);
    logger_1.loggerRegistry.info(`[lt-mcp:playwright-cli] ${name} ready (5 tools registered)`);
    return instance;
}
