togello-mcp-server 1.0.8 → 1.0.9

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/build/client.js CHANGED
@@ -43,13 +43,14 @@ export const httpClient = {
43
43
  throw new Error("environment variable TOGELLO_API_TOKEN is not set");
44
44
  }
45
45
  const url = `${API_BASE_URL}${path}`;
46
+ const bodyString = body !== null ? JSON.stringify(body) : null;
46
47
  const response = await fetch(url, {
47
48
  method: "PUT",
48
49
  headers: {
49
50
  Authorization: `Bearer ${token}`,
50
51
  "Content-Type": "application/json",
51
52
  },
52
- body: JSON.stringify(body),
53
+ body: bodyString,
53
54
  });
54
55
  if (!response.ok) {
55
56
  throw new Error(`response status: ${response.status}`);
@@ -3,7 +3,7 @@ export const completeActivityLogHandler = async ({ activityLogUUID }) => {
3
3
  try {
4
4
  await httpClient.putJson({
5
5
  path: `/v2/integration/activity-logs/${activityLogUUID}/work-complete`,
6
- body: {},
6
+ body: null,
7
7
  });
8
8
  return {
9
9
  content: [
@@ -26,16 +26,6 @@ export const getTodoListHandler = async ({}) => {
26
26
  todo.categoryLabel,
27
27
  ])
28
28
  .join(","),
29
- // text: tasks
30
- // .map((todo) =>
31
- // JSON.stringify({
32
- // label: todo.label,
33
- // scheduledStartDate: todo.scheduledStartDate,
34
- // scheduledEndDate: todo.scheduledEndDate,
35
- // priorityNumber: todo.priorityNumber,
36
- // })
37
- // )
38
- // .join(","),
39
29
  },
40
30
  ],
41
31
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "togello-mcp-server",
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "build": "tsc && chmod 755 build/index.js",