@doist/todoist-ai 6.0.0 → 6.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/README.md +6 -0
- package/dist/index.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-helpers.d.ts +7 -1
- package/dist/mcp-helpers.d.ts.map +1 -1
- package/dist/mcp-server-BhXFK7dP.js +3220 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/todoist-tool.d.ts +6 -0
- package/dist/todoist-tool.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.resource.d.ts +28 -0
- package/dist/tools/find-tasks-by-date.resource.d.ts.map +1 -0
- package/dist/utils/widget-loader.d.ts +7 -0
- package/dist/utils/widget-loader.d.ts.map +1 -0
- package/package.json +11 -1
- package/scripts/inline-widget-builder.ts +87 -0
- package/scripts/inline-widgets-vite-plugin.ts +134 -0
- package/dist/mcp-server-BwerBJpX.js +0 -3161
package/README.md
CHANGED
|
@@ -154,6 +154,12 @@ See [docs/mcp-server.md](docs/mcp-server.md) for full instructions on setting up
|
|
|
154
154
|
|
|
155
155
|
See [docs/dev-setup.md](docs/dev-setup.md) for full instructions on setting up this repository locally for development and contributing.
|
|
156
156
|
|
|
157
|
+
### Widgets
|
|
158
|
+
|
|
159
|
+
This project includes support for **MCP Apps** – interactive UI widgets rendered inline in AI chat interfaces. Widgets provide rich visual representations of tool outputs (e.g., task lists) instead of plain text.
|
|
160
|
+
|
|
161
|
+
See [docs/widgets.md](docs/widgets.md) for the widget architecture, build pipeline, and development workflow.
|
|
162
|
+
|
|
157
163
|
### Quick Start
|
|
158
164
|
|
|
159
165
|
After cloning and setting up the repository:
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as s, s as a, m as e, a as t, u as o, d, b as n, c as i, e as r, h as c, i as m, j as f, k as p, l as k, n as l, o as j, p as u, q as T, r as g, t as v, v as C, w as P, x as S } from "./mcp-server-
|
|
2
|
-
import { g as y } from "./mcp-server-
|
|
1
|
+
import { f as s, s as a, m as e, a as t, u as o, d, b as n, c as i, e as r, h as c, i as m, j as f, k as p, l as k, n as l, o as j, p as u, q as T, r as g, t as v, v as C, w as P, x as S } from "./mcp-server-BhXFK7dP.js";
|
|
2
|
+
import { g as y } from "./mcp-server-BhXFK7dP.js";
|
|
3
3
|
const h = {
|
|
4
4
|
// Task management tools
|
|
5
5
|
addTasks: S,
|
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-BhXFK7dP.js";
|
|
5
5
|
function p() {
|
|
6
6
|
const o = process.env.TODOIST_BASE_URL, r = process.env.TODOIST_API_KEY;
|
|
7
7
|
if (!r)
|
package/dist/mcp-helpers.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { TodoistApi } from '@doist/todoist-api-typescript';
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { TextResourceContents } from '@modelcontextprotocol/sdk/types.js';
|
|
3
4
|
import { z } from 'zod';
|
|
4
5
|
import { TodoistTool } from './todoist-tool.js';
|
|
6
|
+
type McpTextResource = {
|
|
7
|
+
name: string;
|
|
8
|
+
} & TextResourceContents;
|
|
9
|
+
declare function addMetaToTool<Params extends z.ZodRawShape, Output extends z.ZodRawShape = z.ZodRawShape>(tool: TodoistTool<Params, Output>, meta: TodoistTool<Params, Output>['_meta']): TodoistTool<Params, Output>;
|
|
5
10
|
/**
|
|
6
11
|
* Register a Todoist tool in an MCP server.
|
|
7
12
|
* @param tool - The tool to register.
|
|
@@ -9,5 +14,6 @@ import { TodoistTool } from './todoist-tool.js';
|
|
|
9
14
|
* @param client - The Todoist API client to use to execute the tool.
|
|
10
15
|
*/
|
|
11
16
|
declare function registerTool<Params extends z.ZodRawShape, Output extends z.ZodRawShape = z.ZodRawShape>(tool: TodoistTool<Params, Output>, server: McpServer, client: TodoistApi): void;
|
|
12
|
-
|
|
17
|
+
declare function registerResource(server: McpServer, resource: McpTextResource): void;
|
|
18
|
+
export { addMetaToTool, registerResource, registerTool };
|
|
13
19
|
//# 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,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAgB,MAAM,yCAAyC,CAAA;AACtF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAA;
|
|
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,EAAE,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAA;AAGpE,KAAK,eAAe,GAAG;IACnB,IAAI,EAAE,MAAM,CAAA;CACf,GAAG,oBAAoB,CAAA;AAiFxB,iBAAS,aAAa,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,EAAE,MAAM,SAAS,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,EAC7F,IAAI,EAAE,WAAW,CAAC,MAAM,EAAE,MAA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