@todoist/mcp 20.0.0 → 20.1.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.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-CBCXlgTk.js";
2
- import { n as ae, t as oe } from "./require-valid-todoist-token-A1f9GBWq.js";
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-evoO2bJn.js";
2
+ import { n as ae, t as oe } from "./require-valid-todoist-token-a9fHse9A.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-CBCXlgTk.js";
3
- import { t } from "./require-valid-todoist-token-A1f9GBWq.js";
2
+ import { t as e } from "./mcp-server-evoO2bJn.js";
3
+ import { t } from "./require-valid-todoist-token-a9fHse9A.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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as e } from "./mcp-server-CBCXlgTk.js";
2
+ import { t as e } from "./mcp-server-evoO2bJn.js";
3
3
  import { serveStdio as t } from "@modelcontextprotocol/server/stdio";
4
4
  import n from "dotenv";
5
5
  // src/main.ts
@@ -351,7 +351,7 @@ function ft(e) {
351
351
  }
352
352
  var pt = {
353
353
  name: "@todoist/mcp",
354
- version: "20.0.0",
354
+ version: "20.1.0",
355
355
  type: "module",
356
356
  main: "./dist/index.js",
357
357
  types: "./dist/index.d.ts",
@@ -8632,7 +8632,7 @@ var Gp = { fileUrl: p.url().regex(/^https:\/\/(?:files\.todoist\.com|todoist\.b-
8632
8632
  listWorkspaces: zu,
8633
8633
  search: Id,
8634
8634
  fetch: Us
8635
- }, Jp = Object.values(qp), Yp = "\n## Todoist\n\nManage Todoist: create, update, complete and search tasks (priorities, dates, durations, assignees, labels); organise projects, sections and folders, personal or in workspaces; comments and attachments, filters, reminders, templates, collaborators, user status, activity, overviews and productivity stats.\n\n**Dates**\n\n- To move a task to a different date or time use **reschedule-tasks**, never **update-tasks**. It also sets duration, for time-blocking. update-tasks replaces the whole due string, so it refuses a dueString on a recurring task unless replaceRecurrence is true.\n- Never send a task's existing projectId, sectionId or parentId back to **update-tasks** — those fields are treated as a move.\n- All dates respect the user's timezone.\n- Todoist apps show no duration of 24 hours or more (\"36h\", \"3d\"), though it is stored: only set one when the user explicitly asks for it.\n\n**Finding things**\n\n- For \"what did I complete?\", call **user-info** for the asker's user ID, then **find-activity** with objectType=\"task\", eventType=\"completed\", initiatorId, and dateFrom/dateTo. Without initiatorId the answer covers every collaborator. find-activity reports completion events, including each occurrence of a recurring task; **find-completed-tasks** lists completed tasks, which is not the same question.\n- To resolve a person's name or email to a user ID, or to answer \"who is X?\", use **find-project-collaborators** with just a searchTerm. It covers every shared project you can access plus yourself, so an empty result means they collaborate on none of them — not that they do not exist.\n- Before assigning work to someone, call **find-project-collaborators** again with the target projectId. Resolving an ID only proves they collaborate on *some* project you can see; assignment fails unless they collaborate on that one.\n- To find out whether a task hides subtasks, use **fetch-object** with includeChildren rather than a speculative **find-tasks** call.\n- Filter tasks by label **name**. Label IDs are only for **delete-object** and **update-labels**. Shared labels can be renamed but not recoloured, reordered or favourited.\n\n**Comments**\n\n- Comments notify only the people **add-comments** is handed. When a comment mentions someone, name them in `notifyUsers` — writing \"@Ana\" in the text notifies nobody. Omit `notifyUsers` to notify whoever the Todoist apps would, or pass `[\"none\"]` to stay silent.\n- Notification cannot be sent when editing a comment, only when adding one.\n\n**Deleting and archiving**\n\n- **delete-object** removes every object type; there is no per-type delete tool. Reminders use type \"reminder\", location reminders \"location_reminder\".\n- A workspace project must be archived with **project-management** before it can be deleted. A personal project can be deleted directly.\n\n**Templates**\n\n- Find a template with **find-templates** when the user names one without its ID or URL. Start a new project from one with **add-projects** and its templateId; add one to an existing project with **import-into-project**. Both write immediately and cannot be undone.\n- \"Save as template\", a template from CSV, and a template from scratch all use **add-template**, which saves a reusable template in the user's Todoist. **export-project** returns a CSV file or download link instead. Edit, move or share a saved template with **update-template**. To change what a template contains (layout, sections, tasks), fetch it with **fetch-object**, then send the edited content back to **update-template**.\n\n**Project health**\n\n- Health data may be stale — check the isStale flag, and call **analyze-project-health** to refresh it before reading again.\n\n**Batches**\n\n- Prefer a batch tool over one call per item.\n- Where a batch tool returns per-item `failures` alongside successes, one failure does not undo the rest: never retry the whole batch, re-send only the items whose failure reason is fixable.\n\nFor a productivity review, call **get-productivity-stats**, then find what the user completed as described under \"Finding things\".\n", Xp = "The official Todoist MCP server. Add, update, schedule, complete and search tasks, with priorities, due dates, deadlines, durations, labels and assignees. Organise projects, sections and folders, personal or in a workspace. Add, edit and read comments and view their attachments, and manage labels, saved filters, reminders and templates. Find collaborators, check or set your status, and review activity, project health and productivity stats.";
8635
+ }, Jp = Object.values(qp), Yp = "\n## Todoist\n\nManage Todoist: tasks (priorities, dates, durations, assignees, labels); projects, sections and folders, personal or in workspaces; comments and attachments, filters, reminders, templates, collaborators, user status, activity, overviews and productivity stats.\n\n**Dates**\n\n- To move a task to a different date or time use **reschedule-tasks**, never **update-tasks**. It also sets duration, for time-blocking. update-tasks replaces the whole due string, so it refuses a dueString on a recurring task unless replaceRecurrence is true.\n- Never send a task's existing projectId, sectionId or parentId back to **update-tasks** — those fields are treated as a move.\n- All dates respect the user's timezone.\n- Todoist apps hide durations of 24 hours or more (\"36h\", \"3d\"): only set one when the user explicitly asks for it.\n\n**Finding things**\n\n- For \"what did I complete?\", call **user-info** for the asker's user ID, then **find-activity** with objectType=\"task\", eventType=\"completed\", initiatorId, and dateFrom/dateTo. Without initiatorId the answer covers every collaborator. find-activity reports completion events, including each occurrence of a recurring task; **find-completed-tasks** lists completed tasks, which is not the same question.\n- To resolve a person's name or email to a user ID, or to answer \"who is X?\", use **find-project-collaborators** with just a searchTerm. It covers every shared project you can access plus yourself, so an empty result means they share none of them, not that they do not exist.\n- Before assigning work, call **find-project-collaborators** again with the target projectId: an ID only proves they share *some* project with you, and assignment needs that one.\n- To check whether a task has subtasks, use **fetch-object** with includeChildren, not a speculative **find-tasks**.\n- Filter tasks by label **name**. Label IDs are only for **delete-object** and **update-labels**. Shared labels can be renamed but not recoloured, reordered or favourited.\n\n**Comments**\n\n- Comments notify only the people **add-comments** is handed. When a comment mentions someone, name them in `notifyUsers` — writing \"@Ana\" in the text notifies nobody. Omit `notifyUsers` to notify whoever the Todoist apps would, or pass `[\"none\"]` to stay silent.\n- Editing a comment cannot notify anyone; only adding one can.\n\n**Deleting and archiving**\n\n- **delete-object** removes every object type, \"reminder\" and \"location_reminder\" included; there is no per-type delete tool.\n- A workspace project must be archived with **project-management** before it can be deleted. A personal project can be deleted directly.\n\n**Templates**\n\n- Use **find-templates** when the user names a template without its ID or URL. Start a project from one with **add-projects** and its templateId, or add one to an existing project with **import-into-project**; both write immediately and cannot be undone.\n- **add-template** saves a reusable template from a project (\"Save as template\"), CSV or scratch; **export-project** returns a CSV instead. Edit, move or share a saved template with **update-template**; to change its layout, sections or tasks, read it with **fetch-object** first, then send the edited content to **update-template**.\n\n**Project health**\n\n- Health data may be stale: if isStale is true, call **analyze-project-health** to refresh it before reading again.\n\n**Batches**\n\n- Prefer a batch tool over one call per item.\n- Per-item `failures` from a batch tool don't undo the rest: never retry the whole batch, re-send only the failed items whose reason is fixable.\n\nFor a productivity review, call **get-productivity-stats**, then find what the user completed as described under \"Finding things\".\n\n**Other Todoist apps**\n\n- Todoist Automations (workflows on a schedule or trigger, such as a new project, that can ask the user questions; Pro and Business plans) and Comms (team chat) are separate MCP servers on the same Todoist account: https://ai.todoist.net/mcp/automations and https://ai.todoist.net/mcp/comms. Never say one has no MCP support: tell the user they can add it.\n", Xp = "The official Todoist MCP server. Add, update, schedule, complete and search tasks, with priorities, due dates, deadlines, durations, labels and assignees. Organise projects, sections and folders, personal or in a workspace. Add, edit and read comments and view their attachments, and manage labels, saved filters, reminders and templates. Find collaborators, check or set your status, and review activity, project health and productivity stats.";
8636
8636
  function Zp({ token: e, baseUrl: n, features: r = [] }) {
8637
8637
  let i = new t({
8638
8638
  name: "todoist-mcp-server",
@@ -1,7 +1,7 @@
1
1
  import { McpServer } from '@modelcontextprotocol/server';
2
2
  import { McpServerOptions } from '@todoist/mcp-core/host';
3
3
  import { FEATURE_NAMES, Feature, FeatureName, Features } from './mcp-helpers.js';
4
- export declare const instructions = "\n## Todoist\n\nManage Todoist: create, update, complete and search tasks (priorities, dates, durations, assignees, labels); organise projects, sections and folders, personal or in workspaces; comments and attachments, filters, reminders, templates, collaborators, user status, activity, overviews and productivity stats.\n\n**Dates**\n\n- To move a task to a different date or time use **reschedule-tasks**, never **update-tasks**. It also sets duration, for time-blocking. update-tasks replaces the whole due string, so it refuses a dueString on a recurring task unless replaceRecurrence is true.\n- Never send a task's existing projectId, sectionId or parentId back to **update-tasks** \u2014 those fields are treated as a move.\n- All dates respect the user's timezone.\n- Todoist apps show no duration of 24 hours or more (\"36h\", \"3d\"), though it is stored: only set one when the user explicitly asks for it.\n\n**Finding things**\n\n- For \"what did I complete?\", call **user-info** for the asker's user ID, then **find-activity** with objectType=\"task\", eventType=\"completed\", initiatorId, and dateFrom/dateTo. Without initiatorId the answer covers every collaborator. find-activity reports completion events, including each occurrence of a recurring task; **find-completed-tasks** lists completed tasks, which is not the same question.\n- To resolve a person's name or email to a user ID, or to answer \"who is X?\", use **find-project-collaborators** with just a searchTerm. It covers every shared project you can access plus yourself, so an empty result means they collaborate on none of them \u2014 not that they do not exist.\n- Before assigning work to someone, call **find-project-collaborators** again with the target projectId. Resolving an ID only proves they collaborate on *some* project you can see; assignment fails unless they collaborate on that one.\n- To find out whether a task hides subtasks, use **fetch-object** with includeChildren rather than a speculative **find-tasks** call.\n- Filter tasks by label **name**. Label IDs are only for **delete-object** and **update-labels**. Shared labels can be renamed but not recoloured, reordered or favourited.\n\n**Comments**\n\n- Comments notify only the people **add-comments** is handed. When a comment mentions someone, name them in `notifyUsers` \u2014 writing \"@Ana\" in the text notifies nobody. Omit `notifyUsers` to notify whoever the Todoist apps would, or pass `[\"none\"]` to stay silent.\n- Notification cannot be sent when editing a comment, only when adding one.\n\n**Deleting and archiving**\n\n- **delete-object** removes every object type; there is no per-type delete tool. Reminders use type \"reminder\", location reminders \"location_reminder\".\n- A workspace project must be archived with **project-management** before it can be deleted. A personal project can be deleted directly.\n\n**Templates**\n\n- Find a template with **find-templates** when the user names one without its ID or URL. Start a new project from one with **add-projects** and its templateId; add one to an existing project with **import-into-project**. Both write immediately and cannot be undone.\n- \"Save as template\", a template from CSV, and a template from scratch all use **add-template**, which saves a reusable template in the user's Todoist. **export-project** returns a CSV file or download link instead. Edit, move or share a saved template with **update-template**. To change what a template contains (layout, sections, tasks), fetch it with **fetch-object**, then send the edited content back to **update-template**.\n\n**Project health**\n\n- Health data may be stale \u2014 check the isStale flag, and call **analyze-project-health** to refresh it before reading again.\n\n**Batches**\n\n- Prefer a batch tool over one call per item.\n- Where a batch tool returns per-item `failures` alongside successes, one failure does not undo the rest: never retry the whole batch, re-send only the items whose failure reason is fixable.\n\nFor a productivity review, call **get-productivity-stats**, then find what the user completed as described under \"Finding things\".\n";
4
+ export declare const instructions = "\n## Todoist\n\nManage Todoist: tasks (priorities, dates, durations, assignees, labels); projects, sections and folders, personal or in workspaces; comments and attachments, filters, reminders, templates, collaborators, user status, activity, overviews and productivity stats.\n\n**Dates**\n\n- To move a task to a different date or time use **reschedule-tasks**, never **update-tasks**. It also sets duration, for time-blocking. update-tasks replaces the whole due string, so it refuses a dueString on a recurring task unless replaceRecurrence is true.\n- Never send a task's existing projectId, sectionId or parentId back to **update-tasks** \u2014 those fields are treated as a move.\n- All dates respect the user's timezone.\n- Todoist apps hide durations of 24 hours or more (\"36h\", \"3d\"): only set one when the user explicitly asks for it.\n\n**Finding things**\n\n- For \"what did I complete?\", call **user-info** for the asker's user ID, then **find-activity** with objectType=\"task\", eventType=\"completed\", initiatorId, and dateFrom/dateTo. Without initiatorId the answer covers every collaborator. find-activity reports completion events, including each occurrence of a recurring task; **find-completed-tasks** lists completed tasks, which is not the same question.\n- To resolve a person's name or email to a user ID, or to answer \"who is X?\", use **find-project-collaborators** with just a searchTerm. It covers every shared project you can access plus yourself, so an empty result means they share none of them, not that they do not exist.\n- Before assigning work, call **find-project-collaborators** again with the target projectId: an ID only proves they share *some* project with you, and assignment needs that one.\n- To check whether a task has subtasks, use **fetch-object** with includeChildren, not a speculative **find-tasks**.\n- Filter tasks by label **name**. Label IDs are only for **delete-object** and **update-labels**. Shared labels can be renamed but not recoloured, reordered or favourited.\n\n**Comments**\n\n- Comments notify only the people **add-comments** is handed. When a comment mentions someone, name them in `notifyUsers` \u2014 writing \"@Ana\" in the text notifies nobody. Omit `notifyUsers` to notify whoever the Todoist apps would, or pass `[\"none\"]` to stay silent.\n- Editing a comment cannot notify anyone; only adding one can.\n\n**Deleting and archiving**\n\n- **delete-object** removes every object type, \"reminder\" and \"location_reminder\" included; there is no per-type delete tool.\n- A workspace project must be archived with **project-management** before it can be deleted. A personal project can be deleted directly.\n\n**Templates**\n\n- Use **find-templates** when the user names a template without its ID or URL. Start a project from one with **add-projects** and its templateId, or add one to an existing project with **import-into-project**; both write immediately and cannot be undone.\n- **add-template** saves a reusable template from a project (\"Save as template\"), CSV or scratch; **export-project** returns a CSV instead. Edit, move or share a saved template with **update-template**; to change its layout, sections or tasks, read it with **fetch-object** first, then send the edited content to **update-template**.\n\n**Project health**\n\n- Health data may be stale: if isStale is true, call **analyze-project-health** to refresh it before reading again.\n\n**Batches**\n\n- Prefer a batch tool over one call per item.\n- Per-item `failures` from a batch tool don't undo the rest: never retry the whole batch, re-send only the failed items whose reason is fixable.\n\nFor a productivity review, call **get-productivity-stats**, then find what the user completed as described under \"Finding things\".\n\n**Other Todoist apps**\n\n- Todoist Automations (workflows on a schedule or trigger, such as a new project, that can ask the user questions; Pro and Business plans) and Comms (team chat) are separate MCP servers on the same Todoist account: https://ai.todoist.net/mcp/automations and https://ai.todoist.net/mcp/comms. Never say one has no MCP support: tell the user they can add it.\n";
5
5
  /**
6
6
  * Create the MCP server.
7
7
  * @param token - The user's Todoist API token.
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EACH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEhB,MAAM,kBAAkB,CAAA;AAOzB,eAAO,MAAM,YAAY,gkIA6CxB,CAAA;AAUD;;;;;;GAMG;AAEH,iBAAS,YAAY,CAAC,EAClB,KAAK,EACL,OAAO,EACP,QAAa,GAChB,EAAE,gBAAgB,GAAG;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB,aAsDA;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EACH,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,QAAQ,EAEhB,MAAM,kBAAkB,CAAA;AAOzB,eAAO,MAAM,YAAY,ulIAiDxB,CAAA;AAUD;;;;;;GAMG;AAEH,iBAAS,YAAY,CAAC,EAClB,KAAK,EACL,OAAO,EACP,QAAa,GAChB,EAAE,gBAAgB,GAAG;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB,aAsDA;AAED,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,YAAY,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ot as e, st as t } from "./mcp-server-CBCXlgTk.js";
1
+ import { ot as e, st as t } from "./mcp-server-evoO2bJn.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/mcp",
3
- "version": "20.0.0",
3
+ "version": "20.1.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",