ticktick-mcp 0.1.0

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 ADDED
@@ -0,0 +1,112 @@
1
+ # ticktick-mcp
2
+
3
+ A Model Context Protocol (MCP) server for TickTick task management integration. This server allows AI assistants like Claude to interact with your TickTick account to manage tasks and projects.
4
+
5
+ ## Features
6
+
7
+ - **OAuth 2.0 Authentication** - Secure authentication flow with token management
8
+ - **Project Management** - List, create, update, and delete projects
9
+ - **Task Management** - Full CRUD operations for tasks including:
10
+ - Create tasks with titles, descriptions, priorities, and due dates
11
+ - Set reminders and recurrence rules
12
+ - Add subtasks/checklists
13
+ - Batch create multiple tasks
14
+ - Complete and delete tasks
15
+ - **User Information** - Retrieve authenticated user details
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ npm install -g ticktick-mcp
21
+ ```
22
+
23
+ Or use directly with npx:
24
+
25
+ ```bash
26
+ npx ticktick-mcp
27
+ ```
28
+
29
+ ## Prerequisites
30
+
31
+ You'll need TickTick API credentials:
32
+
33
+ 1. Go to [TickTick Developer Portal](https://developer.ticktick.com/)
34
+ 2. Create a new application
35
+ 3. Note your Client ID and Client Secret
36
+ 4. Set the redirect URI to `http://localhost:8080/callback` (or your preferred callback URL)
37
+
38
+ ## Configuration
39
+
40
+ Set the following environment variables:
41
+
42
+ ```bash
43
+ export TICKTICK_CLIENT_ID="your-client-id"
44
+ export TICKTICK_CLIENT_SECRET="your-client-secret"
45
+ export TICKTICK_REDIRECT_URI="http://localhost:8080/callback" # Optional, defaults to this
46
+ export TICKTICK_REGION="global" # Optional: "global" or "cn" for China region
47
+ ```
48
+
49
+ ## Usage with Claude Desktop
50
+
51
+ Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
52
+
53
+ ```json
54
+ {
55
+ "mcpServers": {
56
+ "ticktick": {
57
+ "command": "npx",
58
+ "args": ["ticktick-mcp"],
59
+ "env": {
60
+ "TICKTICK_CLIENT_ID": "your-client-id",
61
+ "TICKTICK_CLIENT_SECRET": "your-client-secret"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ ## Available Tools
69
+
70
+ ### Authentication
71
+
72
+ - `auth_get_authorization_url` - Get OAuth authorization URL to start authentication
73
+ - `auth_exchange_code` - Exchange authorization code for tokens
74
+ - `auth_status` - Check current authentication status
75
+ - `auth_refresh_token` - Manually refresh access token
76
+ - `auth_logout` - Clear stored tokens
77
+
78
+ ### User
79
+
80
+ - `get_user` - Get current authenticated user information
81
+
82
+ ### Projects
83
+
84
+ - `list_projects` - List all projects
85
+ - `get_project` - Get project with all its tasks
86
+ - `get_project_by_id` - Get project metadata only
87
+ - `create_project` - Create a new project
88
+ - `update_project` - Update an existing project
89
+ - `delete_project` - Delete a project
90
+
91
+ ### Tasks
92
+
93
+ - `list_tasks_in_project` - List all tasks in a project
94
+ - `get_task` - Get a specific task
95
+ - `create_task` - Create a new task
96
+ - `update_task` - Update an existing task
97
+ - `complete_task` - Mark a task as complete
98
+ - `delete_task` - Delete a task
99
+ - `batch_create_tasks` - Create multiple tasks at once
100
+
101
+ ## Authentication Flow
102
+
103
+ 1. Use `auth_get_authorization_url` to get the OAuth URL
104
+ 2. Open the URL in a browser and authorize the application
105
+ 3. Copy the `code` parameter from the callback URL
106
+ 4. Use `auth_exchange_code` with the code to complete authentication
107
+
108
+ Tokens are automatically refreshed when expired.
109
+
110
+ ## License
111
+
112
+ MIT
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * TickTick MCP Server
4
+ *
5
+ * A Model Context Protocol server for integrating with TickTick task management.
6
+ * This server provides tools for OAuth authentication and task/project operations.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}