@hauptsache.net/clickup-mcp 1.3.1 → 1.3.2

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.
@@ -435,7 +435,7 @@ function registerDocumentToolsWrite(server) {
435
435
  throw new Error(`Error creating page: ${response.status} ${response.statusText}`);
436
436
  }
437
437
  const data = await response.json();
438
- const newPage = data.page;
438
+ const newPage = data.page || data; // Handle both nested and flat response formats
439
439
  return {
440
440
  content: [{
441
441
  type: "text",
@@ -464,7 +464,7 @@ function registerDocumentToolsWrite(server) {
464
464
  throw new Error(`Error creating sub-page: ${response.status} ${response.statusText}`);
465
465
  }
466
466
  const data = await response.json();
467
- const newPage = data.page;
467
+ const newPage = data.page || data; // Handle both nested and flat response formats
468
468
  return {
469
469
  content: [{
470
470
  type: "text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hauptsache.net/clickup-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Search, create, and retrieve tasks, add comments, and track time through natural language commands.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",