togello-mcp-server 1.0.39 → 1.0.41

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
@@ -63,7 +63,7 @@ For OpenAI Apps domain verification, set `TOGELLO_MCP_OPENAI_APPS_CHALLENGE_TOKE
63
63
 
64
64
  All tools set MCP `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotations explicitly. Read-only tools return stable JSON in both `structuredContent` and text content.
65
65
 
66
- - `get-tasks-list`: Retrieves TODO tasks. By default it retrieves incomplete tasks. Optional `categoryUUIDs` filters by category UUID. Use `completionStatus: "COMPLETED"` with `completedStartDate` and `completedEndDate` in RFC3339 format to retrieve tasks completed during a period.
66
+ - `get-tasks-list`: Retrieves TODO tasks. By default it retrieves incomplete tasks. Optional `categoryUUIDs` filters by category UUID. Use `completionStatus: "COMPLETED"` with both `completedStartDate` and `completedEndDate` in RFC3339 format to retrieve tasks completed during a period.
67
67
  - `get-calendar-date-memo`: Retrieves a calendar date memo for a `YYYY-MM-DD` date.
68
68
  - `get-todo-category-list`: Retrieves TODO categories.
69
69
  - `get-today-calendar`: Retrieves linked Google Calendar events and scheduled tasks.
@@ -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) => ({
@@ -2,6 +2,15 @@ import { httpClient } from '../../client.js';
2
2
  import { errorToolResponse, jsonToolResponse } from './toolResponse.js';
3
3
  export const getTodoListHandler = async ({ categoryUUIDs, completionStatus, completedStartDate, completedEndDate, }) => {
4
4
  try {
5
+ const hasCompletedStartDate = completedStartDate !== undefined;
6
+ const hasCompletedEndDate = completedEndDate !== undefined;
7
+ if (hasCompletedStartDate !== hasCompletedEndDate) {
8
+ return errorToolResponse('completedStartDate and completedEndDate must be specified together');
9
+ }
10
+ if ((hasCompletedStartDate || hasCompletedEndDate) &&
11
+ completionStatus !== 'COMPLETED') {
12
+ return errorToolResponse('completionStatus must be COMPLETED when completed date filters are specified');
13
+ }
5
14
  const searchParams = new URLSearchParams();
6
15
  for (const categoryUUID of categoryUUIDs ?? []) {
7
16
  searchParams.append('categoryUUID', categoryUUID);
@@ -17,6 +17,7 @@ import { runWithUpstreamToken } from './upstreamTokenContext.js';
17
17
  const calendarDateMemoDateSchema = z
18
18
  .string()
19
19
  .regex(/^\d{4}-\d{2}-\d{2}$/, 'Invalid date format, expected YYYY-MM-DD');
20
+ const rfc3339DateTimeSchema = z.string().datetime({ offset: true });
20
21
  const readOnlyToolAnnotations = {
21
22
  readOnlyHint: true,
22
23
  openWorldHint: false,
@@ -65,12 +66,10 @@ export function createMcpServer(options = {}) {
65
66
  .enum(['INCOMPLETE', 'COMPLETED'])
66
67
  .optional()
67
68
  .describe('Filters tasks by completion state. Omit this to retrieve incomplete tasks by default. Use COMPLETED for completed tasks.'),
68
- completedStartDate: z
69
- .string()
69
+ completedStartDate: rfc3339DateTimeSchema
70
70
  .optional()
71
71
  .describe('Inclusive completed-at range start in RFC3339 format, for example yesterday at 00:00:00+09:00.'),
72
- completedEndDate: z
73
- .string()
72
+ completedEndDate: rfc3339DateTimeSchema
74
73
  .optional()
75
74
  .describe('Exclusive completed-at range end in RFC3339 format, for example today at 00:00:00+09:00 when retrieving yesterday.'),
76
75
  },
@@ -187,7 +186,15 @@ export function createMcpServer(options = {}) {
187
186
  }, withUpstreamToken(getActivityItemListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
188
187
  server.registerTool('get-activity-log-list', {
189
188
  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.',
190
- inputSchema: {},
189
+ inputSchema: {
190
+ limit: z
191
+ .number()
192
+ .int()
193
+ .positive()
194
+ .max(300)
195
+ .optional()
196
+ .describe('Optional maximum number of activity logs to retrieve. Defaults to 300.'),
197
+ },
191
198
  annotations: readOnlyToolAnnotations,
192
199
  }, withUpstreamToken(getActivityLogListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
193
200
  server.registerTool('start-activity-log', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.39",
4
+ "version": "1.0.41",
5
5
  "description": "MCP server for Togello tasks, calendar memos, calendar events, and activity logs.",
6
6
  "main": "build/index.js",
7
7
  "scripts": {