@doist/todoist-mcp 10.2.0 → 10.3.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 +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/{mcp-server-C1DBNHXt.js → mcp-server-DdZVyZTr.js} +214 -197
- package/dist/{require-valid-todoist-token-CNRFw6f1.js → require-valid-todoist-token-Bx_T4J5L.js} +1 -1
- package/dist/tools/add-sections.d.ts +4 -0
- package/dist/tools/add-sections.d.ts.map +1 -1
- package/dist/tools/fetch-object.d.ts +2 -0
- package/dist/tools/fetch-object.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +2 -0
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/dist/tools/get-overview.d.ts +2 -0
- package/dist/tools/get-overview.d.ts.map +1 -1
- package/dist/tools/update-sections.d.ts +6 -2
- package/dist/tools/update-sections.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +6 -3
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,12 +6,14 @@ declare const addSections: {
|
|
|
6
6
|
sections: z.ZodArray<z.ZodObject<{
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
projectId: z.ZodString;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
10
|
}, z.core.$strip>>;
|
|
10
11
|
};
|
|
11
12
|
outputSchema: {
|
|
12
13
|
sections: z.ZodArray<z.ZodObject<{
|
|
13
14
|
id: z.ZodString;
|
|
14
15
|
name: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
17
|
}, z.core.$strip>>;
|
|
16
18
|
totalCount: z.ZodNumber;
|
|
17
19
|
};
|
|
@@ -24,6 +26,7 @@ declare const addSections: {
|
|
|
24
26
|
sections: {
|
|
25
27
|
name: string;
|
|
26
28
|
projectId: string;
|
|
29
|
+
description?: string | undefined;
|
|
27
30
|
}[];
|
|
28
31
|
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
29
32
|
textContent: string;
|
|
@@ -31,6 +34,7 @@ declare const addSections: {
|
|
|
31
34
|
sections: {
|
|
32
35
|
id: string;
|
|
33
36
|
name: string;
|
|
37
|
+
description?: string | undefined;
|
|
34
38
|
}[];
|
|
35
39
|
totalCount: number;
|
|
36
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"add-sections.d.ts","sourceRoot":"","sources":["../../src/tools/add-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC8C,CAAA;AAa/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -105,6 +105,7 @@ declare const fetchObject: {
|
|
|
105
105
|
}, z.core.$strip>, z.ZodObject<{
|
|
106
106
|
id: z.ZodString;
|
|
107
107
|
name: z.ZodString;
|
|
108
|
+
description: z.ZodOptional<z.ZodString>;
|
|
108
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
109
110
|
id: z.ZodString;
|
|
110
111
|
name: z.ZodString;
|
|
@@ -209,6 +210,7 @@ declare const fetchObject: {
|
|
|
209
210
|
object: {
|
|
210
211
|
id: string;
|
|
211
212
|
name: string;
|
|
213
|
+
description?: string | undefined;
|
|
212
214
|
};
|
|
213
215
|
};
|
|
214
216
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-object.d.ts","sourceRoot":"","sources":["../../src/tools/fetch-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"fetch-object.d.ts","sourceRoot":"","sources":["../../src/tools/fetch-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4BvB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwF8C,CAAA;AAE/D,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -10,6 +10,7 @@ declare const findSections: {
|
|
|
10
10
|
sections: z.ZodArray<z.ZodObject<{
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
name: z.ZodString;
|
|
13
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
14
|
}, z.core.$strip>>;
|
|
14
15
|
totalCount: z.ZodNumber;
|
|
15
16
|
appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -28,6 +29,7 @@ declare const findSections: {
|
|
|
28
29
|
sections: {
|
|
29
30
|
id: string;
|
|
30
31
|
name: string;
|
|
32
|
+
description?: string | undefined;
|
|
31
33
|
}[];
|
|
32
34
|
totalCount: number;
|
|
33
35
|
appliedFilters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqCvB,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqCvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C6C,CAAA;AAwC/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -67,6 +67,7 @@ declare const getOverview: {
|
|
|
67
67
|
sections: z.ZodArray<z.ZodObject<{
|
|
68
68
|
id: z.ZodString;
|
|
69
69
|
name: z.ZodString;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
70
71
|
}, z.core.$strip>>;
|
|
71
72
|
}, z.core.$strip>>>;
|
|
72
73
|
projects: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
|
|
@@ -99,6 +100,7 @@ declare const getOverview: {
|
|
|
99
100
|
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
101
|
id: z.ZodString;
|
|
101
102
|
name: z.ZodString;
|
|
103
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
104
|
}, z.core.$strip>>>;
|
|
103
105
|
tasks: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
104
106
|
stats: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-overview.d.ts","sourceRoot":"","sources":["../../src/tools/get-overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,UAAU,EAClB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,EAAgB,MAAM,oBAAoB,CAAA;AAE1D,OAAO,EAAiB,KAAK,cAAc,EAAoB,MAAM,4BAA4B,CAAA;AAkOjG,KAAK,gBAAgB,GAAG;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;I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KD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA3ZT,MAAM;kBACJ,MAAM;uBACD,MAAM;uBACN,MAAM;wBACL,MAAM;sBACR;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE;sBAC9B,OAAO,EAAE;;gBANf,MAAM;kBACJ,MAAM;uBACD,MAAM;uBACN,MAAM;wBACL,MAAM;sBACR;gBAAE,EAAE,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE;sBAC9B,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsawC,CAAA;AAE/D,OAAO,EAAE,KAAK,yBAAyB,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,CAAA"}
|
|
@@ -5,13 +5,15 @@ declare const updateSections: {
|
|
|
5
5
|
parameters: {
|
|
6
6
|
sections: z.ZodArray<z.ZodObject<{
|
|
7
7
|
id: z.ZodString;
|
|
8
|
-
name: z.ZodString
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
description: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
9
10
|
}, z.core.$strip>>;
|
|
10
11
|
};
|
|
11
12
|
outputSchema: {
|
|
12
13
|
sections: z.ZodArray<z.ZodObject<{
|
|
13
14
|
id: z.ZodString;
|
|
14
15
|
name: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
17
|
}, z.core.$strip>>;
|
|
16
18
|
totalCount: z.ZodNumber;
|
|
17
19
|
updatedSectionIds: z.ZodArray<z.ZodString>;
|
|
@@ -24,7 +26,8 @@ declare const updateSections: {
|
|
|
24
26
|
execute({ sections }: {
|
|
25
27
|
sections: {
|
|
26
28
|
id: string;
|
|
27
|
-
name
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
description?: string | undefined;
|
|
28
31
|
}[];
|
|
29
32
|
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
30
33
|
textContent: string;
|
|
@@ -32,6 +35,7 @@ declare const updateSections: {
|
|
|
32
35
|
sections: {
|
|
33
36
|
id: string;
|
|
34
37
|
name: string;
|
|
38
|
+
description?: string | undefined;
|
|
35
39
|
}[];
|
|
36
40
|
totalCount: number;
|
|
37
41
|
updatedSectionIds: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-sections.d.ts","sourceRoot":"","sources":["../../src/tools/update-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"update-sections.d.ts","sourceRoot":"","sources":["../../src/tools/update-sections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsCvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC2C,CAAA;AAa/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -71,13 +71,16 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
71
71
|
declare const SectionSchema: z.ZodObject<{
|
|
72
72
|
id: z.ZodString;
|
|
73
73
|
name: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
74
75
|
}, z.core.$strip>;
|
|
75
76
|
type SectionSummary = z.infer<typeof SectionSchema>;
|
|
76
77
|
/**
|
|
77
|
-
* Strip an SDK Section
|
|
78
|
-
*
|
|
78
|
+
* Strip an SDK Section down to the fields declared in SectionSchema. Keeps tool
|
|
79
|
+
* responses aligned with the schema. The output schema uses an optional string
|
|
80
|
+
* (Gemini-compatible), so the read's `string | null` description maps `null` to
|
|
81
|
+
* `undefined`.
|
|
79
82
|
*/
|
|
80
|
-
declare function toSectionSummary({ id, name }: Section): SectionSummary;
|
|
83
|
+
declare function toSectionSummary({ id, name, description }: Section): SectionSummary;
|
|
81
84
|
/**
|
|
82
85
|
* Schema for a comment object returned by tools
|
|
83
86
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iBA+Bd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"output-schemas.d.ts","sourceRoot":"","sources":["../../src/utils/output-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB;;GAEG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iBA+Bd,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,aAAa;;;;iBAOjB,CAAA;AAEF,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD;;;;;GAKG;AACH,iBAAS,gBAAgB,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,GAAG,cAAc,CAE5E;AA0BD;;GAEG;AACH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;iBAQjB,CAAA;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;iBAYvB,CAAA;A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