@taazkareem/clickup-mcp-server 0.4.67 → 0.4.68
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.
- package/package.json +1 -1
- package/build/tools/cache.js +0 -40
package/package.json
CHANGED
package/build/tools/cache.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool definition for checking cache status
|
|
3
|
-
*/
|
|
4
|
-
export const checkCacheTool = {
|
|
5
|
-
name: 'check_cache',
|
|
6
|
-
description: 'Inspect the cache state and contents. Shows cache statistics and the workspace hierarchy.',
|
|
7
|
-
inputSchema: {
|
|
8
|
-
type: 'object',
|
|
9
|
-
properties: {
|
|
10
|
-
showStats: {
|
|
11
|
-
type: 'boolean',
|
|
12
|
-
description: 'Whether to include cache statistics in the response'
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* MCP tool for inspecting the cache state and contents
|
|
19
|
-
* @param cacheService The cache service instance
|
|
20
|
-
* @param params Parameters for the check_cache tool
|
|
21
|
-
* @returns Cache information based on the provided parameters
|
|
22
|
-
*/
|
|
23
|
-
export async function check_cache(cacheService, params) {
|
|
24
|
-
const response = {};
|
|
25
|
-
// Include cache statistics if requested
|
|
26
|
-
if (params.showStats) {
|
|
27
|
-
response.stats = cacheService.getStats();
|
|
28
|
-
}
|
|
29
|
-
// Get the workspace hierarchy
|
|
30
|
-
const workspaceHierarchy = cacheService.getWorkspaceHierarchy();
|
|
31
|
-
// Always include the hierarchy in the response
|
|
32
|
-
response.hierarchy = workspaceHierarchy;
|
|
33
|
-
// Return formatted response
|
|
34
|
-
return {
|
|
35
|
-
content: [{
|
|
36
|
-
type: 'text',
|
|
37
|
-
text: JSON.stringify(response, null, 2)
|
|
38
|
-
}]
|
|
39
|
-
};
|
|
40
|
-
}
|