Working with Plane
This page is for an agent on one of your machines, and for the person who sets it up. An agent works with a connected Plane project through Arugula’s MCP tools. A person connects the project, and decides what waits for approval, on Plane in Arugula.
The grant
Section titled “The grant”tracker_write needs the trackers.write grant for that machine over the
project. The project’s owner gives it:
arugula grants add laptop trackers.write --project acmeor with a switch under Agents on your machines in the platform page’s
settings. It never goes past the owner’s own role in the project. Without
it, tracker_write answers that the machine’s owner hasn’t given its
agents trackers.write. Putting an item on a board with board_write
needs the boards.write grant. Reading needs no grant: forge_read runs
as your person, and any member of the project, in any role, may read its
Plane items and fields.
Which project
Section titled “Which project”forge_read and tracker_write work in one Arugula project: the one this
clone’s GitHub repo is linked to, else your person’s personal project. An
agent working anywhere else, outside a clone or in a repo that isn’t
linked, lands in the personal project, where the Plane items aren’t:
items answers that nothing matches and tracker_fields that the Plane
project isn’t connected. So pass "project" in each call, as the examples
here do.
capabilities says where to find it. Under control.trackers.projects,
each project you can reach has its id (prj_…) and its Plane connections,
each with an id (tc_…), its identifier, such as ARUGU, and its
write_policy (see what waits for approval):
{ "id": "prj_…", "name": "Acme", "connections": [ { "id": "tc_…", "identifier": "ARUGU", "write_policy": { "create": "approve", "comment": "allow", "edit": "allow", "state": "approve", "fields": "allow" } } ]}Finding items
Section titled “Finding items”forge_read reads the mirror of the Plane project, and IDENT-N names an
item (ARUGU-12).
List and search with kind items. provider: "plane" keeps Plane’s items,
tracker one connection by its identifier, state is open or closed
(by state group), and q is words in the title, or IDENT-N to find that
item first:
{ "kind": "items", "project": "prj_…", "provider": "plane", "tracker": "ARUGU", "state": "open", "q": "login", "limit": 20 }Read one with kind issue:
{ "kind": "issue", "project": "prj_…", "item": "ARUGU-12" }It answers the title, state and link, and the item’s type, labels and
modules by name (items answers them too). Modules are read on each
sync, every five minutes, so one changed in Plane shows within that; one
you set with tracker_write shows at once. A Plane item’s body and
comments aren’t mirrored: open the link, or ask the person, when you need
them.
Real names: tracker_fields
Section titled “Real names: tracker_fields”Before you create or edit, ask what the Plane project has. A state, module, type or label that isn’t there is refused, so read the real ones:
{ "kind": "tracker_fields", "project": "prj_…", "tracker": "ARUGU" }It lists the states (name, group, and which one a new item starts in), the
modules, the types (none if the project doesn’t use them) and the labels.
tracker isn’t needed when the project has one connection; connection
takes the tc_… id instead.
The names in the examples below (Todo, Auth, Task, bug) are only
examples. Your project’s are the ones tracker_fields lists.
Writing: tracker_write
Section titled “Writing: tracker_write”Kinds are create, comment, close, reopen and edit, and each
takes "project" like the reads; the shorter examples below leave it out.
Names are in any case, or an id. parent is an item as IDENT-N. Only
title is required: state defaults to the one a new item starts in, and
type can be left out, as it must be when the project has no types.
Assignees aren’t supported.
Create an item in a module, with a state, a type and labels:
{ "kind": "create", "project": "prj_…", "tracker": "ARUGU", "title": "Login redirect loops", "body": "Signing in from /settings sends the browser back to /login.", "state": "Todo", "module": "Auth", "type": "Task", "labels": ["bug"], "parent": "ARUGU-7"}state may also be a state group (backlog, unstarted, started,
completed, cancelled): the first state of that group. The title is one
line, at most 255 characters. With more than one connection in the project,
name one with tracker (its identifier) or connection (tc_…).
Edit one. labels adds, labels_remove takes off; what you leave out
stays:
{ "kind": "edit", "item": "ARUGU-12", "state": "In Progress", "module": "Auth", "labels": ["p1"], "labels_remove": ["triage"] }Comment, close and reopen:
{ "kind": "comment", "item": "ARUGU-12", "text": "Reproduced on main; the redirect drops ?next=." }{ "kind": "close", "item": "ARUGU-12", "as": "completed" }{ "kind": "reopen", "item": "ARUGU-12" }close takes completed or cancelled. reopen puts the item in the
project’s default state. An item is named by IDENT-N or its fi_… id
(forge_read items lists them).
What waits for approval
Section titled “What waits for approval”The connection decides, per kind, whether a write goes at once or waits for a person: creates, comments, edits, state changes (close, reopen, or an edit naming a state) and field changes (an edit naming a module, parent, type or labels). A create is only a create, whatever fields it carries. An edit is each kind it names, and waits if any one of them needs approval.
To know before you write, read the connection’s write_policy in
capabilities (which project): each of create,
comment, edit, state and fields is allow (it goes at once) or
approve (it waits). Tell your person up front when what you’re about to
do will wait for them.
The answer says which happened. A write that went at once says what was done and which kind allowed it:
commented on ARUGU-1 in Plane: comments are allowedA write that waits says so, with its id and the kind that needs approval:
waiting for a person to approve it (tw_…): state changes need approvalNothing has reached Plane yet, and you can’t approve it yourself: the card is in the project’s Triage for an owner or editor of the project to approve, edit or drop. Don’t send it again; say so, and read the item later.
What is sent may end with a “via Arugula” line, as the connection says. Don’t add your own.
Putting an item on a board
Section titled “Putting an item on a board”A board row is one piece of work, named by its item. Add a Plane item by
IDENT-N, up to 50 in one call:
{ "kind": "add", "board": "brd_…", "items": ["ARUGU-12", "ARUGU-13"], "group": "Wave 1" }The answer says, for each, whether it became a row, was attached, or was
there already. You can’t set a lane: it follows the item’s Plane state
(see how items show on boards). To move
a row, change the item’s state with tracker_write edit.
An epic in Plane already has a board that follows it (see epics become
boards). When you work an epic, use that
board, and don’t make another. board_read lists a project’s boards, and
an epic’s board has a source naming the epic ("key": "ARUGU-10"). Its
children are its rows already. To add a child, set its parent in Plane with
tracker_write, and the row follows.
For other work that’s more than one item, make a board for it first, with a goal
(that makes it an epic). board_write answers with its id (brd_…):
{ "kind": "create_board", "project": "prj_…", "title": "Login fixes", "goal": "Signing in works from every page." }When the goal is met, close the board with a note saying what a person can
now do. done_note is required:
{ "kind": "close_board", "board": "brd_…", "done_note": "Signing in from any page lands back where you were." }board_read with the board’s id shows its lanes and rows, so you can check
what you added.
When to use Plane’s own API
Section titled “When to use Plane’s own API”tracker_write does what’s on this page and no more. For anything else,
such as cycles, pages, assignees or changes to many items at once, use
Plane’s own API or its web app. Arugula’s key never reaches an agent: it’s
sealed in control, and no tool returns it. Ask the person for a key of your
own if the task needs one, and don’t ask for the connection’s.
Next steps
Section titled “Next steps”- Plane in Arugula: connecting, the webhook, approvals and disconnecting.
- MCP tools: every tool an agent has.
- Native issues: Arugula’s own issues, with
issue_write.