clickup-mcp CLAUDE.md

clickup-mcp CLAUDE.md is an instructions file for Claude Code from Npab19/clickup-mcp. It costs 2,722 tokens per session, scanned A, original, MIT.

A set of instructions for developing a multi-user ClickUp MCP server. MCP is a standard way for an agent to call external tools, and ClickUp is a task and project management service.

In plain words
What is it for?
Use it when modifying the ClickUp MCP server, especially its per-user access, caching, rate limiting, audit logging, identity handling, and tool additions.
Why use it?
It records design rules that prevent one user's cached data, rate limits, or audit records from being mixed with another user's. It also explains the server's authentication and policy structure.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/npab19/clickup-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/Npab19/clickup-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clickup-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/npab19/clickup-mcp/claude-md.svg)](https://agentmods.dev/instructions/npab19/clickup-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/npab19/clickup-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/npab19/clickup-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,722 This file is loaded in full into every session.
When invoked 2,722 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02722 $0.02722
Opus 5 $0.01361 $0.01361
Sonnet 5 $0.00544 $0.00544
Haiku 4.5 $0.00272 $0.00272

Measured 5d ago against content hash 9254ef1c8061, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clickup-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — ClickUp MCP Server

Notes for working on this codebase.

What this is

A multi-user MCP server for ClickUp. Pattern B (Python + FastMCP + OAuth delegation) from ../General.Claude.md, extended with the per-identity governance layer from ../CW Manage 3/src/middleware/.

Reference implementations, and what each contributes:

  • ../Whoop/ — OAuth delegation mechanics, client shape, transform.py, Docker layout. Single-user; do not copy its token handling.
  • ../CW Manage 3/src/middleware/ — genuinely multi-user. policy-gate.ts, audit-capture.ts, rate-limit.ts, identity-resolver.ts are the originals for this server's policy.py, audit.py, rate_limit.py, context.py. Note that General.Claude.md files it under "Pattern A: TypeScript + API Key", which badly undersells it.

The one rule

Never introduce process-global state keyed on anything but grant id.

The whole design turns on context.current_client() resolving the calling user's token per request. Three things must stay namespaced by grant:

  • ClickUpClient._caches — an un-namespaced cache serves user A's tasks to user B
  • rate_limit._buckets
  • everything written to audit_log

tests/test_isolation.py is the gate. Run it before and after any change to store.py, client.py, context.py, or oauth_provider.py.

ClickUp API facts that trip people up

  • The v3 spec is ~20% of the API. Chat, Docs, audit logs, and a few strays. Tasks/Lists/Spaces/Folders/time tracking/comments/custom fields are v2 only. Both specs are vendored: ClickUp_PUBLIC_API_V3.yaml (35 ops) and clickup-api-v2-reference.json (137 ops).
  • No PKCE, no scopes on ClickUp's side. Do not add them back to oauth_provider.authorize().
  • No refresh token, tokens never expire. There is deliberately no refresh path in client.py. A 401 with an OAUTH_* ECODE means revoked → prompt re-auth. A 401 with any other code is a permissions error and must NOT be reported as a dead token (_looks_like_bad_token draws that line).
  • Rate limit is per token = per user. 100/min on most plans.
  • The v2 spec has wrong typestime_spent/time_estimate are declared string|null but come back as integers. Don't codegen models from it.
  • "Team" means Workspace in the v2 API. Tools expose it as workspace_id; paths use team_id. _common.client_and_workspace() does the mapping and fills in the default when the user has exactly one Workspace.
  • User Groups are also called "Teams" in ClickUp's UI. Different thing. See tools/groups.py.
  • Folderless Lists still carry a folder object — a placeholder {"name": "hidden", "hidden": true}, not an omission. Read it naively and you report a folder named "hidden"; that was 54 of the first 100 live tasks. Use transform._folder_name(), which checks the flag.
  • A task's space has only an id, no name — hence the space_id key.
  • Task payloads are ~11 KB each. One 100-task page measured 1.12 MB raw versus 41 KB summarized. raw=True on a list query is a context-window hazard; say so when a tool offers it.

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 224 lines · 2,722 tokens per session scan A 9254ef1c8061

Subscribe to this mod's changes

clickup-mcp CLAUDE.md is an instructions file published in the GitHub repository Npab19/clickup-mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 2,722 tokens to every session, about $0.0136 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.