togello-mcp-server 1.0.36 → 1.0.38
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 +2 -2
- package/build/mcpServer.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ For OpenAI Apps domain verification, set `TOGELLO_MCP_OPENAI_APPS_CHALLENGE_TOKE
|
|
|
61
61
|
|
|
62
62
|
## Tools
|
|
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
66
|
- `get-tasks-list`: Retrieves incomplete TODO tasks. Optional `categoryUUIDs` filters by category UUID.
|
|
67
67
|
- `get-calendar-date-memo`: Retrieves a calendar date memo for a `YYYY-MM-DD` date.
|
|
@@ -71,7 +71,7 @@ Read-only tools include MCP `readOnlyHint` annotations and return stable JSON in
|
|
|
71
71
|
- `get-activity-log-list`: Retrieves activity logs.
|
|
72
72
|
- `get-japan-current-time`: Returns the current time in Japan.
|
|
73
73
|
|
|
74
|
-
Write tools return JSON. Failed tool responses also return JSON and are marked with `isError: true`.
|
|
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
77
|
- `update-task`: Updates a TODO task.
|
package/build/mcpServer.js
CHANGED
|
@@ -27,6 +27,11 @@ const privateWriteToolAnnotations = {
|
|
|
27
27
|
openWorldHint: false,
|
|
28
28
|
destructiveHint: false,
|
|
29
29
|
};
|
|
30
|
+
const privateOverwriteToolAnnotations = {
|
|
31
|
+
readOnlyHint: false,
|
|
32
|
+
openWorldHint: false,
|
|
33
|
+
destructiveHint: true,
|
|
34
|
+
};
|
|
30
35
|
function withUpstreamToken(cb, resolveUpstreamToken, requireUpstreamToken = false) {
|
|
31
36
|
return async (args, extra) => {
|
|
32
37
|
const token = resolveUpstreamToken?.(extra.sessionId);
|
|
@@ -134,7 +139,7 @@ export function createMcpServer(options = {}) {
|
|
|
134
139
|
.optional()
|
|
135
140
|
.describe('Optional detail associated with the task. If omitted, the current value is kept.'),
|
|
136
141
|
},
|
|
137
|
-
annotations:
|
|
142
|
+
annotations: privateOverwriteToolAnnotations,
|
|
138
143
|
}, withUpstreamToken(updateTaskHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
|
|
139
144
|
server.registerTool('get-calendar-date-memo', {
|
|
140
145
|
description: 'Retrieves a calendar date memo for the specified date. Recognizes target date and memo content.',
|
|
@@ -151,7 +156,7 @@ export function createMcpServer(options = {}) {
|
|
|
151
156
|
.string()
|
|
152
157
|
.describe('Memo content for the date. Pass an empty or whitespace-only string to clear the memo.'),
|
|
153
158
|
},
|
|
154
|
-
annotations:
|
|
159
|
+
annotations: privateOverwriteToolAnnotations,
|
|
155
160
|
}, withUpstreamToken(updateCalendarDateMemoHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
|
|
156
161
|
server.registerTool('get-todo-category-list', {
|
|
157
162
|
description: 'Retrieves the list of categories from the TODO feature. Recognizes category name / category UUID',
|
|
@@ -190,7 +195,7 @@ export function createMcpServer(options = {}) {
|
|
|
190
195
|
.uuid()
|
|
191
196
|
.describe('You must specify a valid activityLogUUID obtained from get-activity-log-list. This tool requires an existing activity log.'),
|
|
192
197
|
},
|
|
193
|
-
annotations:
|
|
198
|
+
annotations: privateOverwriteToolAnnotations,
|
|
194
199
|
}, withUpstreamToken(completeActivityLogHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
|
|
195
200
|
server.registerTool('get-japan-current-time', {
|
|
196
201
|
description: 'Returns the current time in Japan (JST).',
|
package/package.json
CHANGED