@taazkareem/clickup-mcp-server 0.2.3 → 0.2.5
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/Dockerfile.smithery +36 -0
- package/LICENSE +6 -0
- package/README.md +30 -60
- package/build/config.js +5 -7
- package/build/index.js +5 -5
- package/build/services/clickup.js +16 -16
- package/package.json +4 -2
- package/smithery.yaml +23 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Use a Node.js base image
|
|
2
|
+
FROM node:18-alpine AS builder
|
|
3
|
+
|
|
4
|
+
# Set the working directory
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
# Copy package files and TypeScript config
|
|
8
|
+
COPY package.json package-lock.json tsconfig.json ./
|
|
9
|
+
|
|
10
|
+
# Copy the source files
|
|
11
|
+
COPY src/ ./src/
|
|
12
|
+
|
|
13
|
+
# Install dependencies and build
|
|
14
|
+
RUN npm install
|
|
15
|
+
RUN npm run build
|
|
16
|
+
|
|
17
|
+
# Use a smaller image for the runtime
|
|
18
|
+
FROM node:18-alpine AS runtime
|
|
19
|
+
|
|
20
|
+
# Set the working directory
|
|
21
|
+
WORKDIR /app
|
|
22
|
+
|
|
23
|
+
# Copy the build output and node_modules from the builder stage
|
|
24
|
+
COPY --from=builder /app/build ./build
|
|
25
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
26
|
+
COPY --from=builder /app/package.json ./
|
|
27
|
+
|
|
28
|
+
# Set environment variables (these will be overridden by Smithery)
|
|
29
|
+
ENV CLICKUP_API_KEY=placeholder
|
|
30
|
+
ENV CLICKUP_TEAM_ID=placeholder
|
|
31
|
+
|
|
32
|
+
# Expose the port if needed
|
|
33
|
+
EXPOSE 8080
|
|
34
|
+
|
|
35
|
+
# Define the command to run the application
|
|
36
|
+
CMD ["node", "build/index.js"]
|
package/LICENSE
CHANGED
|
@@ -19,3 +19,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
Disclaimer: This software makes use of third-party APIs and may reference trademarks
|
|
24
|
+
or brands owned by third parties. The use of such APIs or references does not imply
|
|
25
|
+
any affiliation with or endorsement by the respective companies. All trademarks and
|
|
26
|
+
brand names are the property of their respective owners. This project is an independent
|
|
27
|
+
work and is not officially associated with or sponsored by any third-party company mentioned.
|
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="https://clickup.com/assets/brand/logo-v3-clickup-dark.svg" alt="ClickUp" height="40" style="vertical-align: middle; margin-top: -4px;">
|
|
2
|
+
|
|
3
|
+
# MCP Server
|
|
2
4
|
|
|
3
5
|
A Model Context Protocol (MCP) server for integrating ClickUp tasks with AI applications. This server allows AI agents to interact with ClickUp tasks, spaces, lists, and folders through a standardized protocol.
|
|
4
6
|
|
|
@@ -12,7 +14,9 @@ Directions for use with Cursor Composer Agent:
|
|
|
12
14
|
2. Go to Features in settings
|
|
13
15
|
3. Add under MCP Servers:
|
|
14
16
|
```bash
|
|
15
|
-
npx -y @taazkareem/clickup-mcp-server
|
|
17
|
+
npx -y @taazkareem/clickup-mcp-server \
|
|
18
|
+
--env CLICKUP_API_KEY=your_api_key_here \
|
|
19
|
+
--env CLICKUP_TEAM_ID=your_team_id_here
|
|
16
20
|
```
|
|
17
21
|
4. Replace the credentials and click Save
|
|
18
22
|
5. Use Natural Language to interact with your ClickUp Workspace!
|
|
@@ -31,7 +35,7 @@ npx -y @taazkareem/clickup-mcp-server --env CLICKUP_API_KEY=your_api_key_here --
|
|
|
31
35
|
- List and folder management in spaces
|
|
32
36
|
- Smart caching to reduce API calls
|
|
33
37
|
- Name/ID-based item lookup
|
|
34
|
-
|
|
38
|
+
|
|
35
39
|
|
|
36
40
|
- 🔄 **Smart Integration**
|
|
37
41
|
- Case-insensitive name lookups
|
|
@@ -47,61 +51,30 @@ npx -y @taazkareem/clickup-mcp-server --env CLICKUP_API_KEY=your_api_key_here --
|
|
|
47
51
|
|
|
48
52
|
## Available Tools
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
**update_task** `(taskId|taskName, ?listName)`
|
|
68
|
-
Update task name, description, status, priority (1-4), dueDate.
|
|
69
|
-
|
|
70
|
-
**delete_task** `(taskId|taskName, ?listName)`
|
|
71
|
-
Permanently delete a task.
|
|
72
|
-
|
|
73
|
-
**move_task** `(taskId|taskName, destinationListId|destinationListName, ?sourceListName)`
|
|
74
|
-
Move task to different list, preserving task data.
|
|
75
|
-
|
|
76
|
-
**duplicate_task** `(taskId|taskName, destinationListId|destinationListName, ?sourceListName)`
|
|
77
|
-
Create copy of task in specified list.
|
|
78
|
-
|
|
79
|
-
### List & Folder Tools
|
|
80
|
-
**create_list** `(spaceId|spaceName, listName)`
|
|
81
|
-
Create list with optional content, dueDate, priority (1-4), assignee.
|
|
82
|
-
|
|
83
|
-
**create_folder** `(spaceId|spaceName, folderName, ?overrideStatuses)`
|
|
84
|
-
Create folder in space.
|
|
85
|
-
|
|
86
|
-
**create_list_in_folder** `(folderId|folderName, listName)`
|
|
87
|
-
Create list in folder with optional content and status.
|
|
54
|
+
| Tool | Description | Required Parameters |
|
|
55
|
+
|------|-------------|-------------------|
|
|
56
|
+
| [get_workspace_hierarchy](docs/tools.md#workspace-organization) | Get complete workspace structure | None |
|
|
57
|
+
| [get_tasks](docs/tools.md#task-management) | Retrieve tasks from a list | `listId` or `listName` |
|
|
58
|
+
| [get_task](docs/tools.md#task-management) | Get single task details | `taskId` or `taskName` |
|
|
59
|
+
| [create_task](docs/tools.md#task-management) | Create a new task | `listId`, `taskName` |
|
|
60
|
+
| [create_bulk_tasks](docs/tools.md#task-management) | Create multiple tasks | `listId`, `tasks[]` |
|
|
61
|
+
| [update_task](docs/tools.md#task-management) | Modify task properties | `taskId` or `taskName` |
|
|
62
|
+
| [delete_task](docs/tools.md#task-management) | Remove a task | `taskId` or `taskName` |
|
|
63
|
+
| [move_task](docs/tools.md#task-management) | Move task to another list | `taskId`, `destinationListId` |
|
|
64
|
+
| [duplicate_task](docs/tools.md#task-management) | Copy task to another list | `taskId`, `destinationListId` |
|
|
65
|
+
| [create_list](docs/tools.md#list-management) | Create a new list | `spaceId`, `listName` |
|
|
66
|
+
| [create_folder](docs/tools.md#folder-management) | Create a new folder | `spaceId`, `folderName` |
|
|
67
|
+
| [create_list_in_folder](docs/tools.md#list-management) | Create list in folder | `folderId`, `listName` |
|
|
68
|
+
|
|
69
|
+
See [full documentation](docs/tools.md) for optional parameters and advanced usage.
|
|
88
70
|
|
|
89
71
|
## Available Prompts
|
|
90
72
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
2. **analyze_priorities**
|
|
97
|
-
- Reviews current task priorities
|
|
98
|
-
- Suggests priority adjustments
|
|
99
|
-
- Recommends task sequencing
|
|
100
|
-
|
|
101
|
-
3. **generate_description**
|
|
102
|
-
- Interactive prompt for creating task descriptions
|
|
103
|
-
- Helps structure task information
|
|
104
|
-
- Includes objectives, criteria, and dependencies
|
|
73
|
+
| Prompt | Purpose | Features |
|
|
74
|
+
|--------|---------|----------|
|
|
75
|
+
| [summarize_tasks](docs/tools.md#prompts) | Generate task overview | Status summary, relationships, current states |
|
|
76
|
+
| [analyze_priorities](docs/tools.md#prompts) | Review task priorities | Priority review, adjustments, sequencing |
|
|
77
|
+
| [generate_description](docs/tools.md#prompts) | Create task descriptions | Structure, objectives, dependencies |
|
|
105
78
|
|
|
106
79
|
## Error Handling
|
|
107
80
|
|
|
@@ -115,12 +88,9 @@ The server provides clear error messages for:
|
|
|
115
88
|
|
|
116
89
|
## Support the Developer
|
|
117
90
|
|
|
118
|
-
If you find this project useful, please consider supporting
|
|
119
|
-
Talib Kareem (taazkareem@icloud.com)
|
|
120
|
-
|
|
121
|
-
[](https://www.buymeacoffee.com/taazkareem)
|
|
91
|
+
If you find this project useful, please consider supporting
|
|
122
92
|
|
|
123
|
-
|
|
93
|
+
[](https://github.com/sponsors/TaazKareem)
|
|
124
94
|
|
|
125
95
|
## Contributing
|
|
126
96
|
|
package/build/config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Parse command line arguments for --env flags
|
|
2
1
|
const args = process.argv.slice(2);
|
|
3
2
|
const envArgs = {};
|
|
4
3
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -6,16 +5,15 @@ for (let i = 0; i < args.length; i++) {
|
|
|
6
5
|
const [key, value] = args[i + 1].split('=');
|
|
7
6
|
if (key === 'CLICKUP_API_KEY')
|
|
8
7
|
envArgs.clickupApiKey = value;
|
|
9
|
-
if (key === '
|
|
10
|
-
envArgs.
|
|
11
|
-
i++;
|
|
8
|
+
if (key === 'CLICKUP_TEAM_ID')
|
|
9
|
+
envArgs.clickupTeamId = value;
|
|
10
|
+
i++;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
const configuration = {
|
|
15
|
-
clickupApiKey: envArgs.clickupApiKey || '',
|
|
16
|
-
|
|
14
|
+
clickupApiKey: envArgs.clickupApiKey || process.env.CLICKUP_API_KEY || '',
|
|
15
|
+
clickupTeamId: envArgs.clickupTeamId || process.env.CLICKUP_TEAM_ID || '',
|
|
17
16
|
};
|
|
18
|
-
// Check for missing environment variables
|
|
19
17
|
const missingEnvVars = Object.entries(configuration)
|
|
20
18
|
.filter(([_, value]) => !value)
|
|
21
19
|
.map(([key]) => key);
|
package/build/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema
|
|
|
25
25
|
import { ClickUpService } from "./services/clickup.js";
|
|
26
26
|
import config from "./config.js";
|
|
27
27
|
// Initialize ClickUp service
|
|
28
|
-
const clickup = ClickUpService.initialize(config.clickupApiKey, config.
|
|
28
|
+
const clickup = ClickUpService.initialize(config.clickupApiKey, config.clickupTeamId);
|
|
29
29
|
/**
|
|
30
30
|
* Create an MCP server with capabilities for tools and prompts.
|
|
31
31
|
* Resources have been removed as they are being replaced with direct tool calls.
|
|
@@ -48,7 +48,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
48
48
|
tools: [
|
|
49
49
|
{
|
|
50
50
|
name: "get_workspace_hierarchy",
|
|
51
|
-
description: "Get the complete hierarchy of spaces, folders, and lists in the workspace.
|
|
51
|
+
description: "Get the complete hierarchy of spaces, folders, and lists in the workspace. Important: If looking up information, first check chat history for space, folder, and list names or ID matches. If not found, use this tool to get necessary information.",
|
|
52
52
|
inputSchema: {
|
|
53
53
|
type: "object",
|
|
54
54
|
properties: {},
|
|
@@ -366,7 +366,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
name: "get_tasks",
|
|
369
|
-
description: "Get tasks from a ClickUp list with optional filters. Supports direct name-based lookup for lists - no need to know the list ID. If the list doesn't exist, you can create it using create_list or create_list_in_folder.",
|
|
369
|
+
description: "Get tasks from a ClickUp list with optional filters. Supports direct name-based lookup for lists - no need to know the list ID. If the list doesn't exist, you can create it using create_list or create_list_in_folder. ",
|
|
370
370
|
inputSchema: {
|
|
371
371
|
type: "object",
|
|
372
372
|
properties: {
|
|
@@ -852,7 +852,7 @@ server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
|
852
852
|
try {
|
|
853
853
|
switch (request.params.name) {
|
|
854
854
|
case "summarize_tasks": {
|
|
855
|
-
const spaces = await clickup.getSpaces(config.
|
|
855
|
+
const spaces = await clickup.getSpaces(config.clickupTeamId);
|
|
856
856
|
const tasks = [];
|
|
857
857
|
// Gather all tasks
|
|
858
858
|
for (const space of spaces) {
|
|
@@ -893,7 +893,7 @@ server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
case "analyze_priorities": {
|
|
896
|
-
const spaces = await clickup.getSpaces(config.
|
|
896
|
+
const spaces = await clickup.getSpaces(config.clickupTeamId);
|
|
897
897
|
const tasks = [];
|
|
898
898
|
for (const space of spaces) {
|
|
899
899
|
const lists = await clickup.getLists(space.id);
|
|
@@ -6,10 +6,10 @@ import axios from 'axios';
|
|
|
6
6
|
export class ClickUpService {
|
|
7
7
|
client;
|
|
8
8
|
static instance;
|
|
9
|
-
|
|
9
|
+
clickupTeamId;
|
|
10
10
|
rateLimitRemaining = 100; // Default to lowest tier limit
|
|
11
11
|
rateLimitReset = 0;
|
|
12
|
-
constructor(apiKey,
|
|
12
|
+
constructor(apiKey, clickupTeamId) {
|
|
13
13
|
this.client = axios.create({
|
|
14
14
|
baseURL: 'https://api.clickup.com/api/v2',
|
|
15
15
|
headers: {
|
|
@@ -35,7 +35,7 @@ export class ClickUpService {
|
|
|
35
35
|
}
|
|
36
36
|
throw error;
|
|
37
37
|
});
|
|
38
|
-
this.
|
|
38
|
+
this.clickupTeamId = clickupTeamId;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Checks if we're close to hitting rate limits and waits if necessary.
|
|
@@ -73,13 +73,13 @@ export class ClickUpService {
|
|
|
73
73
|
/**
|
|
74
74
|
* Initializes the ClickUpService singleton instance.
|
|
75
75
|
* @param apiKey - The ClickUp API key for authentication
|
|
76
|
-
* @param
|
|
76
|
+
* @param clickupTeamId - The team/workspace ID to operate on
|
|
77
77
|
* @returns The singleton instance of ClickUpService
|
|
78
78
|
* @throws Error if initialization fails
|
|
79
79
|
*/
|
|
80
|
-
static initialize(apiKey,
|
|
80
|
+
static initialize(apiKey, clickupTeamId) {
|
|
81
81
|
if (!ClickUpService.instance) {
|
|
82
|
-
ClickUpService.instance = new ClickUpService(apiKey,
|
|
82
|
+
ClickUpService.instance = new ClickUpService(apiKey, clickupTeamId);
|
|
83
83
|
}
|
|
84
84
|
return ClickUpService.instance;
|
|
85
85
|
}
|
|
@@ -244,13 +244,13 @@ export class ClickUpService {
|
|
|
244
244
|
}
|
|
245
245
|
/**
|
|
246
246
|
* Gets all lists in the workspace.
|
|
247
|
-
* @param
|
|
247
|
+
* @param clickupTeamId - ID of the team/workspace
|
|
248
248
|
* @returns Promise resolving to array of ClickUpList objects
|
|
249
249
|
* @throws Error if the API request fails
|
|
250
250
|
*/
|
|
251
|
-
async getAllLists(
|
|
251
|
+
async getAllLists(clickupTeamId) {
|
|
252
252
|
return this.makeRequest(async () => {
|
|
253
|
-
const response = await this.client.get(`/team/${
|
|
253
|
+
const response = await this.client.get(`/team/${clickupTeamId}/list`);
|
|
254
254
|
return response.data.lists;
|
|
255
255
|
});
|
|
256
256
|
}
|
|
@@ -267,9 +267,9 @@ export class ClickUpService {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
// Spaces
|
|
270
|
-
async getSpaces(
|
|
270
|
+
async getSpaces(clickupTeamId) {
|
|
271
271
|
return this.makeRequest(async () => {
|
|
272
|
-
const response = await this.client.get(`/team/${
|
|
272
|
+
const response = await this.client.get(`/team/${clickupTeamId}/space`);
|
|
273
273
|
return response.data.spaces;
|
|
274
274
|
});
|
|
275
275
|
}
|
|
@@ -279,8 +279,8 @@ export class ClickUpService {
|
|
|
279
279
|
return response.data;
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
async findSpaceByName(
|
|
283
|
-
const spaces = await this.getSpaces(
|
|
282
|
+
async findSpaceByName(clickupTeamId, spaceName) {
|
|
283
|
+
const spaces = await this.getSpaces(clickupTeamId);
|
|
284
284
|
return spaces.find(space => space.name.toLowerCase() === spaceName.toLowerCase()) || null;
|
|
285
285
|
}
|
|
286
286
|
/**
|
|
@@ -448,7 +448,7 @@ export class ClickUpService {
|
|
|
448
448
|
}
|
|
449
449
|
async findListByNameGlobally(listName) {
|
|
450
450
|
// First try the direct lists
|
|
451
|
-
const lists = await this.getAllLists(this.
|
|
451
|
+
const lists = await this.getAllLists(this.clickupTeamId);
|
|
452
452
|
const directList = lists.find(list => list.name.toLowerCase() === listName.toLowerCase());
|
|
453
453
|
if (directList)
|
|
454
454
|
return directList;
|
|
@@ -477,9 +477,9 @@ export class ClickUpService {
|
|
|
477
477
|
* @throws Error if API requests fail
|
|
478
478
|
*/
|
|
479
479
|
async getWorkspaceHierarchy() {
|
|
480
|
-
const spaces = await this.getSpaces(this.
|
|
480
|
+
const spaces = await this.getSpaces(this.clickupTeamId);
|
|
481
481
|
const root = {
|
|
482
|
-
id: this.
|
|
482
|
+
id: this.clickupTeamId,
|
|
483
483
|
name: 'Workspace',
|
|
484
484
|
type: 'workspace',
|
|
485
485
|
children: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taazkareem/clickup-mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
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",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"build",
|
|
12
12
|
"README.md",
|
|
13
|
-
"LICENSE"
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"Dockerfile.smithery",
|
|
15
|
+
"smithery.yaml"
|
|
14
16
|
],
|
|
15
17
|
"scripts": {
|
|
16
18
|
"build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
|
package/smithery.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
|
|
2
|
+
|
|
3
|
+
dockerfile: Dockerfile.smithery
|
|
4
|
+
|
|
5
|
+
startCommand:
|
|
6
|
+
type: stdio
|
|
7
|
+
configSchema:
|
|
8
|
+
# JSON Schema defining the configuration options for the MCP.
|
|
9
|
+
type: object
|
|
10
|
+
required:
|
|
11
|
+
- clickupApiKey
|
|
12
|
+
- clickupTeamId
|
|
13
|
+
properties:
|
|
14
|
+
clickupApiKey:
|
|
15
|
+
type: string
|
|
16
|
+
description: Your ClickUp API key.
|
|
17
|
+
clickupTeamId:
|
|
18
|
+
type: string
|
|
19
|
+
description: Your ClickUp Team ID.
|
|
20
|
+
commandFunction:
|
|
21
|
+
# A function that produces the CLI command to start the MCP on stdio.
|
|
22
|
+
|-
|
|
23
|
+
(config) => ({ command: 'node', args: ['build/index.js'], env: { CLICKUP_API_KEY: config.clickupApiKey, CLICKUP_TEAM_ID: config.clickupTeamId } })
|