@taazkareem/clickup-mcp-server 0.4.1 → 0.4.2

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.
Files changed (3) hide show
  1. package/README.md +3 -12
  2. package/build/index.js +31 -18
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -45,16 +45,11 @@ A Model Context Protocol (MCP) server for integrating ClickUp tasks with AI appl
45
45
 
46
46
  ## Installation
47
47
 
48
- ### Using npx (Recommended)
48
+ ### Using npx
49
49
  ```bash
50
50
  npx @taazkareem/clickup-mcp-server
51
51
  ```
52
52
 
53
- ### Global Installation
54
- ```bash
55
- npm install -g @taazkareem/clickup-mcp-server
56
- ```
57
-
58
53
  ## Configuration
59
54
 
60
55
  1. Get your ClickUp API key from [ClickUp Settings](https://app.clickup.com/settings/apps)
@@ -64,7 +59,7 @@ CLICKUP_API_KEY=your_api_key_here
64
59
  TEAM_ID=your_team_id_here
65
60
  ```
66
61
 
67
- ## Using with Cursor AI Composer
62
+ ## Using with Cursor AI Composer Agent
68
63
 
69
64
  To add this server to Cursor AI Composer, follow these steps:
70
65
 
@@ -72,17 +67,13 @@ To add this server to Cursor AI Composer, follow these steps:
72
67
  2. Add the following command under MCP Servers:
73
68
 
74
69
  ```bash
75
- npx -y @taazkareem/clickup-mcp-server \
70
+ npx -y @taazkareem/clickup-mcp-server --stdio \
76
71
  --env CLICKUP_API_KEY=your_api_key_here \
77
72
  --env TEAM_ID=your_team_id_here
78
73
  ```
79
74
  3. Replace `your_api_key_here` and `your_team_id_here` with your actual ClickUp credentials.
80
75
  4. Click on 'Save' to add the server.
81
76
 
82
- You can get these values from:
83
- - `CLICKUP_API_KEY`: Get from [ClickUp Settings > Apps](https://app.clickup.com/settings/apps)
84
- - `TEAM_ID`: Your ClickUp Team ID (found in the URL when viewing your workspace or via API)
85
-
86
77
  > **Security Note**: Your API key will be stored securely and will not be exposed to AI models.
87
78
 
88
79
  ### Available Tools
package/build/index.js CHANGED
@@ -659,24 +659,37 @@ server.setRequestHandler(GetPromptRequestSchema, async (request) => {
659
659
  throw error;
660
660
  }
661
661
  });
662
- // Start the server
663
- console.log('Setting up transport...');
664
- const transport = new StdioServerTransport();
665
- // Connect the server to the transport
666
- console.log('Connecting server to transport...');
667
- server.connect(transport).catch(error => {
668
- console.error('Error connecting server to transport:', error);
669
- process.exit(1);
670
- });
671
- // Handle process signals
672
- process.on('SIGINT', () => {
673
- console.log('Received SIGINT. Shutting down...');
674
- transport.close();
675
- });
676
- process.on('SIGTERM', () => {
677
- console.log('Received SIGTERM. Shutting down...');
678
- transport.close();
679
- });
662
+ if (process.argv.includes('--stdio')) {
663
+ console.log('Starting server in stdio mode...');
664
+ // Set up stdio transport
665
+ const transport = new StdioServerTransport();
666
+ // Connect server with better error handling
667
+ server.connect(transport)
668
+ .then(() => {
669
+ console.log('Server connected successfully to stdio transport');
670
+ // Keep the process alive
671
+ process.stdin.resume();
672
+ // Handle process termination
673
+ process.on('SIGINT', () => {
674
+ console.log('Received SIGINT. Shutting down...');
675
+ transport.close();
676
+ process.exit(0);
677
+ });
678
+ process.on('SIGTERM', () => {
679
+ console.log('Received SIGTERM. Shutting down...');
680
+ transport.close();
681
+ process.exit(0);
682
+ });
683
+ })
684
+ .catch(error => {
685
+ console.error('Failed to connect server to transport:', error);
686
+ process.exit(1);
687
+ });
688
+ }
689
+ else {
690
+ console.log('Starting server in standard mode...');
691
+ // Add your non-stdio server initialization here if needed
692
+ }
680
693
  // Prevent unhandled promise rejections from crashing the server
681
694
  process.on('unhandledRejection', (error) => {
682
695
  console.error('Unhandled promise rejection:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taazkareem/clickup-mcp-server",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
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",
@@ -15,6 +15,7 @@
15
15
  "scripts": {
16
16
  "build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
17
17
  "start": "node build/index.js",
18
+ "serve": "node build/index.js --stdio",
18
19
  "dev": "tsc -w",
19
20
  "prepare": "npm run build",
20
21
  "prepublishOnly": "npm test",