togello-mcp-server 1.0.30 → 1.0.31

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/build/mcpServer.js +12 -0
  2. package/package.json +1 -1
@@ -19,6 +19,13 @@ const calendarDateMemoDateSchema = z
19
19
  .regex(/^\d{4}-\d{2}-\d{2}$/, 'Invalid date format, expected YYYY-MM-DD');
20
20
  const readOnlyToolAnnotations = {
21
21
  readOnlyHint: true,
22
+ openWorldHint: false,
23
+ destructiveHint: false,
24
+ };
25
+ const privateWriteToolAnnotations = {
26
+ readOnlyHint: false,
27
+ openWorldHint: false,
28
+ destructiveHint: false,
22
29
  };
23
30
  function withUpstreamToken(cb, resolveUpstreamToken, requireUpstreamToken = false) {
24
31
  return async (args, extra) => {
@@ -77,6 +84,7 @@ export function createMcpServer(options = {}) {
77
84
  .optional()
78
85
  .describe('Optional detail associated with the task.'),
79
86
  },
87
+ annotations: privateWriteToolAnnotations,
80
88
  }, withUpstreamToken(createTaskHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
81
89
  server.registerTool('update-task', {
82
90
  description: 'Updates a task in the TODO feature.',
@@ -110,6 +118,7 @@ export function createMcpServer(options = {}) {
110
118
  .optional()
111
119
  .describe('Optional detail associated with the task. If omitted, the current value is kept.'),
112
120
  },
121
+ annotations: privateWriteToolAnnotations,
113
122
  }, withUpstreamToken(updateTaskHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
114
123
  server.registerTool('get-calendar-date-memo', {
115
124
  description: 'Retrieves a calendar date memo for the specified date. Recognizes target date and memo content.',
@@ -126,6 +135,7 @@ export function createMcpServer(options = {}) {
126
135
  .string()
127
136
  .describe('Memo content for the date. Pass an empty or whitespace-only string to clear the memo.'),
128
137
  },
138
+ annotations: privateWriteToolAnnotations,
129
139
  }, withUpstreamToken(updateCalendarDateMemoHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
130
140
  server.registerTool('get-todo-category-list', {
131
141
  description: 'Retrieves the list of categories from the TODO feature. Recognizes category name / category UUID',
@@ -154,6 +164,7 @@ export function createMcpServer(options = {}) {
154
164
  .string()
155
165
  .describe('You must specify a valid itemName obtained from get-activity-item-list. This tool requires a pre-existing activity item.'),
156
166
  },
167
+ annotations: privateWriteToolAnnotations,
157
168
  }, withUpstreamToken(startActivityLogHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
158
169
  server.registerTool('complete-activity-log', {
159
170
  description: 'Completes an activity log.',
@@ -163,6 +174,7 @@ export function createMcpServer(options = {}) {
163
174
  .uuid()
164
175
  .describe('You must specify a valid activityLogUUID obtained from get-activity-log-list. This tool requires an existing activity log.'),
165
176
  },
177
+ annotations: privateWriteToolAnnotations,
166
178
  }, withUpstreamToken(completeActivityLogHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
167
179
  server.registerTool('get-japan-current-time', {
168
180
  description: 'Returns the current time in Japan (JST).',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "description": "MCP server for Togello tasks, calendar memos, calendar events, and activity logs.",
6
6
  "main": "build/index.js",
7
7
  "scripts": {