@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.
package/dist/index.d.ts CHANGED
@@ -1729,6 +1729,7 @@ declare const tools: {
1729
1729
  id: import('zod').ZodString;
1730
1730
  name: import('zod').ZodOptional<import('zod').ZodString>;
1731
1731
  description: import('zod').ZodOptional<import('zod').ZodPreprocess<import('zod').ZodString, unknown>>;
1732
+ isArchived: import('zod').ZodOptional<import('zod').ZodBoolean>;
1732
1733
  }, import('zod/v4/core').$strip>>;
1733
1734
  };
1734
1735
  outputSchema: {
@@ -1761,6 +1762,7 @@ declare const tools: {
1761
1762
  id: string;
1762
1763
  name?: string | undefined;
1763
1764
  description?: string | undefined;
1765
+ isArchived?: boolean | undefined;
1764
1766
  }[];
1765
1767
  }, client: import('@todoist/sdk').TodoistApi): Promise<{
1766
1768
  textContent: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EACH,wBAAwB,EACxB,KAAK,+BAA+B,EACvC,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,eAAe,EAAgB,MAAM,oBAAoB,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,0BA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,WAAW,EACX,aAAa,EACb,cAAc,EAEd,cAAc,EAEd,cAAc,EAEd,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,WAAW,EAEX,MAAM,EACN,KAAK,EAEL,YAAY,EACZ,KAAK,EACL,eAAe,EACf,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEb,wBAAwB,EACxB,KAAK,+BAA+B,EAEpC,oBAAoB,GACvB,CAAA"}
package/dist/index.js CHANGED
@@ -1,67 +1,5 @@
1
- import { t as s } from "./mcp-server-DYBahuLO.js";
2
- import { F as o, a as r, b as i, c as n, d as c, e as l, f as p, g as m, h as f, i as T, j as u, k as j, l as g, m as k, n as v, o as P, p as S, q as h, r as b, s as F, u as y, v as A, w as C, x as R, y as x, z as M, A as O, B as E, C as I, D as L, E as U, G as w, H, I as W, J as q, K as z, L as B, M as D, N, O as V, P as _, Q as G, R as J, S as K, T as Q, U as X, V as Y, W as Z, X as $, Y as ss, Z as as, _ as es, $ as ts, a0 as ds, a1 as os, a2 as rs, a3 as is, a4 as ns } from "./mcp-server-DYBahuLO.js";
3
- import { r as ls, v as ps } from "./require-valid-todoist-token-CX0Gexzt.js";
4
- const e = s;
5
- export {
6
- o as FEATURE_NAMES,
7
- r as addComments,
8
- i as addFilters,
9
- n as addFolders,
10
- c as addLabels,
11
- l as addProjects,
12
- p as addReminders,
13
- m as addSections,
14
- f as addTasks,
15
- T as addTemplate,
16
- u as analyzeProjectHealth,
17
- j as completeTasks,
18
- g as deleteObject,
19
- k as exportProject,
20
- v as fetch,
21
- P as fetchObject,
22
- S as findActivity,
23
- h as findComments,
24
- b as findCompletedTasks,
25
- F as findFilters,
26
- y as findFolders,
27
- A as findLabels,
28
- C as findProjectCollaborators,
29
- R as findProjects,
30
- x as findReminders,
31
- M as findSections,
32
- O as findTasks,
33
- E as findTasksByDate,
34
- I as findTemplates,
35
- L as getMcpServer,
36
- U as getOverview,
37
- w as getProductivityStats,
38
- H as getProjectActivityStats,
39
- W as getProjectHealth,
40
- q as getUserStatus,
41
- z as getWorkspaceInsights,
42
- B as importIntoProject,
43
- D as listWorkspaces,
44
- N as manageAssignments,
45
- V as projectManagement,
46
- _ as projectMove,
47
- G as registeredTools,
48
- J as reorderObjects,
49
- ls as requireValidTodoistToken,
50
- K as rescheduleTasks,
51
- Q as search,
52
- X as setUserStatus,
53
- e as tools,
54
- Y as uncompleteTasks,
55
- Z as updateComments,
56
- $ as updateFilters,
57
- ss as updateFolders,
58
- as as updateLabels,
59
- es as updateProjects,
60
- ts as updateReminders,
61
- ds as updateSections,
62
- os as updateTasks,
63
- rs as updateTemplate,
64
- is as userInfo,
65
- ps as validateTodoistToken,
66
- ns as viewAttachment
67
- };
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as A, c as j, d as M, et as N, f as P, g as F, h as I, i as L, it as R, j as z, k as B, l as V, m as H, n as U, nt as W, o as G, p as K, q, r as J, rt as Y, s as X, t as Z, tt as Q, u as $, v as ee, w as te, x as ne, y as re, z as ie } from "./mcp-server-DwCZ4EX7.js";
2
+ import { n as ae, t as oe } from "./require-valid-todoist-token-DoLe7h5h.js";
3
+ // src/index.ts
4
+ var se = J;
5
+ export { k as FEATURE_NAMES, R as addComments, W as addFilters, Q as addFolders, N as addLabels, e as addProjects, _ as addReminders, E as addSections, w as addTasks, T as addTemplate, u as analyzeProjectHealth, q as completeTasks, d as deleteObject, s as exportProject, x as fetch, C as fetchObject, c as findActivity, S as findComments, n as findCompletedTasks, Y as findFilters, ie as findFolders, v as findLabels, f as findProjectCollaborators, l as findProjects, o as findReminders, g as findSections, p as findTasks, m as findTasksByDate, z as findTemplates, Z as getMcpServer, t as getOverview, B as getProductivityStats, h as getProjectActivityStats, i as getProjectHealth, a as getUserStatus, b as getWorkspaceInsights, te as importIntoProject, r as listWorkspaces, y as manageAssignments, ne as projectManagement, A as projectMove, U as registeredTools, re as reorderObjects, oe as requireValidTodoistToken, ee as rescheduleTasks, D as search, F as setUserStatus, se as tools, I as uncompleteTasks, H as updateComments, K as updateFilters, P as updateFolders, M as updateLabels, $ as updateProjects, V as updateReminders, j as updateSections, X as updateTasks, G as updateTemplate, O as userInfo, ae as validateTodoistToken, L as viewAttachment };
package/dist/main-http.js CHANGED
@@ -1,133 +1,140 @@
1
1
  #!/usr/bin/env node
2
- import { isIP as f } from "node:net";
3
- import S from "dotenv";
4
- import { toNodeHandler as w } from "@modelcontextprotocol/node";
5
- import { createMcpHandler as v } from "@modelcontextprotocol/server";
6
- import h from "express";
7
- import { D as I } from "./mcp-server-DYBahuLO.js";
8
- import { r as g } from "./require-valid-todoist-token-CX0Gexzt.js";
9
- function p(e) {
10
- return e.startsWith("[") && e.endsWith("]") ? e.slice(1, -1) : e;
2
+ import { t as e } from "./mcp-server-DwCZ4EX7.js";
3
+ import { t } from "./require-valid-todoist-token-DoLe7h5h.js";
4
+ import n from "dotenv";
5
+ import { createMcpHandler as r } from "@modelcontextprotocol/server";
6
+ import { isIP as i } from "node:net";
7
+ import { toNodeHandler as a } from "@modelcontextprotocol/node";
8
+ import o from "express";
9
+ // src/utils/host.ts
10
+ function s(e) {
11
+ return e.startsWith("[") && e.endsWith("]") ? e.slice(1, -1) : e;
11
12
  }
12
- function _(e) {
13
- return e = p(e), e === "localhost" || e === "::1" || e === "0:0:0:0:0:0:0:1" ? !0 : f(e) === 4 ? e.split(".")[0] === "127" : !1;
13
+ function c(e) {
14
+ return e = s(e), e === "localhost" || e === "::1" || e === "0:0:0:0:0:0:0:1" || i(e) === 4 && e.split(".")[0] === "127";
14
15
  }
15
- const L = ["localhost", "127.0.0.1", "[::1]"], A = /[@/\\?#\s]/;
16
- function m(e) {
17
- if (!A.test(e))
18
- try {
19
- return new URL(`http://${e}`).hostname.toLowerCase();
20
- } catch {
21
- return;
22
- }
16
+ // src/middleware/require-trusted-host.ts
17
+ var l = [
18
+ "localhost",
19
+ "127.0.0.1",
20
+ "[::1]"
21
+ ], u = /[@/\\?#\s]/;
22
+ function d(e) {
23
+ if (!u.test(e)) try {
24
+ return new URL(`http://${e}`).hostname.toLowerCase();
25
+ } catch {
26
+ return;
27
+ }
23
28
  }
24
- function E(e) {
25
- let o;
26
- try {
27
- o = new URL(e);
28
- } catch {
29
- return;
30
- }
31
- if (!(o.username || o.password || o.pathname !== "/" || o.search || o.hash))
32
- return o.hostname.toLowerCase();
29
+ function f(e) {
30
+ let t;
31
+ try {
32
+ t = new URL(e);
33
+ } catch {
34
+ return;
35
+ }
36
+ if (!(t.username || t.password || t.pathname !== "/" || t.search || t.hash)) return t.hostname.toLowerCase();
33
37
  }
34
- function P(e, o) {
35
- const n = new Set(L);
36
- for (const c of (o ?? "").split(",")) {
37
- const i = c.trim();
38
- i && n.add(i);
39
- }
40
- const r = p(e);
41
- return r && r !== "0.0.0.0" && r !== "::" && n.add(f(r) === 6 ? `[${r}]` : r), [...n];
38
+ function p(e, t) {
39
+ let n = new Set(l);
40
+ for (let e of (t ?? "").split(",")) {
41
+ let t = e.trim();
42
+ t && n.add(t);
43
+ }
44
+ let r = s(e);
45
+ return r && r !== "0.0.0.0" && r !== "::" && n.add(i(r) === 6 ? `[${r}]` : r), [...n];
42
46
  }
43
- function d(e, o) {
44
- e.status(403).json({
45
- jsonrpc: "2.0",
46
- error: { code: -32e3, message: o },
47
- id: null
48
- });
47
+ function m(e, t) {
48
+ e.status(403).json({
49
+ jsonrpc: "2.0",
50
+ error: {
51
+ code: -32e3,
52
+ message: t
53
+ },
54
+ id: null
55
+ });
49
56
  }
50
- function $(e) {
51
- const o = /* @__PURE__ */ new Set();
52
- for (const n of e.allowedHosts) {
53
- const r = m(n);
54
- if (!r)
55
- throw new Error(
56
- `Invalid allowed host ${JSON.stringify(n)}: must be a hostname or host:port (IPv6 literals must be bracketed, e.g. [::1])`
57
- );
58
- o.add(r);
59
- }
60
- return (n, r, c) => {
61
- const i = n.headers.host;
62
- if (!i) {
63
- d(r, "Missing Host header");
64
- return;
65
- }
66
- const a = m(i);
67
- if (!a || !o.has(a)) {
68
- d(r, `Invalid Host: ${i}`);
69
- return;
70
- }
71
- const t = n.headers.origin;
72
- if (t) {
73
- const s = E(t);
74
- if (!s || !o.has(s)) {
75
- d(r, `Invalid Origin: ${t}`);
76
- return;
77
- }
78
- }
79
- c();
80
- };
57
+ function h(e) {
58
+ let t = /* @__PURE__ */ new Set();
59
+ for (let n of e.allowedHosts) {
60
+ let e = d(n);
61
+ if (!e) throw Error(`Invalid allowed host ${JSON.stringify(n)}: must be a hostname or host:port (IPv6 literals must be bracketed, e.g. [::1])`);
62
+ t.add(e);
63
+ }
64
+ return (e, n, r) => {
65
+ let i = e.headers.host;
66
+ if (!i) {
67
+ m(n, "Missing Host header");
68
+ return;
69
+ }
70
+ let a = d(i);
71
+ if (!a || !t.has(a)) {
72
+ m(n, `Invalid Host: ${i}`);
73
+ return;
74
+ }
75
+ let o = e.headers.origin;
76
+ if (o) {
77
+ let e = f(o);
78
+ if (!e || !t.has(e)) {
79
+ m(n, `Invalid Origin: ${o}`);
80
+ return;
81
+ }
82
+ }
83
+ r();
84
+ };
81
85
  }
82
- function b({ todoistApiKey: e, baseUrl: o, allowedHosts: n }) {
83
- const r = h(), c = $({ allowedHosts: n });
84
- r.get("/health", (t, s) => {
85
- s.json({ status: "ok" });
86
- });
87
- const i = v(() => I({ token: e, baseUrl: o }), {
88
- onerror: (t) => {
89
- console.error("[Error] MCP request rejected:", t);
90
- }
91
- }), a = w(i, {
92
- onerror: (t) => {
93
- console.error("[Error] Request handling failed:", t);
94
- }
95
- });
96
- return r.post(
97
- "/mcp",
98
- c,
99
- h.json(),
100
- g({ type: "static", apiKey: e, baseUrl: o }),
101
- (t, s) => a(t, s, t.body)
102
- ), r.get("/mcp", c, (t, s) => {
103
- s.status(405).set("Allow", "POST").send("Method Not Allowed");
104
- }), { app: r, close: i.close };
86
+ // src/http-app.ts
87
+ function g({ todoistApiKey: n, baseUrl: i, allowedHosts: s }) {
88
+ let c = o(), l = h({ allowedHosts: s });
89
+ c.get("/health", (e, t) => {
90
+ t.json({ status: "ok" });
91
+ });
92
+ let u = r(() => e({
93
+ token: n,
94
+ baseUrl: i
95
+ }), { onerror: (e) => {
96
+ console.error("[Error] MCP request rejected:", e);
97
+ } }), d = a(u, { onerror: (e) => {
98
+ console.error("[Error] Request handling failed:", e);
99
+ } });
100
+ return c.post("/mcp", l, o.json(), t({
101
+ type: "static",
102
+ apiKey: n,
103
+ baseUrl: i
104
+ }), (e, t) => d(e, t, e.body)), c.get("/mcp", l, (e, t) => {
105
+ t.status(405).set("Allow", "POST").send("Method Not Allowed");
106
+ }), {
107
+ app: c,
108
+ close: u.close
109
+ };
105
110
  }
106
- S.config({ quiet: !0 });
107
- const l = Number.parseInt(process.env.PORT || "3000", 10), H = process.env.HOST || "127.0.0.1", u = p(H);
108
- function R(e) {
109
- return e === "0.0.0.0" || e === "::" ? "localhost" : T(e);
111
+ // src/main-http.ts
112
+ n.config({ quiet: !0 });
113
+ var _ = Number.parseInt(process.env.PORT || "3000", 10), v = process.env.HOST || "127.0.0.1", y = s(v);
114
+ function b(e) {
115
+ return e === "0.0.0.0" || e === "::" ? "localhost" : x(e);
110
116
  }
111
- function T(e) {
112
- return f(e) === 6 ? `[${e}]` : e;
117
+ function x(e) {
118
+ return i(e) === 6 ? `[${e}]` : e;
113
119
  }
114
- function y() {
115
- const e = process.env.TODOIST_BASE_URL, o = process.env.TODOIST_API_KEY;
116
- o || (console.error("Error: TODOIST_API_KEY environment variable is required"), process.exit(1));
117
- const n = P(H, process.env.ALLOWED_HOSTS), { app: r, close: c } = b({ todoistApiKey: o, baseUrl: e, allowedHosts: n }), i = r.listen(l, u, () => {
118
- const s = R(u);
119
- console.error(`Todoist MCP HTTP Server started on ${T(u)}:${l}`), console.error(`MCP endpoint: http://${s}:${l}/mcp`), console.error(`Health check: http://${s}:${l}/health`), _(u) || console.error(
120
- "Warning: todoist-mcp-http is reachable from other hosts. Set ALLOWED_HOSTS to the hostnames clients use and protect this service with trusted network/auth controls because requests run with TODOIST_API_KEY."
121
- );
122
- });
123
- let a = !1;
124
- const t = (s) => {
125
- a || (a = !0, console.error(`Received ${s}, shutting down`), c().catch((O) => {
126
- console.error("Error closing MCP handler:", O);
127
- }).finally(() => {
128
- i.close(() => process.exit(0)), i.closeIdleConnections();
129
- }));
130
- };
131
- process.once("SIGTERM", t), process.once("SIGINT", t);
120
+ function S() {
121
+ let e = process.env.TODOIST_BASE_URL, t = process.env.TODOIST_API_KEY;
122
+ t || (console.error("Error: TODOIST_API_KEY environment variable is required"), process.exit(1));
123
+ let { app: n, close: r } = g({
124
+ todoistApiKey: t,
125
+ baseUrl: e,
126
+ allowedHosts: p(v, process.env.ALLOWED_HOSTS)
127
+ }), i = n.listen(_, y, () => {
128
+ let e = b(y);
129
+ console.error(`Todoist MCP HTTP Server started on ${x(y)}:${_}`), console.error(`MCP endpoint: http://${e}:${_}/mcp`), console.error(`Health check: http://${e}:${_}/health`), c(y) || console.error("Warning: todoist-mcp-http is reachable from other hosts. Set ALLOWED_HOSTS to the hostnames clients use and protect this service with trusted network/auth controls because requests run with TODOIST_API_KEY.");
130
+ }), a = !1, o = (e) => {
131
+ a || (a = !0, console.error(`Received ${e}, shutting down`), r().catch((e) => {
132
+ console.error("Error closing MCP handler:", e);
133
+ }).finally(() => {
134
+ i.close(() => process.exit(0)), i.closeIdleConnections();
135
+ }));
136
+ };
137
+ process.once("SIGTERM", o), process.once("SIGINT", o);
132
138
  }
133
- y();
139
+ S();
140
+ export {};
package/dist/main.js CHANGED
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env node
2
+ import { t as e } from "./mcp-server-DwCZ4EX7.js";
2
3
  import { serveStdio as t } from "@modelcontextprotocol/server/stdio";
3
4
  import n from "dotenv";
4
- import { D as s } from "./mcp-server-DYBahuLO.js";
5
- function i() {
6
- const o = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
7
- if (!r)
8
- throw new Error("TODOIST_API_KEY is not set");
9
- t(() => s({ token: r, baseUrl: o }), {
10
- onerror: (e) => {
11
- console.error("Todoist MCP server error:", e);
12
- }
13
- }), console.error("Server started");
5
+ // src/main.ts
6
+ function r() {
7
+ let n = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
8
+ if (!r) throw Error("TODOIST_API_KEY is not set");
9
+ t(() => e({
10
+ token: r,
11
+ baseUrl: n
12
+ }), { onerror: (e) => {
13
+ console.error("Todoist MCP server error:", e);
14
+ } }), console.error("Server started");
14
15
  }
15
- n.config({ quiet: !0 });
16
- i();
16
+ n.config({ quiet: !0 }), r();
17
+ export {};