@taazkareem/clickup-mcp-server 0.4.70 → 0.4.71
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/README.md +33 -16
- package/build/config.js +7 -4
- package/build/index.js +1 -1
- package/build/mcp-tools.js +64 -0
- package/build/server.js +4 -4
- package/build/server.log +374 -134
- package/build/services/clickup/bulk.js +132 -101
- package/build/services/clickup/task.js +40 -239
- package/build/tools/bulk-tasks.js +36 -0
- package/build/tools/task.js +614 -537
- package/build/tools/utils.js +8 -147
- package/build/utils/concurrency-utils.js +245 -0
- package/build/utils/date-utils.js +152 -0
- package/build/utils/params-utils.js +39 -0
- package/build/utils/resolver-utils.js +66 -0
- package/build/utils/sponsor-utils.js +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sponsor Utility Functions
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities for adding sponsor information to responses.
|
|
5
|
+
*/
|
|
6
|
+
import config from '../config.js';
|
|
7
|
+
/**
|
|
8
|
+
* Generate a sponsor message to be included in task responses
|
|
9
|
+
*
|
|
10
|
+
* @returns Object containing sponsor message and URL, or null if sponsor messages are disabled
|
|
11
|
+
*/
|
|
12
|
+
export function getSponsorMessage() {
|
|
13
|
+
// Skip if sponsor message is disabled
|
|
14
|
+
if (!config.enableSponsorMessage) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
message: "❤️ Support this project: If you find this integration valuable, please consider sponsoring the developer.",
|
|
19
|
+
url: config.sponsorUrl
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Enhances a task response with sponsor information if enabled
|
|
24
|
+
*
|
|
25
|
+
* @param taskResponse The original task response to enhance
|
|
26
|
+
* @returns Enhanced task response with sponsor information
|
|
27
|
+
*/
|
|
28
|
+
export function enhanceResponseWithSponsor(taskResponse) {
|
|
29
|
+
// Skip if sponsor message is disabled
|
|
30
|
+
if (!config.enableSponsorMessage) {
|
|
31
|
+
return taskResponse;
|
|
32
|
+
}
|
|
33
|
+
const sponsorInfo = getSponsorMessage();
|
|
34
|
+
if (!sponsorInfo) {
|
|
35
|
+
return taskResponse;
|
|
36
|
+
}
|
|
37
|
+
// Create a new response with sponsor information
|
|
38
|
+
const enhancedResponse = {
|
|
39
|
+
...taskResponse,
|
|
40
|
+
content: [
|
|
41
|
+
...(taskResponse.content || []),
|
|
42
|
+
{
|
|
43
|
+
type: "text",
|
|
44
|
+
text: `\n\n${sponsorInfo.message}\n${sponsorInfo.url}`
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
return enhancedResponse;
|
|
49
|
+
}
|
package/package.json
CHANGED