@createtodo/mcp 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -231,8 +231,10 @@ var listTools = {
231
231
  listId: z3.string().describe("The ID of the list")
232
232
  }),
233
233
  handler: async ({ listId }) => {
234
- const result = await apiRequest(`/todo-lists/${listId}`);
235
- return JSON.stringify(result, null, 2);
234
+ const result = await apiRequest(
235
+ `/todo-lists/${listId}`
236
+ );
237
+ return JSON.stringify(result.todoList ?? result, null, 2);
236
238
  }
237
239
  },
238
240
  create_list: {
@@ -369,7 +371,7 @@ var todoTools = {
369
371
  }),
370
372
  handler: async ({ listId }) => {
371
373
  const result = await apiRequest(`/todo-lists/${listId}`);
372
- return JSON.stringify(result.todoList ?? result, null, 2);
374
+ return JSON.stringify(result.todoList?.items ?? [], null, 2);
373
375
  }
374
376
  },
375
377
  create_todo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@createtodo/mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "MCP server for managing createtodo tasks, lists, labels, and more",
5
5
  "type": "module",
6
6
  "license": "MIT",