Skip to content

v5.0.0 — Code Quality, Security & Reliability Overhaul

Choose a tag to compare

@PiotrKrzyzek PiotrKrzyzek released this 12 Apr 19:45
· 183 commits to dev since this release

⚠️ Breaking Changes

  • Doc CRUD tools now require workspace_id (fixes #4 — these endpoints were returning 404 without it).
    Affected: clickup_get_doc, clickup_update_doc, clickup_delete_doc, clickup_create_doc_page, clickup_update_doc_page, clickup_delete_doc_page, clickup_get_doc_sharing, clickup_update_doc_sharing.
  • ClickUpClient HTTP methods changed from <T = any> to <T = unknown>. Callers must specify a type parameter or accept unknown.

🔒 Security

  • Sanitized 56 console.error calls in client files to prevent API token leakage via axios error objects
  • Added 30s request timeout to base ClickUpClient (prevents indefinite hangs)
  • Singleton client (was creating duplicate axios instances per tool file)
  • New getApiToken() helper replaces unsafe process.env.CLICKUP_API_TOKEN! non-null assertions
  • New mcpError() / resourceError() helpers — standardized 200+ catch blocks
  • minimatch ReDoS vulnerability fixed
  • 0 npm audit vulnerabilities, 0 semgrep findings

🐛 Bug Fixes

  • #4 — Doc CRUD endpoints missing /workspaces/{workspaceId} in URL path
  • getGoalStatus progress calculation was always ~100% (was dividing raw timestamps)
  • getSubtasks silently returned [] on API errors
  • updateWebhook and updateAttachmentMetadata were dropping falsy-but-valid values
  • validateGoalDate seconds vs milliseconds mismatch
  • bulkSetCustomFieldValues partial failures reported as success
  • create_time_entry missing duration/stop validation
  • create_timer_entry no longer creates a phantom 1ms entry
  • delete_doc no longer fails when user lacks read permission
  • hasMarkdown regex false positives on plain text with hyphens/parens
  • Bulk task description destructuring was a no-op

⚡ Performance

  • Bulk operations (bulkCreateTasks, bulkUpdateTasks, bulkSetCustomFieldValues) parallelized with concurrency 5 — roughly 5–10× faster for 50-item batches
  • EnhancedDocsClient and EnhancedCustomFieldsClient now use the shared ClickUpClient axios instance (was bypassing timeouts and interceptors)

🛡️ Type Safety & Validation

  • New Zod response schemas validate envelope shape of 20+ client methods
  • validateResponse() utility throws descriptive errors on API contract changes
  • ~150 catch blocks migrated from catch (error: any) to catch (error: unknown) + mcpError()

🧹 Refactoring

  • Deleted ~3,500 lines of dead code (helper-tools, webhook-tools old, test-task-update, context-aware-suggestions, 4 empty stub files)
  • Split task-tools.ts (1,106 lines) into 4 focused modules: workspace-tools, list-folder-tools, bulk-task-tools, task-tools
  • Consolidated entry points — index-enhanced.ts is canonical, index.ts is a thin re-export
  • Added clickup_ prefix to 4 doc tool names

📊 Audit Results

Check Result
TypeScript 0 errors
Semgrep 0 findings
ESLint 0 errors, 0 warnings
npm audit 0 vulnerabilities

Migration

If you use any of the affected doc tools, add workspace_id to your tool calls:

- clickup_update_doc(doc_id="...", name="New Name")
+ clickup_update_doc(workspace_id="...", doc_id="...", name="New Name")

See RELEASE_NOTES.md for the full changelog.