@taazkareem/clickup-mcp-server 0.4.70 → 0.4.72

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taazkareem/clickup-mcp-server",
3
- "version": "0.4.70",
3
+ "version": "0.4.72",
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",