import { McpService } from '../../../../core/mcp/index.js';
export class ControlPlaneMcpController {
    static list(workspaceRoot, stateRoot) {
        return ControlPlaneMcpController.service(workspaceRoot, stateRoot).listOverview();
    }
    static config(workspaceRoot, stateRoot) {
        return ControlPlaneMcpController.service(workspaceRoot, stateRoot).readConfigDocument();
    }
    static saveConfig(workspaceRoot, stateRoot, content) {
        return ControlPlaneMcpController.service(workspaceRoot, stateRoot).saveConfigDocument(content);
    }
    static enable(workspaceRoot, stateRoot, serverId) {
        return ControlPlaneMcpController.service(workspaceRoot, stateRoot).activateServer(serverId);
    }
    static disable(workspaceRoot, stateRoot, serverId) {
        return ControlPlaneMcpController.service(workspaceRoot, stateRoot).disableServer(serverId);
    }
    static async refresh(workspaceRoot, stateRoot, serverId) {
        return await ControlPlaneMcpController.service(workspaceRoot, stateRoot).refreshServer(serverId);
    }
    static service(workspaceRoot, stateRoot) {
        return new McpService({ workspaceRoot, stateRoot });
    }
}
//# sourceMappingURL=mcp.js.map