@doist/todoist-mcp 10.4.0 → 10.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.
- package/README.md +0 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/{mcp-server-DUs6oq-a.js → mcp-server-Q106qiDw.js} +880 -841
- package/dist/{require-valid-todoist-token-BeOx8xgI.js → require-valid-todoist-token-CgDIhI0W.js} +1 -1
- package/dist/tool-execution-error.d.ts +8 -2
- package/dist/tool-execution-error.d.ts.map +1 -1
- package/dist/tools/add-reminders.d.ts +4 -4
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +4 -4
- package/dist/tools/update-reminders.d.ts +4 -4
- package/dist/utils/reminder-schemas.d.ts +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact single-line variant of {@link formatToolExecutionError} for batch
|
|
3
|
+
* tools that report per-item failures. Unlike `error.message` (which for SDK
|
|
4
|
+
* errors is just "HTTP 403: Forbidden"), this preserves the API error signals
|
|
5
|
+
* (status, code, tag) so failures like MAX_ITEMS_LIMIT_REACHED stay
|
|
6
|
+
* recognizable after aggregation.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatBatchItemError(error: unknown): string;
|
|
1
9
|
/**
|
|
2
10
|
* Format tool execution errors in a consistent, actionable format.
|
|
3
|
-
*
|
|
4
|
-
* This is the only public API exposed by this module.
|
|
5
11
|
*/
|
|
6
12
|
export declare function formatToolExecutionError(error: unknown): string;
|
|
7
13
|
//# sourceMappingURL=tool-execution-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-execution-error.d.ts","sourceRoot":"","sources":["../src/tool-execution-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool-execution-error.d.ts","sourceRoot":"","sources":["../src/tool-execution-error.ts"],"names":[],"mappings":"AAqfA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAc3D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAW/D"}
|
|
@@ -8,8 +8,8 @@ declare const addReminders: {
|
|
|
8
8
|
taskId: z.ZodString;
|
|
9
9
|
minuteOffset: z.ZodNumber;
|
|
10
10
|
service: z.ZodOptional<z.ZodEnum<{
|
|
11
|
-
email: "email";
|
|
12
11
|
push: "push";
|
|
12
|
+
email: "email";
|
|
13
13
|
}>>;
|
|
14
14
|
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -22,8 +22,8 @@ declare const addReminders: {
|
|
|
22
22
|
lang: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
service: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
email: "email";
|
|
26
25
|
push: "push";
|
|
26
|
+
email: "email";
|
|
27
27
|
}>>;
|
|
28
28
|
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -79,7 +79,7 @@ declare const addReminders: {
|
|
|
79
79
|
type: "relative";
|
|
80
80
|
taskId: string;
|
|
81
81
|
minuteOffset: number;
|
|
82
|
-
service?: "
|
|
82
|
+
service?: "push" | "email" | undefined;
|
|
83
83
|
isUrgent?: boolean | undefined;
|
|
84
84
|
} | {
|
|
85
85
|
type: "absolute";
|
|
@@ -90,7 +90,7 @@ declare const addReminders: {
|
|
|
90
90
|
timezone?: string | undefined;
|
|
91
91
|
lang?: string | undefined;
|
|
92
92
|
};
|
|
93
|
-
service?: "
|
|
93
|
+
service?: "push" | "email" | undefined;
|
|
94
94
|
isUrgent?: boolean | undefined;
|
|
95
95
|
} | {
|
|
96
96
|
type: "location";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiBvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AA0DlC,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmDwB,MAAM;uBAAS,MAAM;;;;;;;CA0CI,CAAA;AAkL/D,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -4,8 +4,8 @@ declare const deleteObject: {
|
|
|
4
4
|
description: string;
|
|
5
5
|
parameters: {
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
|
-
label: "label";
|
|
8
7
|
filter: "filter";
|
|
8
|
+
label: "label";
|
|
9
9
|
comment: "comment";
|
|
10
10
|
reminder: "reminder";
|
|
11
11
|
task: "task";
|
|
@@ -19,8 +19,8 @@ declare const deleteObject: {
|
|
|
19
19
|
outputSchema: {
|
|
20
20
|
deletedEntity: z.ZodObject<{
|
|
21
21
|
type: z.ZodEnum<{
|
|
22
|
-
label: "label";
|
|
23
22
|
filter: "filter";
|
|
23
|
+
label: "label";
|
|
24
24
|
comment: "comment";
|
|
25
25
|
reminder: "reminder";
|
|
26
26
|
task: "task";
|
|
@@ -39,13 +39,13 @@ declare const deleteObject: {
|
|
|
39
39
|
idempotentHint: true;
|
|
40
40
|
};
|
|
41
41
|
execute(args: {
|
|
42
|
-
type: "
|
|
42
|
+
type: "filter" | "label" | "comment" | "reminder" | "task" | "project" | "section" | "goal" | "location_reminder";
|
|
43
43
|
id: string;
|
|
44
44
|
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
45
45
|
textContent: string;
|
|
46
46
|
structuredContent: {
|
|
47
47
|
deletedEntity: {
|
|
48
|
-
type: "
|
|
48
|
+
type: "filter" | "label" | "comment" | "reminder" | "task" | "project" | "section" | "goal" | "location_reminder";
|
|
49
49
|
id: string;
|
|
50
50
|
};
|
|
51
51
|
success: true;
|
|
@@ -8,8 +8,8 @@ declare const updateReminders: {
|
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
service: z.ZodOptional<z.ZodEnum<{
|
|
11
|
-
email: "email";
|
|
12
11
|
push: "push";
|
|
12
|
+
email: "email";
|
|
13
13
|
}>>;
|
|
14
14
|
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -22,8 +22,8 @@ declare const updateReminders: {
|
|
|
22
22
|
lang: z.ZodOptional<z.ZodString>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
24
|
service: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
email: "email";
|
|
26
25
|
push: "push";
|
|
26
|
+
email: "email";
|
|
27
27
|
}>>;
|
|
28
28
|
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -79,7 +79,7 @@ declare const updateReminders: {
|
|
|
79
79
|
type: "relative";
|
|
80
80
|
id: string;
|
|
81
81
|
minuteOffset?: number | undefined;
|
|
82
|
-
service?: "
|
|
82
|
+
service?: "push" | "email" | undefined;
|
|
83
83
|
isUrgent?: boolean | undefined;
|
|
84
84
|
} | {
|
|
85
85
|
type: "absolute";
|
|
@@ -90,7 +90,7 @@ declare const updateReminders: {
|
|
|
90
90
|
timezone?: string | undefined;
|
|
91
91
|
lang?: string | undefined;
|
|
92
92
|
} | undefined;
|
|
93
|
-
service?: "
|
|
93
|
+
service?: "push" | "email" | undefined;
|
|
94
94
|
isUrgent?: boolean | undefined;
|
|
95
95
|
} | {
|
|
96
96
|
type: "location";
|
|
@@ -7,8 +7,8 @@ export declare const MAX_REMINDERS_PER_OPERATION = 25;
|
|
|
7
7
|
* Shared schema for reminder delivery service (email or push).
|
|
8
8
|
*/
|
|
9
9
|
export declare const ReminderServiceSchema: z.ZodEnum<{
|
|
10
|
-
email: "email";
|
|
11
10
|
push: "push";
|
|
11
|
+
email: "email";
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
|
14
14
|
* Shared schema for reminder due date input.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/todoist-mcp",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"prepare": "husky"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@doist/todoist-sdk": "10.
|
|
63
|
+
"@doist/todoist-sdk": "10.5.0",
|
|
64
64
|
"@modelcontextprotocol/ext-apps": "1.2.2",
|
|
65
65
|
"date-fns": "4.1.0",
|
|
66
66
|
"dompurify": "3.3.3",
|
|
@@ -72,37 +72,37 @@
|
|
|
72
72
|
"@modelcontextprotocol/sdk": "^1.25.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@modelcontextprotocol/inspector": "0.
|
|
75
|
+
"@modelcontextprotocol/inspector": "0.22.0",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/exec": "7.1.0",
|
|
78
78
|
"@semantic-release/git": "10.0.1",
|
|
79
79
|
"@types/dompurify": "3.2.0",
|
|
80
80
|
"@types/express": "5.0.6",
|
|
81
81
|
"@types/morgan": "1.9.10",
|
|
82
|
-
"@types/node": "22.
|
|
82
|
+
"@types/node": "22.20.0",
|
|
83
83
|
"@types/react": "19.2.17",
|
|
84
84
|
"@types/react-dom": "19.2.3",
|
|
85
85
|
"@vitejs/plugin-react": "5.2.0",
|
|
86
|
-
"concurrently": "9.2.
|
|
86
|
+
"concurrently": "9.2.3",
|
|
87
87
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
88
88
|
"gpt-tokenizer": "3.4.0",
|
|
89
89
|
"husky": "9.1.7",
|
|
90
90
|
"lint-staged": "16.4.0",
|
|
91
|
-
"morgan": "1.
|
|
91
|
+
"morgan": "1.11.0",
|
|
92
92
|
"nodemon": "3.1.14",
|
|
93
|
-
"oxfmt": "0.
|
|
94
|
-
"oxlint": "1.
|
|
93
|
+
"oxfmt": "0.55.0",
|
|
94
|
+
"oxlint": "1.70.0",
|
|
95
95
|
"react": "19.2.7",
|
|
96
96
|
"react-dom": "19.2.7",
|
|
97
97
|
"rimraf": "6.1.3",
|
|
98
|
-
"semantic-release": "25.0.
|
|
98
|
+
"semantic-release": "25.0.5",
|
|
99
99
|
"snarkdown": "2.0.0",
|
|
100
|
-
"tsx": "4.
|
|
100
|
+
"tsx": "4.22.4",
|
|
101
101
|
"typescript": "6.0.3",
|
|
102
102
|
"vite": "7.3.5",
|
|
103
103
|
"vite-plugin-dts": "4.5.4",
|
|
104
104
|
"vite-plugin-singlefile": "2.3.3",
|
|
105
|
-
"vitest": "4.1.
|
|
105
|
+
"vitest": "4.1.9"
|
|
106
106
|
},
|
|
107
107
|
"lint-staged": {
|
|
108
108
|
"*.{ts,tsx,js,jsx}": [
|