Repository navigation
v5.0.0 — Code Quality, Security & Reliability Overhaul
⚠️ 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. ClickUpClientHTTP methods changed from<T = any>to<T = unknown>. Callers must specify a type parameter or acceptunknown.
🔒 Security
- Sanitized 56
console.errorcalls 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 unsafeprocess.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 getGoalStatusprogress calculation was always ~100% (was dividing raw timestamps)getSubtaskssilently returned[]on API errorsupdateWebhookandupdateAttachmentMetadatawere dropping falsy-but-valid valuesvalidateGoalDateseconds vs milliseconds mismatchbulkSetCustomFieldValuespartial failures reported as successcreate_time_entrymissing duration/stop validationcreate_timer_entryno longer creates a phantom 1ms entrydelete_docno longer fails when user lacks read permissionhasMarkdownregex 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 EnhancedDocsClientandEnhancedCustomFieldsClientnow use the sharedClickUpClientaxios 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)tocatch (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.tsis canonical,index.tsis 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.