@todoist/mcp 17.3.16 → 17.3.18
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 +3 -3
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-apps/index.html +15 -15
- package/dist/{mcp-server-kou63fuj.js → mcp-server-CD4Bs1_k.js} +1611 -1611
- package/dist/prompts/productivity-analysis.d.ts +8 -4
- package/dist/prompts/productivity-analysis.d.ts.map +1 -1
- package/dist/{require-valid-todoist-token-EV7xylof.js → require-valid-todoist-token-BlzklmMk.js} +1 -1
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/date.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GetPromptResult } from '@modelcontextprotocol/server';
|
|
2
|
+
import { TodoistApi } from '@todoist/sdk';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
declare const argsSchema: z.ZodObject<{
|
|
4
5
|
period: z.ZodDefault<z.ZodEnum<{
|
|
@@ -21,15 +22,18 @@ declare const argsSchema: z.ZodObject<{
|
|
|
21
22
|
type PromptArgs = z.infer<typeof argsSchema>;
|
|
22
23
|
/**
|
|
23
24
|
* Compute the date range (since/until as YYYY-MM-DD) for a given period.
|
|
24
|
-
*
|
|
25
|
+
* "Today" is the date at `offsetMinutes` from UTC, which the prompt callback sets to
|
|
26
|
+
* the user's Todoist timezone, so the range follows the user's calendar rather than
|
|
27
|
+
* the server's. The arithmetic runs on UTC calendar dates, so the server's own
|
|
28
|
+
* timezone and daylight-saving changes cannot move a day.
|
|
25
29
|
*/
|
|
26
|
-
declare function computeDateRange(period: PromptArgs['period'], now?: Date): {
|
|
30
|
+
declare function computeDateRange(period: PromptArgs['period'], now?: Date, offsetMinutes?: number): {
|
|
27
31
|
since: string;
|
|
28
32
|
until: string;
|
|
29
33
|
periodDescription: string;
|
|
30
34
|
};
|
|
31
|
-
declare function buildPromptText(args: PromptArgs): string;
|
|
32
|
-
declare function callback(args: PromptArgs): GetPromptResult
|
|
35
|
+
declare function buildPromptText(args: PromptArgs, range?: ReturnType<typeof computeDateRange>): string;
|
|
36
|
+
declare function callback(args: PromptArgs, client: TodoistApi): Promise<GetPromptResult>;
|
|
33
37
|
declare const productivityAnalysis: {
|
|
34
38
|
name: string;
|
|
35
39
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productivity-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/productivity-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"productivity-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/productivity-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;iBAiBd,CAAA;AAEF,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAE5C;;;;;;GAMG;AACH,iBAAS,gBAAgB,CACrB,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,EAC5B,GAAG,GAAE,IAAiB,EACtB,aAAa,SAAI,GAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAiC7D;AAuDD,iBAAS,eAAe,CACpB,IAAI,EAAE,UAAU,EAChB,KAAK,GAAE,UAAU,CAAC,OAAO,gBAAgB,CAAiC,GAC3E,MAAM,CAkCR;AAED,iBAAe,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,eAAe,CAAC,CAatF;AAED,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CAOzB,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,CAAA"}
|
package/dist/{require-valid-todoist-token-EV7xylof.js → require-valid-todoist-token-BlzklmMk.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { validateBearerToken as A, getValidationRateLimit as v, createTokenVerdictCache as k, buildBearerChallenge as f } from "@todoist/mcp-core/host";
|
|
2
|
-
import { a2 as p, a3 as g } from "./mcp-server-
|
|
2
|
+
import { a2 as p, a3 as g } from "./mcp-server-CD4Bs1_k.js";
|
|
3
3
|
const m = "https://api.todoist.com", E = (e, t) => A({
|
|
4
4
|
// Resolved the way the SDK resolves its own requests against a custom base URL. An empty
|
|
5
5
|
// base (`TODOIST_BASE_URL=`) means the default, as it does for the SDK client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-tasks-by-date.d.ts","sourceRoot":"","sources":["../../src/tools/find-tasks-by-date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"find-tasks-by-date.d.ts","sourceRoot":"","sources":["../../src/tools/find-tasks-by-date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAyDvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAA;AAUD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkG0C,CAAA;AA0F/D,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export declare function shiftDateStringByDays(dateString: string, days: number):
|
|
|
21
21
|
* the last day named is `daysCount - 1` days after the start.
|
|
22
22
|
*/
|
|
23
23
|
export declare function describeDateRange(startDate: string, daysCount: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* The days a search of `daysCount` days from today covers: "Today", "Today and
|
|
26
|
+
* Tomorrow", or "Today and the next N days".
|
|
27
|
+
*/
|
|
28
|
+
export declare function describeDaysFromToday(daysCount: number): string;
|
|
24
29
|
/**
|
|
25
30
|
* The first moment of a YYYY-MM-DD date in `timeZone`, as `YYYY-MM-DDT00:00:00` with the
|
|
26
31
|
* offset that names it. A fixed offset such as the user's current `gmtString` is wrong
|
package/dist/utils/date.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/utils/date.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAKhD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI/D;AAgCD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,EAC1B,IAAI,EACJ,QAAQ,EACR,cAAc,GACjB,EAAE;IACC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACnC,cAAc,EAAE,MAAM,CAAA;CACzB,GAAG,MAAM,CAmBT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@todoist/mcp",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@modelcontextprotocol/ext-apps": "2.0.4",
|
|
70
70
|
"@todoist/mcp-core": "1.3.0",
|
|
71
|
-
"@todoist/sdk": "24.1.
|
|
71
|
+
"@todoist/sdk": "24.1.3",
|
|
72
72
|
"date-fns": "4.1.0",
|
|
73
73
|
"dompurify": "3.4.18",
|
|
74
74
|
"dotenv": "17.3.1",
|