@doist/todoist-ai 7.11.0 → 7.11.2
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/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +20 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +2 -2
- package/dist/main-http.js +1 -1
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/{mcp-server-BTYWubVl.js → mcp-server-BxHvudlC.js} +1369 -1088
- package/dist/tool-execution-error.d.ts +7 -0
- package/dist/tool-execution-error.d.ts.map +1 -0
- package/dist/tools/add-projects.d.ts +2 -2
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/fetch-object.d.ts +2 -2
- package/dist/tools/find-completed-tasks.d.ts +5 -5
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-projects.d.ts +2 -2
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/project-management.d.ts +2 -2
- package/dist/tools/project-move.d.ts +2 -2
- package/dist/tools/update-projects.d.ts +2 -2
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/utils/colors.d.ts +22 -0
- package/dist/utils/colors.d.ts.map +1 -1
- package/dist/utils/date.d.ts +18 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/output-schemas.d.ts +2 -2
- package/dist/utils/priorities.d.ts +1 -0
- package/dist/utils/priorities.d.ts.map +1 -1
- package/package.json +7 -5
- package/scripts/run-tool.ts +1 -1
package/{LICENSE.txt → LICENSE}
RENAMED
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ See [docs/mcp-server.md](docs/mcp-server.md) for full instructions on setting up
|
|
|
152
152
|
|
|
153
153
|
## Local Development Setup
|
|
154
154
|
|
|
155
|
-
See [docs/dev-setup.md](docs/dev-setup.md) for full instructions
|
|
155
|
+
See [docs/dev-setup.md](docs/dev-setup.md) for full setup instructions and [CONTRIBUTING.md](CONTRIBUTING.md) for contributor workflows and quality checks.
|
|
156
156
|
|
|
157
157
|
### Widgets
|
|
158
158
|
|
|
@@ -166,6 +166,25 @@ After cloning and setting up the repository:
|
|
|
166
166
|
|
|
167
167
|
- `npm start` - Build and run the MCP inspector for testing
|
|
168
168
|
- `npm run dev` - Development mode with auto-rebuild and restart
|
|
169
|
+
- `npm run tool:list` - List available tools for direct execution
|
|
170
|
+
- `npm run tool -- <tool-name> '<json-args>'` - Run a tool directly without MCP
|
|
171
|
+
|
|
172
|
+
When using `npm run tool`, include `--` before tool arguments so npm forwards them to `scripts/run-tool.ts`.
|
|
173
|
+
|
|
174
|
+
Example check before write operations:
|
|
175
|
+
`npm run tool -- user-info '{}'`
|
|
176
|
+
This confirms which Todoist account the current `TODOIST_API_KEY` is connected to.
|
|
177
|
+
|
|
178
|
+
`run-tool` uses `TODOIST_API_KEY` from your `.env` file (created from `.env.example` by `npm run setup`). Use a test account or a temporary project when running write operations to avoid modifying real data.
|
|
179
|
+
|
|
180
|
+
## Contributing
|
|
181
|
+
|
|
182
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for:
|
|
183
|
+
|
|
184
|
+
- Development workflow
|
|
185
|
+
- Running tools directly with `scripts/run-tool.ts`
|
|
186
|
+
- Testing and quality checks
|
|
187
|
+
- Commit conventions
|
|
169
188
|
|
|
170
189
|
## Releasing
|
|
171
190
|
|
package/dist/index.d.ts
CHANGED
|
@@ -500,8 +500,8 @@ declare const tools: {
|
|
|
500
500
|
due: "due";
|
|
501
501
|
completion: "completion";
|
|
502
502
|
}>>;
|
|
503
|
-
since: import('zod').ZodString
|
|
504
|
-
until: import('zod').ZodString
|
|
503
|
+
since: import('zod').ZodOptional<import('zod').ZodString>;
|
|
504
|
+
until: import('zod').ZodOptional<import('zod').ZodString>;
|
|
505
505
|
workspaceId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
506
506
|
projectId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
507
507
|
sectionId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -547,11 +547,11 @@ declare const tools: {
|
|
|
547
547
|
};
|
|
548
548
|
execute(args: {
|
|
549
549
|
getBy: "due" | "completion";
|
|
550
|
-
since: string;
|
|
551
|
-
until: string;
|
|
552
550
|
limit: number;
|
|
553
551
|
labels?: string[] | undefined;
|
|
554
552
|
labelsOperator?: "and" | "or" | undefined;
|
|
553
|
+
since?: string | undefined;
|
|
554
|
+
until?: string | undefined;
|
|
555
555
|
workspaceId?: string | undefined;
|
|
556
556
|
projectId?: string | undefined;
|
|
557
557
|
sectionId?: string | undefined;
|
|
@@ -583,9 +583,9 @@ declare const tools: {
|
|
|
583
583
|
totalCount: number;
|
|
584
584
|
hasMore: boolean;
|
|
585
585
|
appliedFilters: {
|
|
586
|
-
getBy: "due" | "completion";
|
|
587
586
|
since: string;
|
|
588
587
|
until: string;
|
|
588
|
+
getBy: "due" | "completion";
|
|
589
589
|
limit: number;
|
|
590
590
|
labels?: string[] | undefined;
|
|
591
591
|
labelsOperator?: "and" | "or" | undefined;
|
|
@@ -640,7 +640,7 @@ declare const tools: {
|
|
|
640
640
|
projects: import('zod').ZodArray<import('zod').ZodObject<{
|
|
641
641
|
id: import('zod').ZodString;
|
|
642
642
|
name: import('zod').ZodString;
|
|
643
|
-
color: import('zod').ZodEnum<{
|
|
643
|
+
color: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
644
644
|
berry_red: "berry_red";
|
|
645
645
|
red: "red";
|
|
646
646
|
orange: "orange";
|
|
@@ -661,7 +661,7 @@ declare const tools: {
|
|
|
661
661
|
charcoal: "charcoal";
|
|
662
662
|
gray: "gray";
|
|
663
663
|
taupe: "taupe";
|
|
664
|
-
}
|
|
664
|
+
}>>>;
|
|
665
665
|
isFavorite: import('zod').ZodBoolean;
|
|
666
666
|
isShared: import('zod').ZodBoolean;
|
|
667
667
|
parentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -743,7 +743,7 @@ declare const tools: {
|
|
|
743
743
|
projects: import('zod').ZodArray<import('zod').ZodObject<{
|
|
744
744
|
id: import('zod').ZodString;
|
|
745
745
|
name: import('zod').ZodString;
|
|
746
|
-
color: import('zod').ZodEnum<{
|
|
746
|
+
color: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
747
747
|
berry_red: "berry_red";
|
|
748
748
|
red: "red";
|
|
749
749
|
orange: "orange";
|
|
@@ -764,7 +764,7 @@ declare const tools: {
|
|
|
764
764
|
charcoal: "charcoal";
|
|
765
765
|
gray: "gray";
|
|
766
766
|
taupe: "taupe";
|
|
767
|
-
}
|
|
767
|
+
}>>>;
|
|
768
768
|
isFavorite: import('zod').ZodBoolean;
|
|
769
769
|
isShared: import('zod').ZodBoolean;
|
|
770
770
|
parentId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -827,7 +827,7 @@ declare const tools: {
|
|
|
827
827
|
projects: import('zod').ZodArray<import('zod').ZodObject<{
|
|
828
828
|
id: import('zod').ZodString;
|
|
829
829
|
name: import('zod').ZodString;
|
|
830
|
-
color: import('zod').ZodEnum<{
|
|
830
|
+
color: import('zod').ZodCatch<import('zod').ZodOptional<import('zod').ZodEnum<{
|
|
831
831
|
berry_red: "berry_red";
|
|
832
832
|
red: "red";
|
|
833
833
|
orange: "orange";
|
|
@@ -848,7 +848,7 @@ declare const tools: {
|
|
|
848
848
|
charcoal: "charcoal";
|
|
849
849
|
gray: "gray";
|
|
850
850
|
taupe: "taupe";
|
|
851
|
-
}
|
|
851
|
+
}>>>;
|
|
852
852
|
isFavorite: import('zod').ZodBoolean;
|
|
853
853
|
isShared: import('zod').ZodBoolean;
|
|
854
854
|
parentId: import('zod').ZodOptional<import('zod').ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as s, s as a, l as e, m as t, a as o, u as d, d as n, b as i, c as r, e as c, h as m, i as f, j as p, k, n as l, o as T, p as j, q as u, r as g, t as v, v as C, w as S, x as A, y as P } from "./mcp-server-
|
|
2
|
-
import { F as E, g as w } from "./mcp-server-
|
|
1
|
+
import { f as s, s as a, l as e, m as t, a as o, u as d, d as n, b as i, c as r, e as c, h as m, i as f, j as p, k, n as l, o as T, p as j, q as u, r as g, t as v, v as C, w as S, x as A, y as P } from "./mcp-server-BxHvudlC.js";
|
|
2
|
+
import { F as E, g as w } from "./mcp-server-BxHvudlC.js";
|
|
3
3
|
const h = {
|
|
4
4
|
// Task management tools
|
|
5
5
|
addTasks: P,
|
package/dist/main-http.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { StreamableHTTPServerTransport as i } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
3
3
|
import l from "dotenv";
|
|
4
4
|
import a from "express";
|
|
5
|
-
import { g as p } from "./mcp-server-
|
|
5
|
+
import { g as p } from "./mcp-server-BxHvudlC.js";
|
|
6
6
|
l.config({ quiet: !0 });
|
|
7
7
|
const s = Number.parseInt(process.env.PORT || "3000", 10);
|
|
8
8
|
function d() {
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { StdioServerTransport as s } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
3
|
import c from "dotenv";
|
|
4
|
-
import { g as i } from "./mcp-server-
|
|
4
|
+
import { g as i } from "./mcp-server-BxHvudlC.js";
|
|
5
5
|
function p() {
|
|
6
6
|
const e = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
|
|
7
7
|
if (!r)
|
|
@@ -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,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,yCAAyC,CAAA;AACtF,OAAO,KAAK,EAAE,oBAAoB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