togello-mcp-server 1.0.39 → 1.0.40
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.
|
|
@@ -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);
|
package/build/mcpServer.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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
|
},
|
package/package.json
CHANGED