@todoist/mcp 19.1.6 → 19.2.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 +9 -0
- 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-9fVkSotd.js → mcp-server-DYBahuLO.js} +1437 -1398
- package/dist/{require-valid-todoist-token-EMOMJW6B.js → require-valid-todoist-token-CX0Gexzt.js} +1 -1
- package/dist/tool-helpers.d.ts +23 -2
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tool-registry.d.ts +9 -0
- package/dist/tool-registry.d.ts.map +1 -1
- package/dist/tools/find-sections.d.ts +11 -1
- package/dist/tools/find-sections.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/{require-valid-todoist-token-EMOMJW6B.js → require-valid-todoist-token-CX0Gexzt.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validateBearerToken as A, getValidationRateLimit as v, createTokenVerdictCache as k, buildBearerChallenge as f } from "@todoist/mcp-core/host";
|
|
2
|
-
import { a5 as p, a6 as g } from "./mcp-server-
|
|
2
|
+
import { a5 as p, a6 as g } from "./mcp-server-DYBahuLO.js";
|
|
3
3
|
const m = "https://api.todoist.com", E = (e, t) => A({
|
|
4
4
|
// Resolved the way the SDK resolves its own requests against a custom base URL. An empty
|
|
5
5
|
// base (`TODOIST_BASE_URL=`) means the default, as it does for the SDK client.
|
package/dist/tool-helpers.d.ts
CHANGED
|
@@ -124,16 +124,37 @@ export declare function createProjectLookup(client: TodoistApi): (id: string) =>
|
|
|
124
124
|
*/
|
|
125
125
|
export declare function fetchAllArchivedProjects(client: TodoistApi): Promise<Project[]>;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Fetches every archived section of a project, most recently archived first.
|
|
128
|
+
*
|
|
129
|
+
* Like archived projects, archived sections have no server-side search, so
|
|
130
|
+
* callers that filter by name should filter client-side with
|
|
131
|
+
* {@link compileWildcardQuery}.
|
|
132
|
+
*/
|
|
133
|
+
export declare function fetchAllArchivedSections(client: TodoistApi, projectId: string): Promise<Section[]>;
|
|
134
|
+
/** A compiled search query, from {@link compileWildcardQuery}. */
|
|
135
|
+
export type WildcardMatcher = {
|
|
136
|
+
test(name: string): boolean;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Compiles a search query into a case-insensitive matcher using the same wildcard
|
|
128
140
|
* semantics as server-side search (see {@link toWildcardQuery}): `*` matches any
|
|
129
141
|
* sequence, `\*` is a literal asterisk, and every other character (backslashes
|
|
130
142
|
* included) is matched literally. A query without an unescaped `*` matches as a
|
|
131
143
|
* substring; otherwise the whole name must match.
|
|
132
144
|
*
|
|
145
|
+
* Matching never backtracks: the literal parts between wildcards are found in
|
|
146
|
+
* order, each at its first place after the one before. A single regular
|
|
147
|
+
* expression with a `.*` per wildcard instead tries every way of splitting the
|
|
148
|
+
* name between them, which grows exponentially with the number of wildcards and
|
|
149
|
+
* blocks the server on a query such as `*a*a*a…b`. Each part is still matched by
|
|
150
|
+
* a case-insensitive Unicode regular expression of its literal text alone, so
|
|
151
|
+
* letters compare as they would under `/iu` (`σ`, `ς` and `Σ` are one letter),
|
|
152
|
+
* which lower-casing both sides would not give.
|
|
153
|
+
*
|
|
133
154
|
* Compile once and reuse the result when filtering many names (e.g. archived
|
|
134
155
|
* projects), rather than calling {@link matchesWildcardQuery} per item.
|
|
135
156
|
*/
|
|
136
|
-
export declare function compileWildcardQuery(query: string):
|
|
157
|
+
export declare function compileWildcardQuery(query: string): WildcardMatcher;
|
|
137
158
|
/**
|
|
138
159
|
* Tests whether a name matches a search query using the same wildcard semantics
|
|
139
160
|
* as server-side search. Used for client-side filtering where the API exposes no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../src/tool-helpers.ts"],"names":[],"mappings":"AAAA,OA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;;;;;;;;;EAY7C;AAWD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGxF;AAED,iBAAe,gBAAgB,CAAC,EAC5B,MAAM,EACN,KAAK,EACL,KAAK,EACL,MAAM,GACT,EAAE;IACC,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;;;GAkBA;AAqBD;;;;;GAKG;AACH,iBAAS,WAAW,CAAC,QAAQ,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCtC;AAED;;GAEG;AACH,iBAAS,oBAAoB,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE;;;EAM1D;AAED,YAAY,EAAE,UAAU,EAAE,CAAA;AAC1B,OAAO,EACH,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,GACV,CAAA"}
|
package/dist/tool-registry.d.ts
CHANGED
|
@@ -1739,6 +1739,11 @@ declare const toolRegistry: {
|
|
|
1739
1739
|
parameters: {
|
|
1740
1740
|
projectId: import('zod').ZodString;
|
|
1741
1741
|
searchText: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1742
|
+
archivedStatus: import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
1743
|
+
all: "all";
|
|
1744
|
+
active: "active";
|
|
1745
|
+
archived: "archived";
|
|
1746
|
+
}>>;
|
|
1742
1747
|
};
|
|
1743
1748
|
outputSchema: {
|
|
1744
1749
|
sections: import('zod').ZodArray<import('zod').ZodObject<{
|
|
@@ -1746,6 +1751,7 @@ declare const toolRegistry: {
|
|
|
1746
1751
|
name: import('zod').ZodString;
|
|
1747
1752
|
sectionOrder: import('zod').ZodNumber;
|
|
1748
1753
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
1754
|
+
isArchived: import('zod').ZodBoolean;
|
|
1749
1755
|
}, import('zod/v4/core').$strip>>;
|
|
1750
1756
|
totalCount: import('zod').ZodNumber;
|
|
1751
1757
|
appliedFilters: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodUnknown>;
|
|
@@ -1758,6 +1764,7 @@ declare const toolRegistry: {
|
|
|
1758
1764
|
execute(args: {
|
|
1759
1765
|
projectId: string;
|
|
1760
1766
|
searchText?: string | undefined;
|
|
1767
|
+
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
1761
1768
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
1762
1769
|
textContent: string;
|
|
1763
1770
|
structuredContent: {
|
|
@@ -1765,12 +1772,14 @@ declare const toolRegistry: {
|
|
|
1765
1772
|
id: string;
|
|
1766
1773
|
name: string;
|
|
1767
1774
|
sectionOrder: number;
|
|
1775
|
+
isArchived: boolean;
|
|
1768
1776
|
description?: string | undefined;
|
|
1769
1777
|
}[];
|
|
1770
1778
|
totalCount: number;
|
|
1771
1779
|
appliedFilters: {
|
|
1772
1780
|
projectId: string;
|
|
1773
1781
|
searchText?: string | undefined;
|
|
1782
|
+
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
1774
1783
|
};
|
|
1775
1784
|
};
|
|
1776
1785
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../src/tool-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAwEvD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"tool-registry.d.ts","sourceRoot":"","sources":["../src/tool-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFjB,CAAA;AAED;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,cAAc,EAAgC,CAAA;AAE9E,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TodoistApi } from '@todoist/sdk';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
declare const findSections: {
|
|
3
4
|
name: "find-sections";
|
|
@@ -5,6 +6,11 @@ declare const findSections: {
|
|
|
5
6
|
parameters: {
|
|
6
7
|
projectId: z.ZodString;
|
|
7
8
|
searchText: z.ZodOptional<z.ZodString>;
|
|
9
|
+
archivedStatus: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
all: "all";
|
|
11
|
+
active: "active";
|
|
12
|
+
archived: "archived";
|
|
13
|
+
}>>;
|
|
8
14
|
};
|
|
9
15
|
outputSchema: {
|
|
10
16
|
sections: z.ZodArray<z.ZodObject<{
|
|
@@ -12,6 +18,7 @@ declare const findSections: {
|
|
|
12
18
|
name: z.ZodString;
|
|
13
19
|
sectionOrder: z.ZodNumber;
|
|
14
20
|
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
isArchived: z.ZodBoolean;
|
|
15
22
|
}, z.core.$strip>>;
|
|
16
23
|
totalCount: z.ZodNumber;
|
|
17
24
|
appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -24,19 +31,22 @@ declare const findSections: {
|
|
|
24
31
|
execute(args: {
|
|
25
32
|
projectId: string;
|
|
26
33
|
searchText?: string | undefined;
|
|
27
|
-
|
|
34
|
+
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
35
|
+
}, client: TodoistApi): Promise<{
|
|
28
36
|
textContent: string;
|
|
29
37
|
structuredContent: {
|
|
30
38
|
sections: {
|
|
31
39
|
id: string;
|
|
32
40
|
name: string;
|
|
33
41
|
sectionOrder: number;
|
|
42
|
+
isArchived: boolean;
|
|
34
43
|
description?: string | undefined;
|
|
35
44
|
}[];
|
|
36
45
|
totalCount: number;
|
|
37
46
|
appliedFilters: {
|
|
38
47
|
projectId: string;
|
|
39
48
|
searchText?: string | undefined;
|
|
49
|
+
archivedStatus?: "all" | "active" | "archived" | undefined;
|
|
40
50
|
};
|
|
41
51
|
};
|
|
42
52
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"find-sections.d.ts","sourceRoot":"","sources":["../../src/tools/find-sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAiDvB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD6C,CAAA;AAsE/D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@todoist/mcp",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
70
70
|
"@todoist/mcp-core": "2.0.0",
|
|
71
|
-
"@todoist/sdk": "24.1
|
|
71
|
+
"@todoist/sdk": "24.2.1",
|
|
72
72
|
"date-fns": "4.4.0",
|
|
73
73
|
"dompurify": "3.5.0",
|
|
74
74
|
"dotenv": "17.4.2",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@modelcontextprotocol/server": "^2.4.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@anthropic-ai/sdk": "
|
|
84
|
+
"@anthropic-ai/sdk": "1.14.0",
|
|
85
85
|
"@modelcontextprotocol/client": "2.4.0",
|
|
86
86
|
"@modelcontextprotocol/inspector": "0.22.0",
|
|
87
87
|
"@semantic-release/changelog": "6.0.3",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/react": "19.3.1",
|
|
94
94
|
"@types/react-dom": "19.3.0",
|
|
95
95
|
"@vitejs/plugin-react": "5.2.0",
|
|
96
|
-
"concurrently": "
|
|
96
|
+
"concurrently": "10.0.7",
|
|
97
97
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
98
98
|
"gpt-tokenizer": "3.4.0",
|
|
99
99
|
"lefthook": "2.2.2",
|