togello-mcp-server 1.0.40 → 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.
@@ -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) => ({
@@ -186,7 +186,15 @@ export function createMcpServer(options = {}) {
186
186
  }, withUpstreamToken(getActivityItemListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
187
187
  server.registerTool('get-activity-log-list', {
188
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.',
189
- 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
+ },
190
198
  annotations: readOnlyToolAnnotations,
191
199
  }, withUpstreamToken(getActivityLogListHandler, options.resolveUpstreamToken, options.requireUpstreamToken));
192
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.40",
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": {