@doist/todoist-mcp 13.11.0 → 13.11.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.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as s } from "./mcp-server-zsdPZLt2.js";
2
- import { F as r, a as d, b as i, c as n, d as c, e as l, f as m, h as p, i as f, j as T, k as j, l as u, m as g, n as k, o as v, p as P, q as S, r as h, s as b, u as y, v as A, w as C, x as R, y as x, z as F, g as M, A as O, B as E, C as L, D as U, E as w, G as H, H as I, 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 } from "./mcp-server-zsdPZLt2.js";
3
- import { r as os, v as rs } from "./require-valid-todoist-token-ClKraU9q.js";
1
+ import { t as s } from "./mcp-server-BhPX7dvL.js";
2
+ import { F as r, a as d, b as i, c as n, d as c, e as l, f as m, h as p, i as f, j as T, k as j, l as u, m as g, n as k, o as v, p as P, q as S, r as h, s as b, u as y, v as A, w as C, x as R, y as x, z as F, g as M, A as O, B as E, C as L, D as U, E as w, G as H, H as I, 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 } from "./mcp-server-BhPX7dvL.js";
3
+ import { r as os, v as rs } from "./require-valid-todoist-token-BOCa8T4B.js";
4
4
  const e = s;
5
5
  export {
6
6
  r as FEATURE_NAMES,
package/dist/main-http.js CHANGED
@@ -4,8 +4,8 @@ import S from "dotenv";
4
4
  import { toNodeHandler as w } from "@modelcontextprotocol/node";
5
5
  import { createMcpHandler as v } from "@modelcontextprotocol/server";
6
6
  import h from "express";
7
- import { g as I } from "./mcp-server-zsdPZLt2.js";
8
- import { r as g } from "./require-valid-todoist-token-ClKraU9q.js";
7
+ import { g as I } from "./mcp-server-BhPX7dvL.js";
8
+ import { r as g } from "./require-valid-todoist-token-BOCa8T4B.js";
9
9
  function p(e) {
10
10
  return e.startsWith("[") && e.endsWith("]") ? e.slice(1, -1) : e;
11
11
  }
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { serveStdio as t } from "@modelcontextprotocol/server/stdio";
3
3
  import s from "dotenv";
4
- import { g as n } from "./mcp-server-zsdPZLt2.js";
4
+ import { g as n } from "./mcp-server-BhPX7dvL.js";
5
5
  function i() {
6
6
  const o = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
7
7
  if (!r)
@@ -45,13 +45,18 @@ declare function stripEmailsFromObject<T>(obj: T): T;
45
45
  */
46
46
  declare function stripEmailsFromText(text: string): string;
47
47
  /**
48
- * Register a Todoist tool in an MCP server.
48
+ * Register Todoist tools in an MCP server.
49
+ *
50
+ * Schema caching, annotations, MCP Apps `_meta`, result shaping and turning a thrown error into
51
+ * an error result come from `@doist/mcp-core`. What is Todoist's own is wired in here: the API
52
+ * client, retries, usage tracking, `strip_emails`, and the API error formatting. One registrar
53
+ * serves every tool, since none of that depends on the tool.
49
54
  */
50
- declare function registerTool({ tool, server, client, features, }: {
51
- tool: AnyTodoistTool;
55
+ declare function registerTools({ tools, server, client, features, }: {
56
+ tools: readonly AnyTodoistTool[];
52
57
  server: McpServer;
53
58
  client: TodoistApi;
54
59
  features?: Features;
55
60
  }): void;
56
- export { FEATURE_NAMES, type Feature, type FeatureName, type Features, registerTool, stripEmailsFromObject, stripEmailsFromText, };
61
+ export { FEATURE_NAMES, type Feature, type FeatureName, type Features, registerTools, stripEmailsFromObject, stripEmailsFromText, };
57
62
  //# sourceMappingURL=mcp-helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-helpers.d.ts","sourceRoot":"","sources":["../src/mcp-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EACR,SAAS,EAKZ,MAAM,8B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