Route each operation#
First: which backends were selected?#
The user selects the ClickUp mode and the GitHub backend at setup, independently of each other. Do not infer the selection from the tools that happen to be listed.
- If the user, the project instructions or the setup report state the selection, use it. With a shell and the plugin source,
python3 scripts/setup.py status --client CLIENTprints the recorded selection and changes nothing. - If nothing states it, assume the default, hosted ClickUp (official OAuth MCP,
https://mcp.clickup.com/mcp) withghfor GitHub, and confirm it with the user before the first write. - The hosted GitHub backend (an approved hosted GitHub connection instead of
gh) applies only when the user selected it. - remote-only permits hosted connections only: never
gh, never a local ClickUp tool. - local-helper applies only when the user selected it and
get_bound_tasksucceeds for a bound root task. Aclickup_workserver that merely starts is not enough. The local-helper steps in this skill apply only in this mode.
A selected backend that is missing, banned or unauthenticated means STOP and report; never switch backends on your own. One gh sign-in serves all authorized repositories: verify each project's exact repository and create no per-repository token. Never use cup, cu-work or a bridge for hosted ClickUp. Before any hosted write, follow the guarded protocol in the sibling skill clickup-github, file references/official-mcp-issue-first.md. Those are agent checks, outside helper receipts, locks and completion gates.
Hosted ClickUp (default and remote-only)#
- Read the binding and inventory only the tools actually present in this session.
- Use the connected official ClickUp MCP for ClickUp operations.
- Use the selected GitHub backend for GitHub operations:
gh, or the approved hosted GitHub tools. In remote-only mode, hosted tools only. - Never choose
cup,rest-mcpor an unboundclickup_workmerely because it appears in the client's tool list. Those are separate authentication and receipt domains. - Before any hosted write, load the guarded protocol in the sibling skill
clickup-github, filereferences/official-mcp-issue-first.md. - Before each direct host call, recheck the Workspace, List and ancestry. Preserve operation markers and receipts yourself: the helper's journal does not capture host calls.
- Use paginated host MCP reads for complete comment histories and threaded replies.
- If a hosted write fails, do not fall back to the CLI.
Local-helper mode#
Prefer the clickup_work MCP tools; each cu-work … line is the shell equivalent. If cu-work is not on PATH, use the managed launcher CLICKUP_SKILLS_HOME/bin/cu-work (cu-work.cmd on Windows; default folder ~/.local/share/clickup-skills/bin) when it exists, otherwise the MCP tools only. Do not use an npx proxy as the normal way to run the helper.
The routing table below applies to a local-helper installation with a working cup token. The backends are cup, rest-mcp (Joel Thornton), context-mcp (hauptsacheNet), official (ClickUp), github-cli and github-mcp.
| Need | First candidate | Reason |
|---|---|---|
| Exact task, subtask, status, comment, custom field, dependency | cup |
Small JSON commands and file-based text input |
| Task plus comments/images/context | context-mcp |
May consolidate several reads; discover the exposed mode |
| Broad REST API operation without cup | rest-mcp |
Free local MCP with individual operation tools |
| Broad workspace search / official-specific functionality | official |
Official search and service coverage; inspect limits |
| Branch, PR, checks, issue | gh or GitHub MCP |
Use the available tool with complete fields and least extra work |
- Ask for a route with
route_operation(absoluteproject_dir, operation, available backend names) or the shell equivalent:
bash
cu-work --project-dir /absolute/worktree route task.context --available cup,context-mcp,official
- Treat the route as advice. It neither executes nor probes availability, per-project overrides can reorder it, and its defaults are not latency or token benchmarks. In a hosted session
route_operationmay lack a project binding. cu-workand its MCP execute scoped writes directly throughcupor the configuredrest-mcpruntime. Hostcontext-mcp, official ClickUp MCP and GitHub MCP are called by the agent, not proxied by the helper.- For
cup tasksorcup search, use--allfor team-wide work and scope to the bound List. - The pinned
cup commentsand REST MCPlist_commentsreturn one page, so the helper stops at 25 comments. For longer local histories, explicitly selectrouting.comment_reader=clickup-apiwith private environment credentials for GET-only cursor reads. Writes stay on the selected upstream runtime, with no automatic fallback. - Use
cu-work reconcileonly for local-helper receipts, and only after establishing what applied.
Rules for every selection#
- For any MCP, inspect the selected tool's current input schema and returned fields. Tool names in a route are hints, not guarantees.
- A read-minimal context MCP cannot write just because its full version has create tools.
- Do not register every server to perform one task.
- Prefer native IDs, filtered and paginated reads, and compact responses. Retrieve comments and images only when needed.
- A limited search that returns no match does not prove absence.
- Use a complete-read backend for reconciliation.
- Link GitHub before any subtask creation, whatever the backend. Routing a create call directly does not exempt it from
clickup-github's association rules. - If the selected backend is unavailable, stop and report it.
- The user may explicitly choose another allowed backend before a new operation, after its authentication and scope are verified. That is not automatic fallback.
- After a timeout, malformed response, rate-limit error during a write, or other uncertain outcome, inspect remote state first. Never replay the write through another backend.
- Stop when authorization, scope or required evidence cannot be established.
- Keep tokens in each teammate's own account.
- Free MCP software still uses services with API and plan limits.
- Do not install paid or proprietary servers, and do not claim one backend is faster without evidence.
Report#
State the operation, the backend chosen and why, and any backend that was unavailable or stopped the operation.