{"version":3,"sources":["jsdelivr-header.js","/npm/@rigo-m/clickup-mcp-server@0.8.0/build/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;OCiBS,yBAA4B,mDAE5B,KAAM,UAAa,qBACnB,eAAkB,cAc3B,eAAe,OACX,IAEI,aACA,KAAK,kCAEL,KAAK,qBAAsB,CACvB,IAAK,QAAQ,IACb,KAAM,QAAQ,QACd,GAAI,QAAQ,SACZ,KAAM,QAAQ,OAGlB,KAAK,uCACL,MAAM,QAAqB,OAAO,qBAC5B,EAAa,kBAEnB,KAAK,qCACL,MAAM,EAAY,IAAI,2BAChB,EAAa,OAAO,QAAQ,GAClC,KAAK,qDACT,CACA,MAAO,GACH,MAAM,8BAA+B,CAAE,QAAS,EAAI,QAAS,MAAO,EAAI,QACxE,QAAQ,KAAK,EACjB,CACJ,CAtCA,QAAQ,GAAG,qBAAsB,IAC7B,MAAM,qBAAsB,CAAE,QAAS,EAAI,QAAS,MAAO,EAAI,QAC/D,QAAQ,KAAK,EAAE,IAGnB,QAAQ,GAAG,sBAAsB,CAAC,EAAQ,KACtC,MAAM,sBAAuB,CAAE,WAC/B,QAAQ,KAAK,EAAE,IAgCnB,OAAO,OAAO,IACV,MAAM,yBAA0B,CAAE,QAAS,EAAI,QAAS,MAAO,EAAI,QACnE,QAAQ,KAAK,EAAE","file":"/npm/@rigo-m/clickup-mcp-server@0.8.0/build/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@rigo-m/clickup-mcp-server@0.8.0/build/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n/**\n * SPDX-FileCopyrightText: © 2025 Talib Kareem <taazkareem@icloud.com>\n * SPDX-License-Identifier: MIT\n *\n * ClickUp MCP Server\n *\n * This custom server implements the Model Context Protocol (MCP) specification to enable\n * AI applications to interact with ClickUp workspaces. It provides a standardized\n * interface for managing tasks, lists, folders and other ClickUp entities using Natural Language.\n *\n * Key Features:\n * - Complete task management (CRUD operations, moving, duplicating)\n * - Workspace organization (spaces, folders, lists)\n * - Bulk operations with concurrent processing\n * - Natural language date parsing\n * - File attachments support\n * - Name-based entity resolution\n * - Markdown formatting\n * - Built-in rate limiting\n *\n * For full documentation and usage examples, please refer to the README.md file.\n */\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\n// server.js is imported dynamically after configuration\nimport { info, error } from \"./logger.js\";\nimport { initConfig } from \"./config.js\";\n// Handle uncaught exceptions\nprocess.on('uncaughtException', (err) => {\n    error(\"Uncaught Exception\", { message: err.message, stack: err.stack });\n    process.exit(1);\n});\n// Handle unhandled promise rejections\nprocess.on('unhandledRejection', (reason, promise) => {\n    error(\"Unhandled Rejection\", { reason });\n    process.exit(1);\n});\n/**\n * Application entry point that configures and starts the MCP server.\n */\nasync function main() {\n    try {\n        // Initialize configuration from CLI args and environment\n        initConfig();\n        info(\"Starting ClickUp MCP Server...\");\n        // Log essential information about the environment\n        info(\"Server environment\", {\n            pid: process.pid,\n            node: process.version,\n            os: process.platform,\n            arch: process.arch\n        });\n        // Dynamically import and configure the server with all handlers\n        info(\"Configuring server request handlers\");\n        const serverModule = await import(\"./server.js\");\n        await serverModule.configureServer();\n        // Connect using stdio transport\n        info(\"Connecting to MCP stdio transport\");\n        const transport = new StdioServerTransport();\n        await serverModule.server.connect(transport);\n        info(\"Server startup complete - ready to handle requests\");\n    }\n    catch (err) {\n        error(\"Error during server startup\", { message: err.message, stack: err.stack });\n        process.exit(1);\n    }\n}\nmain().catch((err) => {\n    error(\"Unhandled server error\", { message: err.message, stack: err.stack });\n    process.exit(1);\n});\n"]}