@doist/todoist-ai 0.1.2 → 0.1.4

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 (169) hide show
  1. package/dist/index.d.ts.map +1 -0
  2. package/dist/main.d.ts.map +1 -0
  3. package/dist/mcp-helpers.d.ts.map +1 -0
  4. package/dist/mcp-server.d.ts.map +1 -0
  5. package/dist/todoist-tool.d.ts.map +1 -0
  6. package/dist/tools/account-overview.d.ts.map +1 -0
  7. package/dist/tools/project-overview.d.ts.map +1 -0
  8. package/dist/tools/projects-add-one.d.ts.map +1 -0
  9. package/dist/tools/projects-delete-one.d.ts.map +1 -0
  10. package/dist/tools/projects-list.d.ts.map +1 -0
  11. package/dist/tools/projects-search.d.ts.map +1 -0
  12. package/dist/tools/projects-update-one.d.ts.map +1 -0
  13. package/dist/tools/sections-add-one.d.ts.map +1 -0
  14. package/dist/tools/sections-delete-one.d.ts.map +1 -0
  15. package/dist/tools/sections-search.d.ts.map +1 -0
  16. package/dist/tools/sections-update-one.d.ts.map +1 -0
  17. package/dist/tools/shared.d.ts.map +1 -0
  18. package/dist/tools/subtasks-list-for-parent-task.d.ts.map +1 -0
  19. package/dist/tools/tasks-add-multiple.d.ts.map +1 -0
  20. package/dist/tools/tasks-by-date-range.d.ts.map +1 -0
  21. package/dist/tools/tasks-by-project.d.ts.map +1 -0
  22. package/dist/tools/tasks-complete-multiple.d.ts.map +1 -0
  23. package/dist/tools/tasks-delete-one.d.ts.map +1 -0
  24. package/dist/tools/tasks-list-for-section.d.ts.map +1 -0
  25. package/dist/tools/tasks-list-overdue.d.ts.map +1 -0
  26. package/dist/tools/tasks-organize-multiple.d.ts.map +1 -0
  27. package/dist/tools/tasks-search.d.ts.map +1 -0
  28. package/dist/tools/tasks-update-one.d.ts.map +1 -0
  29. package/package.json +7 -20
  30. package/dist/esm/index.d.ts.map +0 -1
  31. package/dist/esm/index.js +0 -49
  32. package/dist/esm/main.d.ts.map +0 -1
  33. package/dist/esm/main.js +0 -23
  34. package/dist/esm/mcp-helpers.d.ts.map +0 -1
  35. package/dist/esm/mcp-helpers.js +0 -52
  36. package/dist/esm/mcp-server.d.ts.map +0 -1
  37. package/dist/esm/mcp-server.js +0 -66
  38. package/dist/esm/todoist-tool.d.ts.map +0 -1
  39. package/dist/esm/todoist-tool.js +0 -1
  40. package/dist/esm/tools/account-overview.d.ts.map +0 -1
  41. package/dist/esm/tools/account-overview.js +0 -94
  42. package/dist/esm/tools/project-overview.d.ts.map +0 -1
  43. package/dist/esm/tools/project-overview.js +0 -107
  44. package/dist/esm/tools/projects-add-one.d.ts.map +0 -1
  45. package/dist/esm/tools/projects-add-one.js +0 -15
  46. package/dist/esm/tools/projects-delete-one.d.ts.map +0 -1
  47. package/dist/esm/tools/projects-delete-one.js +0 -14
  48. package/dist/esm/tools/projects-list.d.ts.map +0 -1
  49. package/dist/esm/tools/projects-list.js +0 -30
  50. package/dist/esm/tools/projects-search.d.ts.map +0 -1
  51. package/dist/esm/tools/projects-search.js +0 -39
  52. package/dist/esm/tools/projects-update-one.d.ts.map +0 -1
  53. package/dist/esm/tools/projects-update-one.js +0 -16
  54. package/dist/esm/tools/sections-add-one.d.ts.map +0 -1
  55. package/dist/esm/tools/sections-add-one.js +0 -21
  56. package/dist/esm/tools/sections-delete-one.d.ts.map +0 -1
  57. package/dist/esm/tools/sections-delete-one.js +0 -14
  58. package/dist/esm/tools/sections-search.d.ts.map +0 -1
  59. package/dist/esm/tools/sections-search.js +0 -30
  60. package/dist/esm/tools/sections-update-one.d.ts.map +0 -1
  61. package/dist/esm/tools/sections-update-one.js +0 -16
  62. package/dist/esm/tools/shared.d.ts.map +0 -1
  63. package/dist/esm/tools/shared.js +0 -71
  64. package/dist/esm/tools/subtasks-list-for-parent-task.d.ts.map +0 -1
  65. package/dist/esm/tools/subtasks-list-for-parent-task.js +0 -37
  66. package/dist/esm/tools/tasks-add-multiple.d.ts.map +0 -1
  67. package/dist/esm/tools/tasks-add-multiple.js +0 -47
  68. package/dist/esm/tools/tasks-by-date-range.d.ts.map +0 -1
  69. package/dist/esm/tools/tasks-by-date-range.js +0 -47
  70. package/dist/esm/tools/tasks-by-project.d.ts.map +0 -1
  71. package/dist/esm/tools/tasks-by-project.js +0 -37
  72. package/dist/esm/tools/tasks-complete-multiple.d.ts.map +0 -1
  73. package/dist/esm/tools/tasks-complete-multiple.js +0 -26
  74. package/dist/esm/tools/tasks-delete-one.d.ts.map +0 -1
  75. package/dist/esm/tools/tasks-delete-one.js +0 -14
  76. package/dist/esm/tools/tasks-list-for-section.d.ts.map +0 -1
  77. package/dist/esm/tools/tasks-list-for-section.js +0 -37
  78. package/dist/esm/tools/tasks-list-overdue.d.ts.map +0 -1
  79. package/dist/esm/tools/tasks-list-overdue.js +0 -29
  80. package/dist/esm/tools/tasks-organize-multiple.d.ts.map +0 -1
  81. package/dist/esm/tools/tasks-organize-multiple.js +0 -40
  82. package/dist/esm/tools/tasks-search.d.ts.map +0 -1
  83. package/dist/esm/tools/tasks-search.js +0 -30
  84. package/dist/esm/tools/tasks-update-one.d.ts.map +0 -1
  85. package/dist/esm/tools/tasks-update-one.js +0 -42
  86. package/dist/types/index.d.ts +0 -476
  87. package/dist/types/main.d.ts +0 -1
  88. package/dist/types/mcp-helpers.d.ts +0 -12
  89. package/dist/types/mcp-server.d.ts +0 -10
  90. package/dist/types/todoist-tool.d.ts +0 -34
  91. package/dist/types/tools/account-overview.d.ts +0 -8
  92. package/dist/types/tools/project-overview.d.ts +0 -13
  93. package/dist/types/tools/projects-add-one.d.ts +0 -21
  94. package/dist/types/tools/projects-delete-one.d.ts +0 -14
  95. package/dist/types/tools/projects-list.d.ts +0 -17
  96. package/dist/types/tools/projects-search.d.ts +0 -28
  97. package/dist/types/tools/projects-update-one.d.ts +0 -14
  98. package/dist/types/tools/sections-add-one.d.ts +0 -14
  99. package/dist/types/tools/sections-delete-one.d.ts +0 -14
  100. package/dist/types/tools/sections-search.d.ts +0 -17
  101. package/dist/types/tools/sections-update-one.d.ts +0 -14
  102. package/dist/types/tools/shared.d.ts +0 -54
  103. package/dist/types/tools/subtasks-list-for-parent-task.d.ts +0 -30
  104. package/dist/types/tools/tasks-add-multiple.d.ts +0 -49
  105. package/dist/types/tools/tasks-by-date-range.d.ts +0 -32
  106. package/dist/types/tools/tasks-by-project.d.ts +0 -30
  107. package/dist/types/tools/tasks-complete-multiple.d.ts +0 -15
  108. package/dist/types/tools/tasks-delete-one.d.ts +0 -14
  109. package/dist/types/tools/tasks-list-for-section.d.ts +0 -30
  110. package/dist/types/tools/tasks-list-overdue.d.ts +0 -28
  111. package/dist/types/tools/tasks-organize-multiple.d.ts +0 -36
  112. package/dist/types/tools/tasks-search.d.ts +0 -30
  113. package/dist/types/tools/tasks-update-one.d.ts +0 -26
  114. /package/dist/{esm/index.d.ts → index.d.ts} +0 -0
  115. /package/dist/{cjs/index.js → index.js} +0 -0
  116. /package/dist/{esm/main.d.ts → main.d.ts} +0 -0
  117. /package/dist/{cjs/main.js → main.js} +0 -0
  118. /package/dist/{esm/mcp-helpers.d.ts → mcp-helpers.d.ts} +0 -0
  119. /package/dist/{cjs/mcp-helpers.js → mcp-helpers.js} +0 -0
  120. /package/dist/{esm/mcp-server.d.ts → mcp-server.d.ts} +0 -0
  121. /package/dist/{cjs/mcp-server.js → mcp-server.js} +0 -0
  122. /package/dist/{esm/todoist-tool.d.ts → todoist-tool.d.ts} +0 -0
  123. /package/dist/{cjs/todoist-tool.js → todoist-tool.js} +0 -0
  124. /package/dist/{esm/tools → tools}/account-overview.d.ts +0 -0
  125. /package/dist/{cjs/tools → tools}/account-overview.js +0 -0
  126. /package/dist/{esm/tools → tools}/project-overview.d.ts +0 -0
  127. /package/dist/{cjs/tools → tools}/project-overview.js +0 -0
  128. /package/dist/{esm/tools → tools}/projects-add-one.d.ts +0 -0
  129. /package/dist/{cjs/tools → tools}/projects-add-one.js +0 -0
  130. /package/dist/{esm/tools → tools}/projects-delete-one.d.ts +0 -0
  131. /package/dist/{cjs/tools → tools}/projects-delete-one.js +0 -0
  132. /package/dist/{esm/tools → tools}/projects-list.d.ts +0 -0
  133. /package/dist/{cjs/tools → tools}/projects-list.js +0 -0
  134. /package/dist/{esm/tools → tools}/projects-search.d.ts +0 -0
  135. /package/dist/{cjs/tools → tools}/projects-search.js +0 -0
  136. /package/dist/{esm/tools → tools}/projects-update-one.d.ts +0 -0
  137. /package/dist/{cjs/tools → tools}/projects-update-one.js +0 -0
  138. /package/dist/{esm/tools → tools}/sections-add-one.d.ts +0 -0
  139. /package/dist/{cjs/tools → tools}/sections-add-one.js +0 -0
  140. /package/dist/{esm/tools → tools}/sections-delete-one.d.ts +0 -0
  141. /package/dist/{cjs/tools → tools}/sections-delete-one.js +0 -0
  142. /package/dist/{esm/tools → tools}/sections-search.d.ts +0 -0
  143. /package/dist/{cjs/tools → tools}/sections-search.js +0 -0
  144. /package/dist/{esm/tools → tools}/sections-update-one.d.ts +0 -0
  145. /package/dist/{cjs/tools → tools}/sections-update-one.js +0 -0
  146. /package/dist/{esm/tools → tools}/shared.d.ts +0 -0
  147. /package/dist/{cjs/tools → tools}/shared.js +0 -0
  148. /package/dist/{esm/tools → tools}/subtasks-list-for-parent-task.d.ts +0 -0
  149. /package/dist/{cjs/tools → tools}/subtasks-list-for-parent-task.js +0 -0
  150. /package/dist/{esm/tools → tools}/tasks-add-multiple.d.ts +0 -0
  151. /package/dist/{cjs/tools → tools}/tasks-add-multiple.js +0 -0
  152. /package/dist/{esm/tools → tools}/tasks-by-date-range.d.ts +0 -0
  153. /package/dist/{cjs/tools → tools}/tasks-by-date-range.js +0 -0
  154. /package/dist/{esm/tools → tools}/tasks-by-project.d.ts +0 -0
  155. /package/dist/{cjs/tools → tools}/tasks-by-project.js +0 -0
  156. /package/dist/{esm/tools → tools}/tasks-complete-multiple.d.ts +0 -0
  157. /package/dist/{cjs/tools → tools}/tasks-complete-multiple.js +0 -0
  158. /package/dist/{esm/tools → tools}/tasks-delete-one.d.ts +0 -0
  159. /package/dist/{cjs/tools → tools}/tasks-delete-one.js +0 -0
  160. /package/dist/{esm/tools → tools}/tasks-list-for-section.d.ts +0 -0
  161. /package/dist/{cjs/tools → tools}/tasks-list-for-section.js +0 -0
  162. /package/dist/{esm/tools → tools}/tasks-list-overdue.d.ts +0 -0
  163. /package/dist/{cjs/tools → tools}/tasks-list-overdue.js +0 -0
  164. /package/dist/{esm/tools → tools}/tasks-organize-multiple.d.ts +0 -0
  165. /package/dist/{cjs/tools → tools}/tasks-organize-multiple.js +0 -0
  166. /package/dist/{esm/tools → tools}/tasks-search.d.ts +0 -0
  167. /package/dist/{cjs/tools → tools}/tasks-search.js +0 -0
  168. /package/dist/{esm/tools → tools}/tasks-update-one.d.ts +0 -0
  169. /package/dist/{cjs/tools → tools}/tasks-update-one.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"tasks-update-one.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks-update-one.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqCxB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAQsB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,42 +0,0 @@
1
- import { z } from "zod";
2
- const ArgsSchema = {
3
- id: z.string().min(1).describe("The ID of the task to update."),
4
- content: z.string().optional().describe("The new content of the task."),
5
- description: z
6
- .string()
7
- .optional()
8
- .describe("The new description of the task."),
9
- projectId: z
10
- .string()
11
- .optional()
12
- .describe("The new project ID for the task."),
13
- sectionId: z
14
- .string()
15
- .optional()
16
- .describe("The new section ID for the task."),
17
- parentId: z
18
- .string()
19
- .optional()
20
- .describe("The new parent task ID (for subtasks)."),
21
- priority: z
22
- .number()
23
- .int()
24
- .min(1)
25
- .max(4)
26
- .optional()
27
- .describe("The new priority of the task (1-4)."),
28
- dueString: z
29
- .string()
30
- .optional()
31
- .describe("The new due date for the task, in natural language (e.g., 'tomorrow at 5pm')."),
32
- };
33
- const tasksUpdateOne = {
34
- name: "tasks-update-one",
35
- description: "Update an existing task with new values.",
36
- parameters: ArgsSchema,
37
- async execute(args, client) {
38
- const { id, ...updateArgs } = args;
39
- return await client.updateTask(id, updateArgs);
40
- },
41
- };
42
- export { tasksUpdateOne };
@@ -1,476 +0,0 @@
1
- import { getMcpServer } from "./mcp-server.js";
2
- import { projectsAddOne } from "./tools/projects-add-one.js";
3
- import { projectsDeleteOne } from "./tools/projects-delete-one.js";
4
- import { projectsList } from "./tools/projects-list.js";
5
- import { projectsSearch } from "./tools/projects-search.js";
6
- import { projectsUpdateOne } from "./tools/projects-update-one.js";
7
- import { sectionsAddOne } from "./tools/sections-add-one.js";
8
- import { sectionsDeleteOne } from "./tools/sections-delete-one.js";
9
- import { sectionsSearch } from "./tools/sections-search.js";
10
- import { sectionsUpdateOne } from "./tools/sections-update-one.js";
11
- import { tasksAddMultiple } from "./tools/tasks-add-multiple.js";
12
- import { tasksListByDate } from "./tools/tasks-by-date-range.js";
13
- import { tasksListForProject } from "./tools/tasks-by-project.js";
14
- import { tasksCompleteMultiple } from "./tools/tasks-complete-multiple.js";
15
- import { tasksDeleteOne } from "./tools/tasks-delete-one.js";
16
- import { tasksListForSection } from "./tools/tasks-list-for-section.js";
17
- import { tasksListOverdue } from "./tools/tasks-list-overdue.js";
18
- import { tasksOrganizeMultiple } from "./tools/tasks-organize-multiple.js";
19
- import { tasksSearch } from "./tools/tasks-search.js";
20
- import { tasksUpdateOne } from "./tools/tasks-update-one.js";
21
- import { subtasksListForParentTask } from "./tools/subtasks-list-for-parent-task.js";
22
- import { accountOverview } from "./tools/account-overview.js";
23
- import { projectOverview } from "./tools/project-overview.js";
24
- declare const tools: {
25
- projectsList: {
26
- name: string;
27
- description: string;
28
- parameters: {
29
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
30
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
31
- };
32
- execute(args: {
33
- limit: number;
34
- cursor?: string | undefined;
35
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
36
- projects: import("@doist/todoist-api-typescript").Project[];
37
- nextCursor: string | null;
38
- }>;
39
- };
40
- projectsSearch: {
41
- name: string;
42
- description: string;
43
- parameters: {
44
- search: import("zod").ZodOptional<import("zod").ZodString>;
45
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
46
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
47
- };
48
- execute(args: {
49
- limit: number;
50
- cursor?: string | undefined;
51
- search?: string | undefined;
52
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
53
- projects: {
54
- id: string;
55
- name: string;
56
- color: string;
57
- isFavorite: boolean;
58
- isShared: boolean;
59
- parentId: string | null;
60
- inboxProject: boolean;
61
- viewStyle: string;
62
- }[];
63
- nextCursor: string | null;
64
- }>;
65
- };
66
- projectsAddOne: {
67
- name: string;
68
- description: string;
69
- parameters: {
70
- name: import("zod").ZodString;
71
- };
72
- execute(args: {
73
- name: string;
74
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
75
- id: string;
76
- name: string;
77
- color: string;
78
- isFavorite: boolean;
79
- isShared: boolean;
80
- parentId: string | null;
81
- inboxProject: boolean;
82
- viewStyle: string;
83
- }>;
84
- };
85
- projectsUpdateOne: {
86
- name: string;
87
- description: string;
88
- parameters: {
89
- id: import("zod").ZodString;
90
- name: import("zod").ZodString;
91
- };
92
- execute(args: {
93
- name: string;
94
- id: string;
95
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Project>;
96
- };
97
- projectsDeleteOne: {
98
- name: string;
99
- description: string;
100
- parameters: {
101
- id: import("zod").ZodString;
102
- };
103
- execute(args: {
104
- id: string;
105
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
106
- success: boolean;
107
- }>;
108
- };
109
- sectionsSearch: {
110
- name: string;
111
- description: string;
112
- parameters: {
113
- projectId: import("zod").ZodString;
114
- search: import("zod").ZodOptional<import("zod").ZodString>;
115
- };
116
- execute(args: {
117
- projectId: string;
118
- search?: string | undefined;
119
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
120
- id: string;
121
- name: string;
122
- }[]>;
123
- };
124
- sectionsAddOne: {
125
- name: string;
126
- description: string;
127
- parameters: {
128
- name: import("zod").ZodString;
129
- projectId: import("zod").ZodString;
130
- };
131
- execute(args: {
132
- name: string;
133
- projectId: string;
134
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Section>;
135
- };
136
- sectionsUpdateOne: {
137
- name: string;
138
- description: string;
139
- parameters: {
140
- id: import("zod").ZodString;
141
- name: import("zod").ZodString;
142
- };
143
- execute(args: {
144
- name: string;
145
- id: string;
146
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Section>;
147
- };
148
- sectionsDeleteOne: {
149
- name: string;
150
- description: string;
151
- parameters: {
152
- id: import("zod").ZodString;
153
- };
154
- execute(args: {
155
- id: string;
156
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
157
- success: boolean;
158
- }>;
159
- };
160
- tasksListByDate: {
161
- name: string;
162
- description: string;
163
- parameters: {
164
- startDate: import("zod").ZodString;
165
- daysCount: import("zod").ZodDefault<import("zod").ZodNumber>;
166
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
167
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
168
- };
169
- execute(args: {
170
- limit: number;
171
- startDate: string;
172
- daysCount: number;
173
- cursor?: string | undefined;
174
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
175
- tasks: {
176
- id: string;
177
- content: string;
178
- description: string;
179
- dueDate: string | undefined;
180
- recurring: string | boolean;
181
- priority: number;
182
- projectId: string;
183
- sectionId: string | null;
184
- parentId: string | null;
185
- labels: string[];
186
- }[];
187
- nextCursor: string | null;
188
- }>;
189
- };
190
- tasksDeleteOne: {
191
- name: string;
192
- description: string;
193
- parameters: {
194
- id: import("zod").ZodString;
195
- };
196
- execute(args: {
197
- id: string;
198
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
199
- success: boolean;
200
- }>;
201
- };
202
- tasksCompleteMultiple: {
203
- name: string;
204
- description: string;
205
- parameters: {
206
- ids: import("zod").ZodArray<import("zod").ZodString, "many">;
207
- };
208
- execute(args: {
209
- ids: string[];
210
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
211
- success: boolean;
212
- completed: string[];
213
- }>;
214
- };
215
- tasksListForProject: {
216
- name: string;
217
- description: string;
218
- parameters: {
219
- projectId: import("zod").ZodString;
220
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
221
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
222
- };
223
- execute(args: {
224
- limit: number;
225
- projectId: string;
226
- cursor?: string | undefined;
227
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
228
- tasks: {
229
- id: string;
230
- content: string;
231
- description: string;
232
- dueDate: string | undefined;
233
- recurring: string | boolean;
234
- priority: number;
235
- projectId: string;
236
- sectionId: string | null;
237
- parentId: string | null;
238
- labels: string[];
239
- }[];
240
- nextCursor: string | null;
241
- }>;
242
- };
243
- tasksListOverdue: {
244
- name: string;
245
- description: string;
246
- parameters: {
247
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
248
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
249
- };
250
- execute(args: {
251
- limit: number;
252
- cursor?: string | undefined;
253
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
254
- tasks: {
255
- id: string;
256
- content: string;
257
- description: string;
258
- dueDate: string | undefined;
259
- recurring: string | boolean;
260
- priority: number;
261
- projectId: string;
262
- sectionId: string | null;
263
- parentId: string | null;
264
- labels: string[];
265
- }[];
266
- nextCursor: string | null;
267
- }>;
268
- };
269
- tasksSearch: {
270
- name: string;
271
- description: string;
272
- parameters: {
273
- searchText: import("zod").ZodString;
274
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
275
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
276
- };
277
- execute(args: {
278
- limit: number;
279
- searchText: string;
280
- cursor?: string | undefined;
281
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
282
- tasks: {
283
- id: string;
284
- content: string;
285
- description: string;
286
- dueDate: string | undefined;
287
- recurring: string | boolean;
288
- priority: number;
289
- projectId: string;
290
- sectionId: string | null;
291
- parentId: string | null;
292
- labels: string[];
293
- }[];
294
- nextCursor: string | null;
295
- }>;
296
- };
297
- tasksAddMultiple: {
298
- name: string;
299
- description: string;
300
- parameters: {
301
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
302
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
303
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
304
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
305
- content: import("zod").ZodString;
306
- description: import("zod").ZodOptional<import("zod").ZodString>;
307
- priority: import("zod").ZodOptional<import("zod").ZodNumber>;
308
- dueString: import("zod").ZodOptional<import("zod").ZodString>;
309
- }, "strip", import("zod").ZodTypeAny, {
310
- content: string;
311
- description?: string | undefined;
312
- priority?: number | undefined;
313
- dueString?: string | undefined;
314
- }, {
315
- content: string;
316
- description?: string | undefined;
317
- priority?: number | undefined;
318
- dueString?: string | undefined;
319
- }>, "many">;
320
- };
321
- execute(args: {
322
- tasks: {
323
- content: string;
324
- description?: string | undefined;
325
- priority?: number | undefined;
326
- dueString?: string | undefined;
327
- }[];
328
- projectId?: string | undefined;
329
- parentId?: string | undefined;
330
- sectionId?: string | undefined;
331
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
332
- id: string;
333
- content: string;
334
- description: string;
335
- dueDate: string | undefined;
336
- recurring: string | boolean;
337
- priority: number;
338
- projectId: string;
339
- sectionId: string | null;
340
- parentId: string | null;
341
- labels: string[];
342
- }[]>;
343
- };
344
- tasksUpdateOne: {
345
- name: string;
346
- description: string;
347
- parameters: {
348
- id: import("zod").ZodString;
349
- content: import("zod").ZodOptional<import("zod").ZodString>;
350
- description: import("zod").ZodOptional<import("zod").ZodString>;
351
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
352
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
353
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
354
- priority: import("zod").ZodOptional<import("zod").ZodNumber>;
355
- dueString: import("zod").ZodOptional<import("zod").ZodString>;
356
- };
357
- execute(args: {
358
- id: string;
359
- content?: string | undefined;
360
- projectId?: string | undefined;
361
- parentId?: string | undefined;
362
- description?: string | undefined;
363
- priority?: number | undefined;
364
- dueString?: string | undefined;
365
- sectionId?: string | undefined;
366
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task>;
367
- };
368
- tasksOrganizeMultiple: {
369
- name: string;
370
- description: string;
371
- parameters: {
372
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
373
- id: import("zod").ZodString;
374
- projectId: import("zod").ZodOptional<import("zod").ZodString>;
375
- sectionId: import("zod").ZodOptional<import("zod").ZodString>;
376
- parentId: import("zod").ZodOptional<import("zod").ZodString>;
377
- order: import("zod").ZodOptional<import("zod").ZodNumber>;
378
- }, "strip", import("zod").ZodTypeAny, {
379
- id: string;
380
- projectId?: string | undefined;
381
- parentId?: string | undefined;
382
- sectionId?: string | undefined;
383
- order?: number | undefined;
384
- }, {
385
- id: string;
386
- projectId?: string | undefined;
387
- parentId?: string | undefined;
388
- sectionId?: string | undefined;
389
- order?: number | undefined;
390
- }>, "many">;
391
- };
392
- execute(args: {
393
- tasks: {
394
- id: string;
395
- projectId?: string | undefined;
396
- parentId?: string | undefined;
397
- sectionId?: string | undefined;
398
- order?: number | undefined;
399
- }[];
400
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<import("@doist/todoist-api-typescript").Task[]>;
401
- };
402
- tasksListForSection: {
403
- name: string;
404
- description: string;
405
- parameters: {
406
- sectionId: import("zod").ZodString;
407
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
408
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
409
- };
410
- execute(args: {
411
- limit: number;
412
- sectionId: string;
413
- cursor?: string | undefined;
414
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
415
- tasks: {
416
- id: string;
417
- content: string;
418
- description: string;
419
- dueDate: string | undefined;
420
- recurring: string | boolean;
421
- priority: number;
422
- projectId: string;
423
- sectionId: string | null;
424
- parentId: string | null;
425
- labels: string[];
426
- }[];
427
- nextCursor: string | null;
428
- }>;
429
- };
430
- subtasksListForParentTask: {
431
- name: string;
432
- description: string;
433
- parameters: {
434
- parentId: import("zod").ZodString;
435
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
436
- cursor: import("zod").ZodOptional<import("zod").ZodString>;
437
- };
438
- execute(args: {
439
- limit: number;
440
- parentId: string;
441
- cursor?: string | undefined;
442
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
443
- tasks: {
444
- id: string;
445
- content: string;
446
- description: string;
447
- dueDate: string | undefined;
448
- recurring: string | boolean;
449
- priority: number;
450
- projectId: string;
451
- sectionId: string | null;
452
- parentId: string | null;
453
- labels: string[];
454
- }[];
455
- nextCursor: string | null;
456
- }>;
457
- };
458
- accountOverview: {
459
- name: string;
460
- description: string;
461
- parameters: {};
462
- execute(_args: {}, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<string>;
463
- };
464
- projectOverview: {
465
- name: string;
466
- description: string;
467
- parameters: {
468
- projectId: import("zod").ZodString;
469
- };
470
- execute(args: {
471
- projectId: string;
472
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<string>;
473
- };
474
- };
475
- export { tools, getMcpServer };
476
- export { projectsList, projectsSearch, projectsAddOne, projectsUpdateOne, projectsDeleteOne, sectionsSearch, sectionsAddOne, sectionsUpdateOne, sectionsDeleteOne, tasksListByDate, tasksDeleteOne, tasksCompleteMultiple, tasksListForProject, tasksListOverdue, tasksSearch, tasksAddMultiple, tasksUpdateOne, tasksOrganizeMultiple, tasksListForSection, subtasksListForParentTask, accountOverview, projectOverview, };
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import type { TodoistApi } from "@doist/todoist-api-typescript";
2
- import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
- import type { z } from "zod";
4
- import type { TodoistTool } from "./todoist-tool.js";
5
- /**
6
- * Register a Todoist tool in an MCP server.
7
- * @param tool - The tool to register.
8
- * @param server - The server to register the tool on.
9
- * @param client - The Todoist API client to use to execute the tool.
10
- */
11
- declare function registerTool<Params extends z.ZodRawShape>(tool: TodoistTool<Params>, server: McpServer, client: TodoistApi): void;
12
- export { registerTool };
@@ -1,10 +0,0 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- /**
3
- * Create the MCP server.
4
- * @param todoistApiKey - The API key for the todoist account.
5
- * @returns the MCP server.
6
- */
7
- declare function getMcpServer({ todoistApiKey }: {
8
- todoistApiKey: string;
9
- }): McpServer;
10
- export { getMcpServer };
@@ -1,34 +0,0 @@
1
- import type { TodoistApi } from "@doist/todoist-api-typescript";
2
- import type { z } from "zod";
3
- /**
4
- * A Todoist tool that can be used in an MCP server or other conversational AI interfaces.
5
- */
6
- type TodoistTool<Params extends z.ZodRawShape> = {
7
- /**
8
- * The name of the tool.
9
- */
10
- name: string;
11
- /**
12
- * The description of the tool. This is important for the LLM to understand what the tool does,
13
- * and how to use it.
14
- */
15
- description: string;
16
- /**
17
- * The schema of the parameters of the tool.
18
- *
19
- * This is used to validate the parameters of the tool, as well as to let the LLM know what the
20
- * parameters are.
21
- */
22
- parameters: Params;
23
- /**
24
- * The function that executes the tool.
25
- *
26
- * This is the main function that will be called when the tool is used.
27
- *
28
- * @param args - The arguments of the tool.
29
- * @param client - The Todoist API client used to make requests to the Todoist API.
30
- * @returns The result of the tool.
31
- */
32
- execute: (args: z.infer<z.ZodObject<Params>>, client: TodoistApi) => Promise<unknown>;
33
- };
34
- export type { TodoistTool };
@@ -1,8 +0,0 @@
1
- import type { TodoistApi } from "@doist/todoist-api-typescript";
2
- declare const accountOverview: {
3
- name: string;
4
- description: string;
5
- parameters: {};
6
- execute(_args: {}, client: TodoistApi): Promise<string>;
7
- };
8
- export { accountOverview };
@@ -1,13 +0,0 @@
1
- import type { TodoistApi } from "@doist/todoist-api-typescript";
2
- import { z } from "zod";
3
- declare const projectOverview: {
4
- name: string;
5
- description: string;
6
- parameters: {
7
- projectId: z.ZodString;
8
- };
9
- execute(args: {
10
- projectId: string;
11
- }, client: TodoistApi): Promise<string>;
12
- };
13
- export { projectOverview };
@@ -1,21 +0,0 @@
1
- import { z } from "zod";
2
- declare const projectsAddOne: {
3
- name: string;
4
- description: string;
5
- parameters: {
6
- name: z.ZodString;
7
- };
8
- execute(args: {
9
- name: string;
10
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
11
- id: string;
12
- name: string;
13
- color: string;
14
- isFavorite: boolean;
15
- isShared: boolean;
16
- parentId: string | null;
17
- inboxProject: boolean;
18
- viewStyle: string;
19
- }>;
20
- };
21
- export { projectsAddOne };
@@ -1,14 +0,0 @@
1
- import { z } from "zod";
2
- declare const projectsDeleteOne: {
3
- name: string;
4
- description: string;
5
- parameters: {
6
- id: z.ZodString;
7
- };
8
- execute(args: {
9
- id: string;
10
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
11
- success: boolean;
12
- }>;
13
- };
14
- export { projectsDeleteOne };
@@ -1,17 +0,0 @@
1
- import { z } from "zod";
2
- declare const projectsList: {
3
- name: string;
4
- description: string;
5
- parameters: {
6
- limit: z.ZodDefault<z.ZodNumber>;
7
- cursor: z.ZodOptional<z.ZodString>;
8
- };
9
- execute(args: {
10
- limit: number;
11
- cursor?: string | undefined;
12
- }, client: import("@doist/todoist-api-typescript").TodoistApi): Promise<{
13
- projects: import("@doist/todoist-api-typescript").Project[];
14
- nextCursor: string | null;
15
- }>;
16
- };
17
- export { projectsList };