MCP tools

Introduction

These tools are listed on a connector only when Track issues, memories and handoffs was ticked when it was approved. See Work to turn it on. Every tool acts as the person who approved the connector, so it sees exactly the projects they can see.

Most tools take a project the same way: pass project (its key) or repository (the output of git remote get-url origin), or neither when there is only one project. See Repositories for how a project is found.

Session start and end

Tool What it does
get_work_context Call at session start and after compaction. Returns the last handoff, issues this person holds, answers to their questions, the top ready issues, the project's memories (shortened), the agent's current session, and a cursor for wait_for_work.
start_session Start an agent session for the task, with its purpose and, optionally, the issue_id it is for. Every call the agent makes on any source is then grouped under it. If the connector holds the claim on that issue, the claim moves into the session.
end_session End the session. Claims it still holds lapse at once, so the work is ready for others; they are listed in claims_lapsed.
write_handoff Leave a summary, next_steps and open_questions for the next session, with the issues touched. release_claims gives back every issue held in the project. The handoff is linked to the agent's current session.

Projects

Tool What it does
create_project Create a project with a key, a name, and optionally a description and the repository remote. The key cannot change later.

Issues

Tool What it does
list_issues Short rows for one view: ready (default), mine, in_progress, waiting, open, stale (claims that lapsed), closed, all. Filters by type, priority, labels (all of), labels_any, parent and query. Returns up to 50 rows.
show_issue One issue in full: text fields, links, dependencies both ways, children's progress, questions, latest comments, and the session holding its claim.
create_issues 1 to 25 issues in one call. Items can name each other with ref and point at those names from parent, blocked_by and discovered_from. With an idempotency_key, a retry of the same call returns the issues the first call made (replayed: true) instead of creating them again.
update_issue Change text fields, type, priority, labels, parent or metadata (merged, null removes a key), or status open, blocked, or deferred with defer_until. append_notes adds a dated line. add_links and remove_links manage links.
claim_issue Take an issue by id, or the top ready issue matching filters. Returns the full issue. With session_id, the claim also belongs to that session.
release_issue Give a claim back, with a note for whoever picks it up.
close_issue Close with a reason, or set duplicate_of or superseded_by. links adds the pull request or commits that did the work. Returns the issues that just became ready and whether the parent epic is finished.
link_issues Add or remove a dependency of type blocks (default), discovered-from or related. Cycles are refused.
comment_on_issue A durable note on the issue.
ask_human Ask you a question on an issue. The issue waits until it is answered. If the question is still open after three minutes, you get an email. Returns a cursor for wait_for_work.
wait_for_work What changed since a cursor: answers, comments, claims taken over, issues closed, issues that became ready. Waits up to 20 seconds (wait_seconds) for the first change. scope mine (default) covers issues the connector created, claimed, asked about or otherwise touched; project covers everything. Never includes the connector's own changes. Only a few calls wait at once, and one per connector; otherwise it answers straight away with busy: true.

Memories

Tool What it does
remember Store a fact under a key, up to 2,000 characters. The same key replaces it; forget deletes it. Without a key, one is made from the content.
recall Read memories in full: one by key, those matching a query, or every key with a preview.

Board

Tool What it does
show_work_board Shows you the project's board: questions for you, ready work, who holds what, what is blocked, what just closed. Assistants that support MCP Apps render it in the chat with buttons to answer, change priority, comment, close, and release a lapsed claim. Others get the same data as JSON.

The board uses two more tools, work_board_data and work_board_act, to refresh itself and carry out your clicks. Agents are told never to call them.

Claims and sessions

A claim belongs to the connector that made it. When the agent passes session_id to claim_issue (or starts a session with issue_id for an issue it holds), the claim also belongs to that session. While the claim is live:

  • Only that connector can release it, close it, or change its status. The same person working in another assistant takes it over with claim_issue first. The takeover is recorded on the issue.
  • An agent that passes session_id to release_issue, close_issue or update_issue cannot end a claim another session of the same connector holds. Without session_id, the connector's sessions are not told apart.
  • Any activity from the connector keeps it alive: work tools, source tools, and calls made straight to a source with a session key.

It lapses after 30 minutes without that activity, or at once when the session it belongs to is ended with end_session or revoked. A lapsed claim is ready for anyone. People in the dashboard can release any claim.

Example

A session in a repository with an existing project:

get_work_context  { "repository": "[email protected]:acme/api.git" }
claim_issue       { "repository": "[email protected]:acme/api.git" }
comment_on_issue  { "id": "API-12", "body": "Reproduced on main." }
create_issues     { "project": "API", "issues": [
                    { "title": "Orders page runs 40 queries", "type": "bug",
                      "discovered_from": "API-12" } ] }
close_issue       { "id": "API-12", "reason": "Fixed in PR #123",
                    "links": [ { "url": "https://github.com/acme/api/pull/123" } ] }
write_handoff     { "project": "API", "summary": "Fixed API-12.",
                    "next_steps": "Start on API-13 (the N+1 found today)." }

Limits

  • 25 issues per create_issues call and 50 rows per list_issues call.
  • idempotency_key values are kept for seven days, per person and project.
  • wait_for_work waits at most 20 seconds per call and returns up to 50 changes.
  • Metadata up to 8 KB per issue, and up to 20 links.
  • Memories up to 2,000 characters each.
  • A claim lapses after 30 minutes without activity from the connector.