@doist/todoist-mcp 10.5.0 → 12.0.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/dist/index.d.ts +3 -327
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -70
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-apps/index.html +1 -1
- package/dist/{mcp-server-D4lt4A-e.js → mcp-server-D_1HNxyp.js} +1832 -2167
- package/dist/mcp-server.d.ts +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/{require-valid-todoist-token-Czo9Y3Dn.js → require-valid-todoist-token-Dy0mPSN8.js} +7 -7
- package/dist/tool-helpers.d.ts +2 -23
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +2 -4
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch-object.d.ts +1 -39
- package/dist/tools/fetch-object.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +0 -4
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +1 -19
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/dist/utils/test-helpers.d.ts +1 -6
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/dist/utils/tool-names.d.ts +0 -5
- package/dist/utils/tool-names.d.ts.map +1 -1
- package/package.json +5 -1
- package/scripts/run-tool.ts +0 -10
- package/dist/tools/add-goals.d.ts +0 -70
- package/dist/tools/add-goals.d.ts.map +0 -1
- package/dist/tools/complete-goals.d.ts +0 -48
- package/dist/tools/complete-goals.d.ts.map +0 -1
- package/dist/tools/find-goals.d.ts +0 -77
- package/dist/tools/find-goals.d.ts.map +0 -1
- package/dist/tools/link-goal-tasks.d.ts +0 -50
- package/dist/tools/link-goal-tasks.d.ts.map +0 -1
- package/dist/tools/update-goals.d.ts +0 -91
- package/dist/tools/update-goals.d.ts.map +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const findGoals: {
|
|
3
|
-
name: "find-goals";
|
|
4
|
-
description: string;
|
|
5
|
-
parameters: {
|
|
6
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
7
|
-
ownerType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
USER: "USER";
|
|
9
|
-
WORKSPACE: "WORKSPACE";
|
|
10
|
-
}>>;
|
|
11
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
12
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
13
|
-
};
|
|
14
|
-
outputSchema: {
|
|
15
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
ownerType: z.ZodString;
|
|
19
|
-
ownerId: z.ZodString;
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
22
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
23
|
-
isCompleted: z.ZodBoolean;
|
|
24
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
totalTaskCount: z.ZodNumber;
|
|
26
|
-
completedTaskCount: z.ZodNumber;
|
|
27
|
-
percentage: z.ZodNumber;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
31
|
-
hasMore: z.ZodBoolean;
|
|
32
|
-
totalCount: z.ZodNumber;
|
|
33
|
-
appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
-
};
|
|
35
|
-
annotations: {
|
|
36
|
-
readOnlyHint: true;
|
|
37
|
-
destructiveHint: false;
|
|
38
|
-
idempotentHint: true;
|
|
39
|
-
};
|
|
40
|
-
execute(args: {
|
|
41
|
-
limit: number;
|
|
42
|
-
searchText?: string | undefined;
|
|
43
|
-
ownerType?: "USER" | "WORKSPACE" | undefined;
|
|
44
|
-
cursor?: string | undefined;
|
|
45
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
46
|
-
textContent: string;
|
|
47
|
-
structuredContent: {
|
|
48
|
-
goals: {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
ownerType: "USER" | "WORKSPACE";
|
|
52
|
-
ownerId: string;
|
|
53
|
-
description: string | undefined;
|
|
54
|
-
deadline: string | undefined;
|
|
55
|
-
responsibleUid: string | undefined;
|
|
56
|
-
isCompleted: boolean;
|
|
57
|
-
progress: {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
totalTaskCount: number;
|
|
60
|
-
completedTaskCount: number;
|
|
61
|
-
percentage: number;
|
|
62
|
-
} | undefined;
|
|
63
|
-
}[];
|
|
64
|
-
nextCursor: string | undefined;
|
|
65
|
-
hasMore: boolean;
|
|
66
|
-
totalCount: number;
|
|
67
|
-
appliedFilters: {
|
|
68
|
-
limit: number;
|
|
69
|
-
searchText?: string | undefined;
|
|
70
|
-
ownerType?: "USER" | "WORKSPACE" | undefined;
|
|
71
|
-
cursor?: string | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
}>;
|
|
75
|
-
};
|
|
76
|
-
export { findGoals };
|
|
77
|
-
//# sourceMappingURL=find-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-goals.d.ts","sourceRoot":"","sources":["../../src/tools/find-goals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4CvB,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEgD,CAAA;AAE/D,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_TASKS_PER_OPERATION = 50;
|
|
3
|
-
declare const linkGoalTasks: {
|
|
4
|
-
name: "link-goal-tasks";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
goalId: z.ZodString;
|
|
8
|
-
taskIds: z.ZodArray<z.ZodString>;
|
|
9
|
-
action: z.ZodEnum<{
|
|
10
|
-
link: "link";
|
|
11
|
-
unlink: "unlink";
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
outputSchema: {
|
|
15
|
-
processed: z.ZodArray<z.ZodString>;
|
|
16
|
-
failures: z.ZodArray<z.ZodObject<{
|
|
17
|
-
item: z.ZodString;
|
|
18
|
-
error: z.ZodString;
|
|
19
|
-
code: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
totalRequested: z.ZodNumber;
|
|
22
|
-
successCount: z.ZodNumber;
|
|
23
|
-
failureCount: z.ZodNumber;
|
|
24
|
-
};
|
|
25
|
-
annotations: {
|
|
26
|
-
readOnlyHint: false;
|
|
27
|
-
destructiveHint: false;
|
|
28
|
-
idempotentHint: true;
|
|
29
|
-
};
|
|
30
|
-
execute(args: {
|
|
31
|
-
goalId: string;
|
|
32
|
-
taskIds: string[];
|
|
33
|
-
action: "link" | "unlink";
|
|
34
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
35
|
-
textContent: string;
|
|
36
|
-
structuredContent: {
|
|
37
|
-
processed: string[];
|
|
38
|
-
failures: {
|
|
39
|
-
item: string;
|
|
40
|
-
error: string;
|
|
41
|
-
code?: string;
|
|
42
|
-
}[];
|
|
43
|
-
totalRequested: number;
|
|
44
|
-
successCount: number;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
48
|
-
};
|
|
49
|
-
export { linkGoalTasks, MAX_TASKS_PER_OPERATION };
|
|
50
|
-
//# sourceMappingURL=link-goal-tasks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-goal-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/link-goal-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AAoBlC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmBmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAiCX,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_GOALS_PER_OPERATION = 25;
|
|
3
|
-
declare const updateGoals: {
|
|
4
|
-
name: "update-goals";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
description: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
11
|
-
deadline: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
12
|
-
responsibleUid: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
};
|
|
15
|
-
outputSchema: {
|
|
16
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
ownerType: z.ZodString;
|
|
20
|
-
ownerId: z.ZodString;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
23
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
24
|
-
isCompleted: z.ZodBoolean;
|
|
25
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
totalTaskCount: z.ZodNumber;
|
|
27
|
-
completedTaskCount: z.ZodNumber;
|
|
28
|
-
percentage: z.ZodNumber;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
totalCount: z.ZodNumber;
|
|
32
|
-
updatedGoalIds: z.ZodArray<z.ZodString>;
|
|
33
|
-
appliedOperations: z.ZodObject<{
|
|
34
|
-
updateCount: z.ZodNumber;
|
|
35
|
-
skippedCount: z.ZodNumber;
|
|
36
|
-
skipped: z.ZodArray<z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
reason: z.ZodEnum<{
|
|
39
|
-
"no-fields": "no-fields";
|
|
40
|
-
"no-valid-values": "no-valid-values";
|
|
41
|
-
}>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
};
|
|
45
|
-
annotations: {
|
|
46
|
-
readOnlyHint: false;
|
|
47
|
-
destructiveHint: false;
|
|
48
|
-
idempotentHint: true;
|
|
49
|
-
};
|
|
50
|
-
execute({ goals }: {
|
|
51
|
-
goals: {
|
|
52
|
-
id: string;
|
|
53
|
-
name?: string | undefined;
|
|
54
|
-
description?: string | undefined;
|
|
55
|
-
deadline?: string | undefined;
|
|
56
|
-
responsibleUid?: string | undefined;
|
|
57
|
-
}[];
|
|
58
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
59
|
-
textContent: string;
|
|
60
|
-
structuredContent: {
|
|
61
|
-
goals: {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
ownerType: "USER" | "WORKSPACE";
|
|
65
|
-
ownerId: string;
|
|
66
|
-
description: string | undefined;
|
|
67
|
-
deadline: string | undefined;
|
|
68
|
-
responsibleUid: string | undefined;
|
|
69
|
-
isCompleted: boolean;
|
|
70
|
-
progress: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
totalTaskCount: number;
|
|
73
|
-
completedTaskCount: number;
|
|
74
|
-
percentage: number;
|
|
75
|
-
} | undefined;
|
|
76
|
-
}[];
|
|
77
|
-
totalCount: number;
|
|
78
|
-
updatedGoalIds: string[];
|
|
79
|
-
appliedOperations: {
|
|
80
|
-
updateCount: number;
|
|
81
|
-
skippedCount: number;
|
|
82
|
-
skipped: {
|
|
83
|
-
id: string;
|
|
84
|
-
reason: "no-fields" | "no-valid-values";
|
|
85
|
-
}[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
}>;
|
|
89
|
-
};
|
|
90
|
-
export { MAX_GOALS_PER_OPERATION, updateGoals };
|
|
91
|
-
//# sourceMappingURL=update-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-goals.d.ts","sourceRoot":"","sources":["../../src/tools/update-goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AAwElC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE8C,CAAA;AAgB/D,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAA"}
|