@todoist/mcp 21.0.3 → 22.0.1
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 -3
- package/dist/index.js +2 -2
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/{mcp-server-ChWKreV9.js → mcp-server-BWSjVGOl.js} +23 -21
- package/dist/{require-valid-todoist-token-Cn1BF5bs.js → require-valid-todoist-token-Dn3kiJrR.js} +1 -1
- package/dist/tool-registry.d.ts +3 -3
- package/dist/tools/view-attachment.d.ts +3 -3
- package/dist/tools/view-attachment.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2580,15 +2580,15 @@ declare const tools: {
|
|
|
2580
2580
|
name: "view-attachment";
|
|
2581
2581
|
description: string;
|
|
2582
2582
|
parameters: {
|
|
2583
|
-
|
|
2583
|
+
commentId: import('zod').ZodString;
|
|
2584
2584
|
};
|
|
2585
2585
|
annotations: {
|
|
2586
2586
|
readOnlyHint: true;
|
|
2587
2587
|
destructiveHint: false;
|
|
2588
2588
|
idempotentHint: true;
|
|
2589
2589
|
};
|
|
2590
|
-
execute({
|
|
2591
|
-
|
|
2590
|
+
execute({ commentId }: {
|
|
2591
|
+
commentId: string;
|
|
2592
2592
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
2593
2593
|
textContent: string;
|
|
2594
2594
|
contentItems?: undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { n as ae, t as oe } from "./require-valid-todoist-token-
|
|
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-BWSjVGOl.js";
|
|
2
|
+
import { n as ae, t as oe } from "./require-valid-todoist-token-Dn3kiJrR.js";
|
|
3
3
|
// src/index.ts
|
|
4
4
|
var se = J;
|
|
5
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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as e } from "./mcp-server-
|
|
3
|
-
import { t } from "./require-valid-todoist-token-
|
|
2
|
+
import { t as e } from "./mcp-server-BWSjVGOl.js";
|
|
3
|
+
import { t } from "./require-valid-todoist-token-Dn3kiJrR.js";
|
|
4
4
|
import n from "dotenv";
|
|
5
5
|
import { createMcpHandler as r } from "@modelcontextprotocol/server";
|
|
6
6
|
import { isIP as i } from "node:net";
|
package/dist/main.js
CHANGED
|
@@ -351,7 +351,7 @@ function ft(e) {
|
|
|
351
351
|
}
|
|
352
352
|
var pt = {
|
|
353
353
|
name: "@todoist/mcp",
|
|
354
|
-
version: "
|
|
354
|
+
version: "22.0.1",
|
|
355
355
|
type: "module",
|
|
356
356
|
main: "./dist/index.js",
|
|
357
357
|
types: "./dist/index.d.ts",
|
|
@@ -419,7 +419,7 @@ var pt = {
|
|
|
419
419
|
},
|
|
420
420
|
dependencies: {
|
|
421
421
|
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
422
|
-
"@todoist/mcp-core": "2.0.
|
|
422
|
+
"@todoist/mcp-core": "2.0.1",
|
|
423
423
|
"@todoist/sdk": "24.2.1",
|
|
424
424
|
"date-fns": "4.4.0",
|
|
425
425
|
dompurify: "3.5.0",
|
|
@@ -8527,38 +8527,40 @@ function Ip(e) {
|
|
|
8527
8527
|
return;
|
|
8528
8528
|
}
|
|
8529
8529
|
}
|
|
8530
|
-
var Lp = {
|
|
8530
|
+
var Lp = { commentId: p.string().min(1).describe("The ID of the comment whose attached file to view.") }, Rp = {
|
|
8531
8531
|
name: B.VIEW_ATTACHMENT,
|
|
8532
|
-
description: "View
|
|
8532
|
+
description: "View the file attached to a Todoist comment. Images are returned inline, text files as text, and other files such as PDFs as embedded resources.",
|
|
8533
8533
|
parameters: Lp,
|
|
8534
8534
|
annotations: {
|
|
8535
8535
|
readOnlyHint: !0,
|
|
8536
8536
|
destructiveHint: !1,
|
|
8537
8537
|
idempotentHint: !0
|
|
8538
8538
|
},
|
|
8539
|
-
async execute({
|
|
8540
|
-
let n = await t.
|
|
8541
|
-
if (
|
|
8542
|
-
let
|
|
8543
|
-
if (
|
|
8544
|
-
let d =
|
|
8545
|
-
return
|
|
8539
|
+
async execute({ commentId: e }, t) {
|
|
8540
|
+
let n = await t.getComment(e), r = n.fileAttachment?.fileUrl;
|
|
8541
|
+
if (!r) throw Error(`Comment ${e} has no file attachment to view.`);
|
|
8542
|
+
let i = await t.viewAttachment(n), a = i.headers["content-length"], o = a ? Number.parseInt(a, 10) : void 0, s = Ip(r), c = i.headers["content-type"], l = c ? Pp(c) : void 0, u = l && l !== "application/octet-stream" ? l : Fp(r) ?? l ?? "application/octet-stream";
|
|
8543
|
+
if (o && o > kp) return { textContent: `Attachment "${s ?? r}" is too large to display inline (${(o / 1024 / 1024).toFixed(1)}MB, limit is 10MB). File type: ${u}` };
|
|
8544
|
+
let d = Buffer.from(await i.arrayBuffer()), f = d.byteLength;
|
|
8545
|
+
if (f > kp) return { textContent: `Attachment "${s ?? r}" is too large to display inline (${(f / 1024 / 1024).toFixed(1)}MB, limit is 10MB). File type: ${u}` };
|
|
8546
|
+
let p = Np(u), m = [];
|
|
8547
|
+
return p === "image" ? m.push({
|
|
8546
8548
|
type: "image",
|
|
8547
|
-
data:
|
|
8548
|
-
mimeType:
|
|
8549
|
-
}) :
|
|
8549
|
+
data: d.toString("base64"),
|
|
8550
|
+
mimeType: u
|
|
8551
|
+
}) : p === "text" ? m.push({
|
|
8550
8552
|
type: "text",
|
|
8551
|
-
text:
|
|
8552
|
-
}) :
|
|
8553
|
+
text: d.toString("utf-8")
|
|
8554
|
+
}) : m.push({
|
|
8553
8555
|
type: "resource",
|
|
8554
8556
|
resource: {
|
|
8555
|
-
uri:
|
|
8556
|
-
mimeType:
|
|
8557
|
-
blob:
|
|
8557
|
+
uri: r,
|
|
8558
|
+
mimeType: u,
|
|
8559
|
+
blob: d.toString("base64")
|
|
8558
8560
|
}
|
|
8559
8561
|
}), {
|
|
8560
|
-
textContent: `Attachment: ${
|
|
8561
|
-
contentItems:
|
|
8562
|
+
textContent: `Attachment: ${s ?? "unknown"} (${u}, ${(f / 1024).toFixed(1)}KB)`,
|
|
8563
|
+
contentItems: m
|
|
8562
8564
|
};
|
|
8563
8565
|
}
|
|
8564
8566
|
}, zp = {
|
package/dist/{require-valid-todoist-token-Cn1BF5bs.js → require-valid-todoist-token-Dn3kiJrR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ot as e, st as t } from "./mcp-server-
|
|
1
|
+
import { ot as e, st as t } from "./mcp-server-BWSjVGOl.js";
|
|
2
2
|
import { buildBearerChallenge as n, createTokenVerdictCache as r, getValidationRateLimit as i, validateBearerToken as a } from "@todoist/mcp-core/host";
|
|
3
3
|
// src/utils/validate-todoist-token.ts
|
|
4
4
|
var o = "https://api.todoist.com", s = (n, r) => a({
|
package/dist/tool-registry.d.ts
CHANGED
|
@@ -2527,15 +2527,15 @@ declare const toolRegistry: {
|
|
|
2527
2527
|
name: "view-attachment";
|
|
2528
2528
|
description: string;
|
|
2529
2529
|
parameters: {
|
|
2530
|
-
|
|
2530
|
+
commentId: import('zod').ZodString;
|
|
2531
2531
|
};
|
|
2532
2532
|
annotations: {
|
|
2533
2533
|
readOnlyHint: true;
|
|
2534
2534
|
destructiveHint: false;
|
|
2535
2535
|
idempotentHint: true;
|
|
2536
2536
|
};
|
|
2537
|
-
execute({
|
|
2538
|
-
|
|
2537
|
+
execute({ commentId }: {
|
|
2538
|
+
commentId: string;
|
|
2539
2539
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
2540
2540
|
textContent: string;
|
|
2541
2541
|
contentItems?: undefined;
|
|
@@ -4,15 +4,15 @@ declare const viewAttachment: {
|
|
|
4
4
|
name: "view-attachment";
|
|
5
5
|
description: string;
|
|
6
6
|
parameters: {
|
|
7
|
-
|
|
7
|
+
commentId: z.ZodString;
|
|
8
8
|
};
|
|
9
9
|
annotations: {
|
|
10
10
|
readOnlyHint: true;
|
|
11
11
|
destructiveHint: false;
|
|
12
12
|
idempotentHint: true;
|
|
13
13
|
};
|
|
14
|
-
execute({
|
|
15
|
-
|
|
14
|
+
execute({ commentId }: {
|
|
15
|
+
commentId: string;
|
|
16
16
|
}, client: import('@todoist/sdk').TodoistApi): Promise<{
|
|
17
17
|
textContent: string;
|
|
18
18
|
contentItems?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/view-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"view-attachment.d.ts","sourceRoot":"","sources":["../../src/tools/view-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAmFvB,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;CA6EsB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@todoist/mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
71
|
-
"@todoist/mcp-core": "2.0.
|
|
71
|
+
"@todoist/mcp-core": "2.0.1",
|
|
72
72
|
"@todoist/sdk": "24.2.1",
|
|
73
73
|
"date-fns": "4.4.0",
|
|
74
74
|
"dompurify": "3.5.0",
|