Claude Code task queue: let Claude Code pull work from your task manager over MCP
How to add Done to Claude Code with one claude mcp add command, what Claude Code does with the queue, and why a task you haven't marked auto-OK still waits for your approval.

By Alejandro Rioja5 min read
To give Claude Code a task queue, add your task manager as a remote MCP server with one command: claude mcp add --transport http --scope user done https://trydone.app/mcp. Then run /mcp inside Claude Code and sign in. From there Claude Code can pull the next task from your queue, work it in your repository, log the run and propose completion. A task you haven't marked auto-OK waits for your approval before it counts as done.
How do I add Done to Claude Code?
Run the command above once in a terminal. --scope user makes Done available in every project; leave it off to add Done to the current project only. Then pick how to authenticate:
- Sign in with OAuth: start Claude Code, run /mcp, choose done and follow the sign-in in your browser. From a shell, claude mcp login done does the same. Approve access in Done and Claude Code stores the sign-in and refreshes it on its own.
- Use a token: generate an MCP token in Done under Settings → Agent access (it is shown once), then add the server with --header "Authorization: Bearer <your-mcp-token>". Don't do this with --scope project: that writes the token into .mcp.json, which usually gets committed.
What does Claude Code do with my queue?
next_task atomically picks and claims the highest-priority task that is ready. It skips tasks that are blocked, paused, waiting on your approval or held by another agent, so two sessions never take the same one. When nothing is workable it says why, with counts of what it skipped, so the agent knows whether to stop or go unblock something.
For real work it can then call start_run, which opens a run and returns the task's budget (tool calls and minutes, or none if uncapped). If the task has already spent its whole budget, start_run is refused. end_run closes the run with what it spent and receipts a reviewer can check, such as a commit SHA, a CI run URL or a test tally. Both leave a trace in the task's activity, which is what you read the next morning.
Can Claude Code close a task on its own?
Only if you marked that task auto-OK. An agent can't set that flag when it creates or edits a task, so whether a task may close without a human is your grant, not the agent's. On an auto-OK task, complete_task closes it. On every other task complete_task is refused, and Claude Code calls propose_completion instead, which posts its summary and parks the task at pending approval. You approve it to done or reject it back with feedback.
What happens if Claude Code stops halfway?
If it stops a task before finishing, release_task drops its claim so the task goes back in the queue. Pass the same agent id it claimed with: a claim held by a different agent can't be released. If a session simply dies, the claim is a lease, so a lapsed one can be picked up again. When the agent hits a decision it shouldn't make alone, ask_decision posts a question with its own recommendation, parks the task as needing your input and lets the agent move on to other work.
Can several Claude Code sessions share one queue?
Yes. Because next_task claims atomically, parallel sessions don't duplicate work. Give each session its own named token and their work shows up separately on your agent roster. Tokens are per account, never shared, and can be read-only or limited to one project, so a session working in one repository needn't see the rest of your board. Done doesn't launch Claude Code or run it on a schedule: whatever starts the session is what makes it check the queue.
Why does Claude Code say done needs authentication?
- Run /mcp, select done and sign in. To start over, choose Clear authentication there and sign in again.
- If the browser didn't open, copy the sign-in URL Claude Code prints and open it yourself.
- A token that used to work now returns 401: generating a new primary token revokes the old one. Create a new token, then run claude mcp remove done and add the server again.
Frequently asked questions
How do I add an MCP server to Claude Code?
Run claude mcp add --transport http --scope user <name> <url>. For Done the URL is https://trydone.app/mcp. Then run /mcp in Claude Code, choose the server and sign in, or pass a token with --header.
Can Claude Code mark my tasks done without asking me?
Only tasks you have marked auto-OK. For every other task Claude Code can do the work and propose it, and the task waits at pending approval until you approve it.
Can I run several Claude Code sessions against one task queue?
Yes. next_task claims a task atomically, so two sessions never pick up the same one. Give each its own named token to see their work separately.