MCP Server
The Task Manager speaks the Model Context Protocol, so AI assistants like Claude Code, Claude Desktop, Cursor and VS Code can work with your tasks directly: ask questions about them, create and edit them, start or cancel runs, steer running agents, and review the results — all from a chat.
- Endpoint:
http://localhost:3000/api/mcp - Transport: Streamable HTTP, stateless, JSON responses.
- Auth: OAuth 2.1 sign-in (authorization code + PKCE, dynamic client registration), or
Authorization: Bearer tm_mcp_…with a token from Settings → MCP.
Setup
Option 1: Sign in with OAuth (recommended)
Clients that support MCP's OAuth sign-in — Claude Code, Claude Desktop, Codex, VS Code, Cursor and others — need nothing but the server URL. The first time they connect, the server answers 401 and points them at its OAuth metadata; the client registers itself, opens your browser on a consent page here, and you choose Approve with Read only or Read & write access. No token to copy, and the client refreshes its access on its own.
Claude Code (Terminal — then run /mcp in Claude Code, pick task-manager and choose Authenticate)
claude mcp add --transport http task-manager http://localhost:3000/api/mcp
Claude Desktop (Settings → Connectors → Add custom connector (the server must be reachable over public HTTPS))
Name: Task Manager
Remote MCP server URL: http://localhost:3000/api/mcp
Claude Desktop (local server) (claude_desktop_config.json — for servers on localhost/your LAN; mcp-remote opens the sign-in page)
{
"mcpServers": {
"task-manager": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:3000/api/mcp"
]
}
}
}
Codex (Terminal — codex mcp add offers to sign in; otherwise run the login command)
codex mcp add task-manager --url http://localhost:3000/api/mcp
codex mcp login task-manager
VS Code (.vscode/mcp.json — VS Code prompts you to sign in when the server starts)
{
"servers": {
"task-manager": {
"type": "http",
"url": "http://localhost:3000/api/mcp"
}
}
}
Cursor (~/.cursor/mcp.json — Cursor shows a Login button for the server)
{
"mcpServers": {
"task-manager": {
"url": "http://localhost:3000/api/mcp"
}
}
}
- Claude Code: after
claude mcp add, run/mcp, selecttask-managerand choose Authenticate. The browser opens on this app's consent page. - Claude Desktop custom connectors are connected from Anthropic's cloud, so the Task Manager must be reachable over public HTTPS. For a server on localhost or your LAN, use the
mcp-remoteconfig instead — it runs the sign-in on your machine. - Codex:
codex mcp addwith a URL offers to sign in straight away;codex mcp login task-manager(re)does it any time. Older Codex versions needexperimental_use_rmcp_client = truein~/.codex/config.tomlfor HTTP servers. - Each approved client shows up in Settings → MCP with an OAuth badge. Change its access or disconnect it there, like any token. Access tokens last an hour and are refreshed automatically; a client that hasn't connected for 30 days has to sign in again.
- The consent page has no login of its own — like the rest of the app, anyone who can open it can approve. Keep the app on a trusted network or behind your own authentication proxy.
| OAuth endpoint | Path |
|---|---|
| Protected resource metadata | /.well-known/oauth-protected-resource/api/mcp (RFC 9728) |
| Authorization server metadata | /.well-known/oauth-authorization-server (RFC 8414) |
| Client registration | POST /api/oauth/register (RFC 7591) |
| Authorization | /oauth/authorize (code flow, PKCE S256 required) |
| Token | POST /api/oauth/token (authorization_code, refresh_token) |
| Revocation | POST /api/oauth/revoke (RFC 7009) |
| Scopes | mcp:read, mcp:write — the consent page has the final say |
Option 2: Use an access token
For clients without OAuth support, scripts, or when you'd rather manage credentials yourself.
Create an access token
Go to Settings → MCP, name the token after the client that will use it (e.g. "Claude Code – laptop") and choose its access:
| Access | What it allows |
|---|---|
| Read only | Only the read tools are visible: search and inspect tasks, logs, output files, repos, teams, stats and these docs. Perfect for asking questions — it can't change anything. |
| Read & write | Adds the tools that create, edit, start, cancel, message and review tasks. |
The token is shown once — copy it straight away. You can change a token's access or revoke it at any time; the change applies to the client's next request. MCP tokens and REST API keys are separate: one never works in place of the other.
Connect your client
Replace tm_mcp_YOUR_TOKEN with your token. The URL below already points at this deployment. (Creating a token in Settings shows these snippets with the token filled in.)
Claude Code (Terminal)
claude mcp add --transport http task-manager http://localhost:3000/api/mcp \
--header "Authorization: Bearer tm_mcp_YOUR_TOKEN"
Claude Desktop (claude_desktop_config.json (Settings → Developer → Edit Config))
{
"mcpServers": {
"task-manager": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:3000/api/mcp",
"--header",
"Authorization:${MCP_AUTH}"
],
"env": {
"MCP_AUTH": "Bearer tm_mcp_YOUR_TOKEN"
}
}
}
}
Cursor (~/.cursor/mcp.json (or .cursor/mcp.json in a project))
{
"mcpServers": {
"task-manager": {
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer tm_mcp_YOUR_TOKEN"
}
}
}
}
VS Code (.vscode/mcp.json — prompts for the token so it isn't committed)
{
"servers": {
"task-manager": {
"type": "http",
"url": "http://localhost:3000/api/mcp",
"headers": {
"Authorization": "Bearer ${input:taskManagerToken}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "taskManagerToken",
"description": "AI Task Manager MCP token",
"password": true
}
]
}
Codex (Terminal — Codex reads the token from an env var, so it never lands in config.toml)
export TASK_MANAGER_MCP_TOKEN=tm_mcp_YOUR_TOKEN
codex mcp add task-manager --url http://localhost:3000/api/mcp --bearer-token-env-var TASK_MANAGER_MCP_TOKEN
cURL (test) (Terminal — lists the tools your token can use)
curl -s http://localhost:3000/api/mcp \
-H "Authorization: Bearer tm_mcp_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
- Claude Code: add
--scope userto make the server available in every project, or--scope projectto share it via.mcp.json(don't commit the token — use an env var such as${TASK_MANAGER_TOKEN}in the header instead). - Claude Desktop: uses the
mcp-remotebridge (needs Node.js). Restart Claude Desktop after editing the config. - Your client must be able to reach this server. If the Task Manager runs on a private network or localhost, run the client on the same machine/network (or behind your VPN).
Check it works
In Claude Code run /mcp — the task-manager server should show as connected with its tools. Then just ask:
> What tasks are waiting for my review?
The token's "Last used" time in Settings → MCP updates on every request, which is a quick way to confirm the client is really talking to the server.
Examples
You talk to your assistant in plain language; it picks the tools. Some things to try:
Ask questions about tasks
Read-only tokens are enough. The assistant searches with list_tasks, drills in with get_task / get_task_logs, and totals things up with get_task_stats.
- “What's currently running, and what's waiting for my review?”
- “Why did the task about the Stripe webhook fail? Show me the error.”
- “Which tasks touched the acme/web repo this week, and what did each one change?”
- “How much did tasks cost in the last 30 days, broken down by status?”
- “Summarise the PR and test plan for task cmw123… in three bullet points.”
- “Find every task labelled "security" that hasn't been reviewed yet.”
- “Read the report that task cmw456… produced and give me the key findings.”
Create tasks
Needs a Read & write token. Repo defaults from the Repositories page (branch, PR vs. branch, priority, labels…) apply to anything you don't specify.
- “Create a task on https://github.com/acme/web.git to add rate limiting to the /login endpoint, and open a PR when it's done.”
- “Create a high-priority task to upgrade Next.js in acme/web, but leave it in the backlog — I'll start it later.”
- “Break "migrate the billing service from REST to gRPC" into 4–5 tasks that run one after another, and show me the plan before creating them.”
- “Schedule a task for tomorrow 9am UTC to regenerate the API client in acme/sdk.”
- “Look at the TODO comments in this file and create one task per TODO against our repo.”
Edit and steer tasks
update_task changes fields of a queued or finished task; send_task_message steers one that's running (or re-runs a finished one with new instructions).
- “Bump the priority of the dark-mode task to urgent and add the label "ux".”
- “Rewrite the description of task cmw789… so it also covers the mobile layout.”
- “Tell the running migration task to skip the legacy tables.”
- “Move every pending task labelled "experiment" to the backlog.”
- “Cancel the task that's refactoring the auth module — I've changed my mind.”
- “Re-run all tasks that failed yesterday with a rate-limit error.”
Review tasks
The assistant reads the task's description, logs, PR summary, test plan and CI state, then you decide. 'Approve' moves it to Done; 'request changes' re-runs the agent on the same branch with your feedback.
- “Review everything in In Review, oldest first, and tell me which look safe to approve.”
- “Review task cmw123… — did it fully do what was asked? Check the logs for skipped tests.”
- “Approve task cmw123… with the note "merged manually".”
- “Request changes on task cmw123…: add unit tests for the new validator and handle empty input.”
Review work done elsewhere
create_task with reviewOnly: true makes a review-only ticket: a reminder to review work that was already done somewhere else, such as a commit pushed by hand or from another Claude session. It goes straight to In Review, never runs an agent and spends no tokens. The description says what to review and why (e.g. the commit message); reviewMetadata holds the repo (a saved repo or any Git URL), branch, commit SHAs (7–40 hex chars, stored as given) and an optional PR link, all optional and editable later with update_task. list_tasks finds it by commit SHA or PR URL. review_task approve moves it to Done; request_changes is refused because there's no agent run to continue, so create a normal task on the referenced branch instead.
- “I just pushed 65948886 to develop on git@github.com:acme/web.git — create an In Review ticket so I remember to review it, using the commit message as the description.”
- “Add commit a1b2c3d4 and PR https://github.com/acme/web/pull/42 to review ticket cmw123….”
- “Which task is about commit 65948886?”
- “Approve the review ticket for the executive summary change.”
Ask about the Task Manager itself
Any token works. The assistant reads these docs with get_docs, so it can answer setup questions and write integration code against this deployment.
- “How do I point my LangChain app at the Task Manager's OpenAI-compatible endpoint?”
- “Write a Python script that creates a task through the REST API and waits for it to finish.”
- “Which of my providers can do tool calling through the OpenAI-compatible API?”
Built-in prompts
The server also ships ready-made workflows. In Claude Code they appear as slash commands, e.g. /mcp__task-manager__review_task cmw123…; other clients list them in their prompt/attachment menu.
| Prompt | Access | Description | Arguments |
|---|---|---|---|
review_task | read | Inspect a finished task (description, logs, PR, test plan) and recommend approve or request changes. | taskId |
board_summary | read | What's running, queued, waiting for review and recently failed. | |
triage_failures | read | Find recently failed tasks, explain why each failed and suggest a fix. | since (optional) |
plan_tasks | write | Turn a larger goal into a set of well-scoped tasks and create them after you approve the plan. | goal, repo (optional) |
Tools reference
10 read tools available to every token, plus 7 write tools for Read & write tokens. Read-only tokens don't see write tools at all. Deleting tasks and changing settings are deliberately not exposed.
Read tools
list_tasks — List / search tasks (read)
List and search tasks, newest first by default. Combine filters freely: status, board column, free-text query (matches title, description and context, plus commit SHAs and PR URLs — review metadata and agent PRs), label, repository, review status, review-only tickets, date range. Returns compact summaries plus the total match count — use get_task for full details of one task.
| Argument | Type | Required | Description |
|---|---|---|---|
query | string | Case-insensitive text to find in title, description or context, or a commit SHA / PR URL (review metadata, an agent's commit or PR). | |
status | ("pending" | "running" | "paused" | "throttled" | "awaiting_approval" | "completed" | "no_changes" | "failed" | "killed" | "timedout")[] | Only tasks with one of these statuses. | |
boardColumn | "todo" | "in_progress" | "in_review" | "done" | Only tasks shown in this Kanban column (todo, in_progress, in_review, done). | |
label | string | Only tasks carrying this label. | |
repo | string | Only tasks touching a repo whose URL or alias contains this text. | |
reviewStatus | "in_review" | "done" | Filter by review status. | |
parentTaskId | string | Only subtasks of this task. | |
reviewOnly | boolean | true = only review-only tickets (never run, created In Review); false = only agent tasks. | |
recurringTemplates | boolean | true = list recurring task templates (the schedules themselves) instead of tasks. Default false. | |
recurringTemplateId | string | Only the runs spawned by this recurring template. | |
enabled | boolean | false = only backlog (disabled) tasks; true = only enabled tasks. | |
createdAfter | string | ISO-8601 date/time. | |
createdBefore | string | ISO-8601 date/time. | |
sort | "newest" | "oldest" | "recently_updated" | "queue" | Default newest. 'queue' = the worker's pick-up order (priority, then position). | |
limit | integer | Default 25. | |
offset | integer | For paging. Default 0. |
get_task — Get task details (read)
Everything about one task: full description and context, status and board column, repos and branches, PR(s) and CI/merge state, PR summary and test plan written by the agent, notes, cost and tokens, schedule, dependencies, parent/subtasks, team, provider — plus its most recent log lines. Use this to review a task or answer detailed questions about what it did.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
logLines | integer | How many of the most recent log lines to include (default 30, 0 for none). Use get_task_logs for more. |
get_task_logs — Read task logs (read)
Read a task's run log — agent output, tool calls, system events, errors, and user messages. Defaults to the latest 100 lines. Filter by level or text to find why a task failed or what it changed.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
limit | integer | Default 100. | |
from | "end" | "start" | Read the latest lines (end, default) or the first lines (start). | |
levels | string[] | Only these levels, e.g. ["error"] or ["system", "error"]. Common levels: info, system, error, user, tool. | |
query | string | Only lines containing this text. | |
maxCharsPerLine | integer | Truncate long lines (default 2000). |
get_task_stats — Task statistics (read)
Board-wide numbers for questions like "how many tasks failed this week?" or "what did we spend on tasks for repo X?": counts by status and board column, tokens and cost totals, and the most recent failures. Optionally limited to a date range (by creation time) and/or a repository.
| Argument | Type | Required | Description |
|---|---|---|---|
since | string | ISO-8601; only tasks created at/after this. | |
until | string | ISO-8601; only tasks created at/before this. | |
repo | string | Only tasks touching a repo whose URL or alias contains this text. | |
label | string | Only tasks carrying this label. |
list_task_files — List a task's output files (read)
List files in a task's workspace. File-output tasks write their results under 'output' (the default path); repo tasks have one directory per repo alias.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
path | string | Directory relative to the workspace root. Default 'output'. | |
recursive | boolean | Walk subdirectories too (default false). |
read_task_file — Read a task's output file (read)
Read a text file from a task's workspace (path relative to the workspace root, as returned by list_task_files).
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
path | string | yes | File path relative to the workspace root, e.g. 'output/report.md'. |
maxChars | integer | Truncate after this many characters (default 100000). |
list_repositories — List saved repositories (read)
Repositories saved on the Repositories page, with their per-repo task defaults (branch, after-completion mode, priority, labels, …). Use the URL from here when creating a task.
list_teams — List agent teams (read)
Agent teams (ordered pipelines like Planner → Coder → Tester) that a task can be assigned to via teamId.
list_providers — List AI providers (read)
The AI provider connections tasks can run on (Claude subscriptions, API keys, Codex, …), for the 'provider' argument of create_task / update_task. Shows which are enabled, the default, whether one is rate-limited right now, and the models each offers. Disabled connections are listed but can't be chosen.
get_docs — Read the Task Manager docs (read)
The Task Manager's own documentation, as markdown with links and examples for this deployment: the REST API, the OpenAI/Anthropic-compatible API (use the Task Manager as a drop-in LLM endpoint) and this MCP server. Call it without a topic to list the topics, then with one to read it. Use it to answer setup questions or to write code that integrates with the Task Manager.
| Argument | Type | Required | Description |
|---|---|---|---|
topic | "api" | "llm-gateway" | "mcp" | Which page to read. Omit to list the topics with a one-line summary each. |
Write tools
create_task — Create a task (write)
Queue a new task for an AI agent to run against one or more Git repositories (or produce files). The worker picks it up within seconds unless autoStart is false or it's scheduled. Repos saved on the Repositories page supply defaults (branch, after-completion mode, priority, …) for anything you leave out — call list_repositories to see them. Write the description as instructions to the agent. reviewOnly: true instead creates a review-only ticket — a reminder to review work done elsewhere (a hand-pushed commit, another session): it goes straight to In Review, never runs an agent and spends no tokens. Its description says what to review and why (e.g. the commit message); attach the repo/branch/commits/PR in reviewMetadata. Run options (repos, schedule, team, dependency, autoStart, budgets…) don't apply to it.
| Argument | Type | Required | Description |
|---|---|---|---|
description | string | yes | What the agent should do — or, for reviewOnly, what to review and why. Required. |
title | string | Short title (defaults to the first 80 chars of the description). | |
context | string | Extra background/instructions for the agent. | |
repos | item[] | Repositories to work in. Each item is a URL string or { url, alias?, branch? }. Required unless outputType is 'file', 'design' or 'result'. | |
outputType | "repository" | "file" | "design" | "result" | Default 'repository'. | |
afterCompletion | "branch" | "target" | "main" | "pr" | What happens to the work: 'branch' (push a new branch), 'pr' (open a pull request), 'main' (push to the default branch), 'target' (push to targetBranch). Omit to use the repo's default. | |
targetBranch | string | Branch to push to when afterCompletion is 'target'. | |
priority | "low" | "normal" | "high" | "urgent" | ||
effort | "low" | "medium" | "high" | "xhigh" | "max" | Thinking effort for the agent. | |
model | string | Model id override, e.g. claude-opus-5-5. | |
labels | string[] | ||
autoStart | boolean | false = create it in the backlog without running (start later with start_task). Default true. | |
scheduledFor | string | ISO-8601 time to run it at instead of now. | |
dependsOnTaskId | string | Don't run until this task has finished. | |
teamId | string | Run through an agent team (see list_teams) instead of a single agent. Omit to use the repo's default team (defaultTeamId in list_repositories), if it has one. | |
allowSubtasks | boolean | Let the agent queue follow-up subtasks of its own. | |
tokenBudget | integer | ||
costBudget | number | Max spend in USD. | |
provider | string | AI provider connection id from list_providers, "smart" for the Smart Provider Picker, or "" for the default. Omit to use the repo's default. | |
cronExpression | string | Make it a recurring task: a cron schedule (minute hour day-of-month month day-of-week, server time zone), e.g. "0 9 * * 1-5". Each time it fires the worker spawns a new run. autoStart false creates the schedule paused. | |
maxRuns | integer | With cronExpression: stop after this many runs. Default unlimited. | |
reviewOnly | boolean | true = a review-only ticket: created straight into In Review, never run by an agent. Approve it with review_task when reviewed. | |
reviewMetadata | object | Review metadata for a reviewOnly task — what to look at. Every field is optional. repo: a saved repo's URL (see list_repositories) or any Git URL; branch; commits: one or more commit SHAs (7–40 hex chars, short or full, stored as given); prUrl: an http(s) link to the PR. On update_task only the keys you pass change; null, "" or [] clears one. | |
notes | string | Private notes on the task (not shown to an agent). |
update_task — Edit task(s) (write)
Edit a task — or several at once with 'ids' (e.g. every subtask from list_tasks parentTaskId) — the same fields the UI's edit form can change. Only the fields you pass change. A bulk edit is all-or-nothing: if any task rejects the edit, none are changed. While a task is running only title, priority, labels and notes can change (the rest was read when the run started) — use send_task_message to steer it. Editing a finished task does not re-run it; use start_task afterwards (or review_task with request_changes to iterate on its branch). On a review-only task only title, description, context, priority, labels, notes and reviewMetadata (its repo, branch, commits and PR link) can change.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | Task id. Pass this or 'ids'. | |
ids | string[] | Apply the same edit to each of these tasks. | |
title | string | ||
description | string | ||
context | string | Replaces the context. Pass an empty string to clear it. | |
priority | "low" | "normal" | "high" | "urgent" | ||
effort | "low" | "medium" | "high" | "xhigh" | "max" | Empty string = provider default. | |
model | string | Empty string = provider default. | |
labels | string[] | Replaces all labels. | |
addLabels | string[] | ||
removeLabels | string[] | ||
notes | string | Replaces the task's private notes (not shown to the agent). | |
appendNote | string | Appends a line to the notes instead of replacing them. | |
enabled | boolean | false moves the task to the backlog (it won't be picked up); true re-enables it. | |
scheduledFor | string | ISO-8601 time to run at; empty string clears the schedule. | |
afterCompletion | "branch" | "target" | "main" | "pr" | What happens to the work: 'branch' (push a new branch), 'pr' (open a pull request), 'main' (push to the default branch), 'target' (push to targetBranch). | |
targetBranch | string | Existing branch to push the work to. Passing it on its own switches afterCompletion to 'target'. | |
repos | item[] | Replaces the task's whole repo list. Each item is a URL string or { url, alias?, branch? }; a repo without a branch uses its saved default. | |
repoBranches | object | Change the base (clone) branch of repos already on the task, keyed by repo alias or URL, e.g. { "api": "develop" }. "" = the repo's default branch. | |
outputType | "repository" | "file" | "design" | "result" | ||
dependsOnTaskId | string | Don't run until this task has finished. Empty string removes the dependency. | |
teamId | string | Run through an agent team (see list_teams). Empty string = single agent. | |
allowSubtasks | boolean | Let the agent queue follow-up subtasks of its own. | |
tokenBudget | integer | null | Max tokens; 0 or null removes the budget. | |
costBudget | number | null | Max spend in USD; 0 or null removes the budget. | |
provider | string | AI provider connection id from list_providers, "smart" for the Smart Provider Picker, or "" for the default provider. | |
cronExpression | string | Recurring templates only: new cron schedule, counted from now. | |
maxRuns | integer | null | Recurring templates only: cap on runs; 0 or null = unlimited. | |
resetRunCount | boolean | Recurring templates only: true restarts the run count at 0 (e.g. after it hit maxRuns). | |
reviewMetadata | object | Review metadata for a reviewOnly task — what to look at. Every field is optional. repo: a saved repo's URL (see list_repositories) or any Git URL; branch; commits: one or more commit SHAs (7–40 hex chars, short or full, stored as given); prUrl: an http(s) link to the PR. On update_task only the keys you pass change; null, "" or [] clears one. | |
toolAccess | object | Per-task external tool overrides, merged onto the current ones: tool id → true (grant), false (deny), null (follow the Settings default). Tools: github-cli (GitHub CLI). |
start_task — Start / re-run a task (write)
Queue a task to run now: enables it (if it's in the backlog), clears any schedule or retry backoff and sets it pending. Works for backlog tasks and for re-running failed/killed/finished ones. Fails if it's already running, and for review-only tasks, which never run.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
cancel_task — Cancel a task (write)
Stop a pending, running, paused or throttled task (same as the Kill button). Work already pushed stays pushed. The task can be re-run later with start_task.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
reason | string | Recorded in the task log. |
approve_team_stage — Approve a team stage (write)
Decide on a team task that is awaiting_approval — its pipeline stopped after a member marked "Require approval" (e.g. a Planner) and is waiting for a human before the next member runs. Read the stage's output first with get_task (teamProgress) or get_task_logs. decision "approve" continues with the next member (feedback = optional notes passed to it); "revise" re-runs the same member with feedback (required). Only do this when the user asked you to.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
decision | "approve" | "revise" | yes | approve = continue; revise = redo the stage. |
feedback | string | Notes for the next member (approve) or the changes wanted (revise). |
send_task_message — Message a task's agent (write)
Send instructions to a task's agent, like the chat box on the task page. Running → delivered to the live session. Paused/throttled → added to its context for when it resumes. Finished (completed, failed, killed…) → the message becomes a follow-up run of the task, which is re-queued.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
message | string | yes | What to tell the agent. |
review_task — Review a task (approve / request changes) (write)
Record a review decision on a finished task. 'approve' marks it reviewed and moves it to Done on the board (it does not merge any PR). 'request_changes' re-runs the agent with your feedback as new instructions, continuing on the task's existing branch/PR so the fix lands as new commits. 'reopen' moves a Done task back to In Review. Inspect the task with get_task first. On a review-only task (reviewOnly: true) approve and reopen work the same way, but request_changes is refused — there's no agent run to continue; create a normal task that works on the referenced branch instead.
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | Task id. |
decision | "approve" | "request_changes" | "reopen" | yes | |
feedback | string | Required for request_changes (the agent's instructions). For approve/reopen it's appended to the task notes. |
Security
- Only a SHA-256 hash of each token is stored; the token itself is shown once, at creation.
- Use one token per client/device so you can revoke one without disconnecting the rest.
- Prefer Read only unless you want the assistant to change tasks. Write tools that cancel or re-run work are marked destructive, so well-behaved clients ask before calling them.
- Anything an agent run can do, a write token can trigger — tasks run with the Git, provider and tool access configured in Settings. Treat write tokens like a password.
- Serve the app over HTTPS when clients connect across a network, since the token travels in a header.
- OAuth clients get short-lived (1 hour) access tokens plus a rotating refresh token; only hashes of both are stored. Approving is the only way an OAuth client gets access — registering one grants nothing on its own.
Troubleshooting
| Problem | Fix |
|---|---|
| 401 / “Invalid or revoked MCP token” | Check the token was copied in full and hasn't been revoked. The header must be exactly Authorization: Bearer tm_mcp_… |
| OAuth sign-in doesn't start | Make sure no Authorization header is configured for the server — a client with a header never tries OAuth. Also check the client can fetch /.well-known/oauth-protected-resource/api/mcp; a reverse proxy must forward /.well-known/* and the Host/X-Forwarded-Proto headers. |
| Consent page says “Unknown client_id” | The client registered against a different server (or the database was reset). Remove the server from the client and add it again so it re-registers. |
| OAuth client keeps asking to sign in again | It was disconnected in Settings → MCP, or hadn't connected for 30 days. Approve a new sign-in. |
| “That's a REST API key” | tm_live_… keys are for the REST API. Create an MCP token under Settings → MCP. |
| Write tools missing / “token is read-only” | Switch the token to Read & write in Settings → MCP, then reconnect the client so it re-fetches the tool list. |
| Client can't connect at all | Run the cURL snippet from the same machine as the client. If that fails, the client can't reach the server (firewall, VPN, localhost). |
| Tasks are created but never run | The worker process must be running alongside the app (npm run worker). Created tasks wait as pending until it picks them up. |
| Claude Desktop shows the server as failed | Make sure Node.js/npx is installed and on PATH, then fully restart Claude Desktop. Its MCP logs are under Settings → Developer. |