togello-mcp-server 1.0.40 → 1.0.42

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 CHANGED
@@ -74,7 +74,7 @@ All tools set MCP `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotat
74
74
  Write tools return JSON. Failed tool responses also return JSON and are marked with `isError: true`. Tools that can overwrite existing private Togello data set `destructiveHint: true`; create/start tools set `destructiveHint: false`.
75
75
 
76
76
  - `create-task`: Creates a TODO task.
77
- - `update-task`: Updates a TODO task.
77
+ - `update-task`: Updates a TODO task, including category assignment or removal.
78
78
  - `update-calendar-date-memo`: Updates or clears a calendar date memo.
79
79
  - `start-activity-log`: Starts an activity log.
80
80
  - `complete-activity-log`: Completes an activity log.
@@ -1,9 +1,10 @@
1
1
  import { httpClient } from '../../client.js';
2
2
  import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
3
- export const getActivityLogListHandler = async () => {
3
+ export const getActivityLogListHandler = async ({ limit, }) => {
4
4
  try {
5
+ const qs = limit !== undefined ? `?limit=${limit}` : '';
5
6
  const activityLogList = await httpClient.fetchURL({
6
- path: '/v2/integration/activity-logs',
7
+ path: `/v2/integration/activity-logs${qs}`,
7
8
  });
8
9
  return jsonToolResponse({
9
10
  activityLogs: activityLogList.map((log) => ({
@@ -1,10 +1,11 @@
1
1
  import { httpClient } from '../../client.js';
2
2
  import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
3
- export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, status, scheduledStartDate, scheduledEndDate, deadlineDateTime, url, detail, }) => {
3
+ export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, status, categoryUUID, scheduledStartDate, scheduledEndDate, deadlineDateTime, url, detail, }) => {
4
4
  try {
5
5
  if (taskName === undefined &&
6
6
  isCompleted === undefined &&
7
7
  status === undefined &&
8
+ categoryUUID === undefined &&
8
9
  scheduledStartDate === undefined &&
9
10
  scheduledEndDate === undefined &&
10
11
  deadlineDateTime === undefined &&
@@ -21,6 +22,7 @@ export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, statu
21
22
  label: taskName,
22
23
  isCompleted,
23
24
  status,
25
+ categoryUUID,
24
26
  scheduledStartDate,
25
27
  scheduledEndDate,
26
28
  deadlineDateTime,
@@ -33,6 +35,7 @@ export const updateTaskHandler = async ({ todoUUID, taskName, isCompleted, statu
33
35
  taskName,
34
36
  isCompleted,
35
37
  status,
38
+ categoryUUID,
36
39
  deadlineDateTime,
37
40
  updated: true,
38
41
  });
@@ -129,6 +129,12 @@ export function createMcpServer(options = {}) {
129
129
  .enum(['TODO', 'PENDING', 'DOING', 'DONE'])
130
130
  .optional()
131
131
  .describe('Optional. Updates the todo status directly. Use this to switch tasks between TODO, PENDING, DOING, and DONE.'),
132
+ categoryUUID: z
133
+ .string()
134
+ .uuid()
135
+ .nullable()
136
+ .optional()
137
+ .describe('Optional category UUID associated with the task. Use get-todo-category-list to obtain a valid category UUID. Set to null to remove the current category. If omitted, the current value is kept.'),
132
138
  scheduledStartDate: z
133
139
  .string()
134
140
  .optional()
@@ -186,7 +192,15 @@ export function createMcpServer(options = {}) {
186
192
  }, withUpstreamToken(getActivityItemListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
187
193
  server.registerTool('get-activity-log-list', {
188
194
  description: 'Retrieves the list of activity logs from the integration feature. Since it is a record of what the person has done, if all the end dates are filled in, this person is not doing anything now. If there is one with a null end date, there should be at most one, and if there is one, it means that the person is doing it now. Recognizes activity log UUID / start date and time / end date and time / item name.',
189
- inputSchema: {},
195
+ inputSchema: {
196
+ limit: z
197
+ .number()
198
+ .int()
199
+ .positive()
200
+ .max(300)
201
+ .optional()
202
+ .describe('Optional maximum number of activity logs to retrieve. Defaults to 300.'),
203
+ },
190
204
  annotations: readOnlyToolAnnotations,
191
205
  }, withUpstreamToken(getActivityLogListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
192
206
  server.registerTool('start-activity-log', {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.40",
4
+ "version": "1.0.42",
5
5
  "description": "MCP server for Togello tasks, calendar memos, calendar events, and activity logs.",
6
6
  "main": "build/index.js",
7
7
  "scripts": {
8
8
  "build": "tsc && chmod 755 build/index.js",
9
9
  "codex:preclone": "bash scripts/codex-cloud/preclone.sh",
10
10
  "start": "node build/index.js",
11
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "test": "npm run build && node --test"
12
12
  },
13
13
  "keywords": [
14
14
  "mcp",