@todoist/mcp 19.2.0 → 19.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.
@@ -0,0 +1,76 @@
1
+ import { ot as e, st as t } from "./mcp-server-DwCZ4EX7.js";
2
+ import { buildBearerChallenge as n, createTokenVerdictCache as r, getValidationRateLimit as i, validateBearerToken as a } from "@todoist/mcp-core/host";
3
+ // src/utils/validate-todoist-token.ts
4
+ var o = "https://api.todoist.com", s = (n, r) => a({
5
+ url: new URL("/api/v1/user", r || o),
6
+ token: n,
7
+ headers: e({ label: "auth:validate-token" }),
8
+ fetch: t
9
+ }), c = 3e5, l = 12e4, u = 1e4, d = 60, f = /* @__PURE__ */ new Map();
10
+ function p(e) {
11
+ let t = f.get(e);
12
+ return t || (t = r({
13
+ ttlMs: e,
14
+ maxEntries: u,
15
+ now: () => Date.now()
16
+ }), f.set(e, t)), t;
17
+ }
18
+ function m(e, { tokenSent: t, resourceMetadataUrl: r }) {
19
+ e.status(401).set("WWW-Authenticate", n({
20
+ error: t ? "invalid_token" : void 0,
21
+ resourceMetadataUrl: r
22
+ })).json(t ? {
23
+ error: "invalid_token",
24
+ error_description: "Todoist API token is invalid or expired"
25
+ } : { error_description: "Todoist API token is missing" });
26
+ }
27
+ function h(e, t) {
28
+ e.status(403).set("WWW-Authenticate", n({
29
+ error: "insufficient_scope",
30
+ resourceMetadataUrl: t
31
+ })).json({
32
+ error: "insufficient_scope",
33
+ error_description: "Todoist API token does not have the required scopes"
34
+ });
35
+ }
36
+ function g(e, t) {
37
+ e.status(429).set("Retry-After", String(t)).json({ error_description: "Todoist API rate limit reached, retry later" });
38
+ }
39
+ function _(e, t, n, r) {
40
+ e === "valid" ? n() : e === "forbidden" ? h(t, r) : m(t, {
41
+ tokenSent: !0,
42
+ resourceMetadataUrl: r
43
+ });
44
+ }
45
+ function v(e) {
46
+ let t = e.type === "static" ? c : l, n = p(e.cacheTtlMs ?? t), { resourceMetadataUrl: r } = e;
47
+ return async (t, a, o) => {
48
+ let c = e.type === "static" ? e.apiKey : e.getApiKey(t);
49
+ if (!c) {
50
+ m(a, {
51
+ tokenSent: !1,
52
+ resourceMetadataUrl: r
53
+ });
54
+ return;
55
+ }
56
+ let l = n.get(c, e.baseUrl);
57
+ if (l !== void 0) {
58
+ _(l, a, o, r);
59
+ return;
60
+ }
61
+ let u;
62
+ try {
63
+ u = await s(c, e.baseUrl);
64
+ } catch (e) {
65
+ let t = i(e);
66
+ if (t) {
67
+ console.warn("[Token validation] Todoist API rate limit reached, answering 429:", e), g(a, t.retryAfterSeconds ?? d);
68
+ return;
69
+ }
70
+ console.warn("[Token validation] Validation failed, proceeding:", e), o();
71
+ return;
72
+ }
73
+ n.set(c, e.baseUrl, u), _(u, a, o, r);
74
+ };
75
+ }
76
+ export { s as n, v as t };
@@ -1676,6 +1676,7 @@ declare const toolRegistry: {
1676
1676
  id: import('zod').ZodString;
1677
1677
  name: import('zod').ZodOptional<import('zod').ZodString>;
1678
1678
  description: import('zod').ZodOptional<import('zod').ZodPreprocess<import('zod').ZodString, unknown>>;
1679
+ isArchived: import('zod').ZodOptional<import('zod').ZodBoolean>;
1679
1680
  }, import('zod/v4/core').$strip>>;
1680
1681
  };
1681
1682
  outputSchema: {
@@ -1708,6 +1709,7 @@ declare const toolRegistry: {
1708
1709
  id: string;
1709
1710
  name?: string | undefined;
1710
1711
  description?: string | undefined;
1712
+ isArchived?: boolean | undefined;
1711
1713
  }[];
1712
1714
  }, client: import('@todoist/sdk').TodoistApi): Promise<{
1713
1715
  textContent: string;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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 +1 @@
1
- {"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6BvB,QAAA,MAAM,uBAAuB,KAAyC,CAAA;AAgEtE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEiD,CAAA;AAmV/D,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAA"}
1
+ {"version":3,"file":"add-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/add-tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAA8C,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA6BvB,QAAA,MAAM,uBAAuB,KAAyC,CAAA;AAgEtE,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEiD,CAAA;AAmV/D,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { TodoistApi } from '@todoist/sdk';
1
2
  import { z } from 'zod';
2
3
  declare const updateSections: {
3
4
  name: "update-sections";
@@ -7,6 +8,7 @@ declare const updateSections: {
7
8
  id: z.ZodString;
8
9
  name: z.ZodOptional<z.ZodString>;
9
10
  description: z.ZodOptional<z.ZodPreprocess<z.ZodString, unknown>>;
11
+ isArchived: z.ZodOptional<z.ZodBoolean>;
10
12
  }, z.core.$strip>>;
11
13
  };
12
14
  outputSchema: {
@@ -39,8 +41,9 @@ declare const updateSections: {
39
41
  id: string;
40
42
  name?: string | undefined;
41
43
  description?: string | undefined;
44
+ isArchived?: boolean | undefined;
42
45
  }[];
43
- }, client: import('@todoist/sdk').TodoistApi): Promise<{
46
+ }, client: TodoistApi): Promise<{
44
47
  textContent: string;
45
48
  structuredContent: {
46
49
  sections: {
@@ -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;AAyDvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD2C,CAAA;AAsB/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"update-sections.d.ts","sourceRoot":"","sources":["../../src/tools/update-sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,UAAU,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAoEvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqD2C,CAAA;AAqH/D,OAAO,EAAE,cAAc,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/mcp",
3
- "version": "19.2.0",
3
+ "version": "19.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  "devDependencies": {
84
84
  "@anthropic-ai/sdk": "1.14.0",
85
85
  "@modelcontextprotocol/client": "2.4.0",
86
- "@modelcontextprotocol/inspector": "0.22.0",
86
+ "@modelcontextprotocol/inspector": "2.16.0",
87
87
  "@semantic-release/changelog": "6.0.3",
88
88
  "@semantic-release/exec": "7.1.0",
89
89
  "@semantic-release/git": "10.0.1",
@@ -92,15 +92,15 @@
92
92
  "@types/node": "22.20.5",
93
93
  "@types/react": "19.3.1",
94
94
  "@types/react-dom": "19.3.0",
95
- "@vitejs/plugin-react": "5.2.0",
95
+ "@vitejs/plugin-react": "6.3.0",
96
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",
100
100
  "morgan": "1.12.1",
101
101
  "nodemon": "3.1.14",
102
- "oxfmt": "0.55.0",
103
- "oxlint": "1.70.0",
102
+ "oxfmt": "0.80.0",
103
+ "oxlint": "1.95.0",
104
104
  "react": "19.3.1",
105
105
  "react-dom": "19.3.1",
106
106
  "rimraf": "6.1.4",
@@ -108,7 +108,7 @@
108
108
  "snarkdown": "2.0.0",
109
109
  "tsx": "4.23.15",
110
110
  "typescript": "6.0.3",
111
- "vite": "7.3.8",
111
+ "vite": "8.3.8",
112
112
  "vite-plugin-dts": "4.5.4",
113
113
  "vite-plugin-singlefile": "2.3.4",
114
114
  "vitest": "4.1.12"