Skip to content

v5.0.1 — Fix @mention Support in Task Comments

Choose a tag to compare

@PiotrKrzyzek PiotrKrzyzek released this 10 May 16:39
· 196 commits to main since this release

🐛 Bug Fix — clickup_create_task_comment @mentions

The Zod schema for the comment block array declared only text and attributes, so Zod's default-strip behavior silently dropped type and user fields before the request reached ClickUp's API. Every {type:"tag", user:{id}} block was reduced to plain text and rendered as literal @Name in the UI rather than as a clickable mention — and native ClickUp mention notifications never fired.

What's fixed

The schema now explicitly supports both ClickUp-documented mention shapes and uses .passthrough() for forward compatibility:

  • Canonical (recommended): {"type":"tag","user":{"id":<userId>}} — reliably triggers native ClickUp mention notifications.
  • UI fallback: {"type":"tag","text":"@Full Name"} — accepted but notification behavior may be less reliable.
  • Combined: {"type":"tag","text":"@Full Name","user":{"id":<userId>}} — most defensive form.
  • Emoticon: {"type":"emoticon","emoticon":{"code":"1f389"}}.

Other changes

  • processCommentBlocks and ensureCodeBlockSeparation no longer synthesize an empty attributes:{} on tag/emoticon blocks — those block types don't carry attributes per ClickUp's spec.
  • Validation tightening: comment.user.id and assignee parameters now enforce z.number().int().positive().
  • 6 new regression tests in clickup-comment-formatter.test.ts lock in the round-trip behavior.

Dependencies (via dependabot)

  • axios 1.15.0 → 1.16.0
  • hono 4.12.12 → 4.12.18
  • fast-uri 3.1.0 → 3.1.2
  • ip-address, express-rate-limit, uuid, jest-junit updated

Affected package

@chykalophia/clickup-mcp-server — 5.0.0 → 5.0.1

Full Changelog: v5.0.0...v5.0.1