@taazkareem/clickup-mcp-server 0.4.63 → 0.4.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,15 +239,6 @@ export class BaseClickUpService {
239
239
  * @param details - Details about the operation
240
240
  */
241
241
  logOperation(operation, details) {
242
- // This could be enhanced to use a proper logging framework
243
- console.log(`[ClickUpService] ${operation}:`, details);
244
- }
245
- /**
246
- * Protected helper method to check if cache is available
247
- * @param cacheService Optional cache service instance
248
- * @returns True if caching is available and enabled
249
- */
250
- isCacheEnabled(cacheService) {
251
- return !!cacheService && typeof cacheService.isEnabled === 'function' && cacheService.isEnabled();
242
+ console.log(`[${new Date().toISOString()}] ${operation}:`, details);
252
243
  }
253
244
  }
@@ -13,13 +13,11 @@ export { WorkspaceService } from './workspace.js';
13
13
  export { TaskService } from './task.js';
14
14
  export { ListService } from './list.js';
15
15
  export { FolderService } from './folder.js';
16
- export { InitializationService } from './initialization.js';
17
16
  // Import service classes for the factory function
18
17
  import { WorkspaceService } from './workspace.js';
19
18
  import { TaskService } from './task.js';
20
19
  import { ListService } from './list.js';
21
20
  import { FolderService } from './folder.js';
22
- import { InitializationService } from './initialization.js';
23
21
  /**
24
22
  * Factory function to create instances of all ClickUp services
25
23
  * @param config Configuration for the services
@@ -33,11 +31,6 @@ export function createClickUpServices(config) {
33
31
  workspace: workspaceService,
34
32
  task: new TaskService(apiKey, teamId, baseUrl, workspaceService),
35
33
  list: new ListService(apiKey, teamId, baseUrl, workspaceService),
36
- folder: new FolderService(apiKey, teamId, baseUrl, workspaceService),
37
- initialization: new InitializationService({
38
- apiKey,
39
- teamId,
40
- baseUrl
41
- })
34
+ folder: new FolderService(apiKey, teamId, baseUrl, workspaceService)
42
35
  };
43
36
  }
@@ -99,7 +99,7 @@ export class WorkspaceService extends BaseClickUpService {
99
99
  */
100
100
  async getWorkspaceHierarchy(forceRefresh = false) {
101
101
  try {
102
- // If we have a cached result and not forcing refresh, return it
102
+ // If we have the hierarchy in memory and not forcing refresh, return it
103
103
  if (this.workspaceHierarchy && !forceRefresh) {
104
104
  return this.workspaceHierarchy;
105
105
  }
@@ -164,9 +164,9 @@ export class WorkspaceService extends BaseClickUpService {
164
164
  }
165
165
  }
166
166
  /**
167
- * Invalidate the workspace hierarchy cache
167
+ * Clear the stored workspace hierarchy, forcing a fresh fetch on next request
168
168
  */
169
- invalidateWorkspaceCache() {
169
+ clearWorkspaceHierarchy() {
170
170
  this.workspaceHierarchy = null;
171
171
  }
172
172
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taazkareem/clickup-mcp-server",
3
- "version": "0.4.63",
3
+ "version": "0.4.64",
4
4
  "description": "ClickUp MCP Server - Integrate ClickUp tasks with AI through Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
@@ -18,9 +18,7 @@
18
18
  "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
19
19
  "start": "node build/index.js",
20
20
  "dev": "tsc -w",
21
- "prepare": "npm run build",
22
- "prepublishOnly": "npm test",
23
- "test": "echo \"No tests specified\" && exit 0"
21
+ "prepare": "npm run build"
24
22
  },
25
23
  "keywords": [
26
24
  "clickup",
@@ -1,28 +0,0 @@
1
- import { WorkspaceService } from "./workspace.js";
2
- /**
3
- * Service responsible for initializing the server state
4
- * Handles preloading workspace data
5
- */
6
- export class InitializationService {
7
- constructor(config) {
8
- // Create workspace service
9
- this.workspaceService = new WorkspaceService(config.apiKey, config.teamId, config.baseUrl);
10
- }
11
- /**
12
- * Preload workspace hierarchy data on server startup
13
- * This loads the entire workspace tree for faster initial access
14
- */
15
- async preloadWorkspaceData() {
16
- try {
17
- console.log("Preloading workspace data...");
18
- const startTime = Date.now();
19
- // Force refresh to get the latest data
20
- await this.workspaceService.getWorkspaceHierarchy(true);
21
- const duration = (Date.now() - startTime) / 1000;
22
- console.log(`Workspace data preloaded successfully in ${duration.toFixed(2)}s`);
23
- }
24
- catch (error) {
25
- console.error("Failed to preload workspace data:", error);
26
- }
27
- }
28
- }