Trailside Docs
DocsCLI and MCP All docsMenu
DocsCLI and MCP

Connect from your terminal and tools

Use Trailside from the terminal on your Computer, and from Claude Code or Claude Desktop through its local MCP server, trailside mcp.

Sample. Trailside is in development. These docs describe how the product is meant to work. The Sample Board uses fictional data and runs nothing.

What it is

trailside mcp is a local MCP server. Claude Code or Claude Desktop starts it on this Computer and uses its tools to read your Board and this Computer’s state, and to run a few CLI operations for you.

The same CLI pairs this computer and runs the work the website sends. See Install for the other commands.

Set it up

Add it to Claude Code once:

TerminalClaude Code
claude mcp add trailside -- trailside mcp

claude mcp add --scope user trailside -- trailside mcp makes it available in every project. To use another state directory, name it as for any command: claude mcp add trailside -- trailside mcp --state-dir <path>.

For Claude Desktop, add this to claude_desktop_config.json (Settings → Developer → Edit Config) and restart it. Use the full path of the executable if trailside is not on Claude Desktop’s PATH.

claude_desktop_config.jsonClaude Desktop
{
  "mcpServers": {
    "trailside": { "command": "trailside", "args": ["mcp"] }
  }
}

Trailside never edits either configuration for you. Inside WSL2, add it with claude mcp add from a WSL shell. For Claude Desktop on Windows with Trailside in WSL2, the command is wsl.exe with the args ["-d", "<distro>", "--", "<full WSL path of the Trailside executable>", "mcp"].

Where it runs

The server runs locally, as part of the CLI, and uses this computer’s pairing. Claude starts it and talks to it over stdin and stdout; it opens no port. There are no keys or tokens to paste into a client, and results never carry tokens, codes or keys.

If the computer isn’t paired, the server can’t read the Workspace. Pairing and Connect still happen in a terminal on the computer, never from a client.

Tools

ToolWhat it doesKind
statusPairing, Connect, the trailside up process, Holds and the onboarding checklist, as trailside status shows them.Read
computer_setupThe onboarding checklist and trailside doctor’s local checks.Read
computers_listThe Workspace’s Computers you can see on the website, connected or not, and their Runs.Read
board_needs_youBoard cards that need a person, from the Board index.Read
board_cardsEvery card in the Board index, in every column, with its claim, pull request and checks, and each repository’s freshness.Read
runs_activeCards with a live claim (work in progress), from the Board index.Read
factory_checkCheck on the factory: staged, running, waiting (with the wait reason) and handed-back cards, each Computer’s busy and total slots, and the last merge.Read
notices_listThe website notices you see on the Board (your Computers’ presence, agent sign-in and Holds, usage and Autonomy), each with its kind, subject, fingerprint and whether you dismissed it, and every notice you dismissed.Read
usage_accountsEach agent’s accounts, as trailside agents accounts shows them: signed in or not, any cap and the usage the agent reported.Read
factory_statsSpeed stats over the last 24 hours, or hours (1 to 168): Runs and merges per hour, time from ready to merged, busy and total slots, and the Runs that failed or handed back by fixed code.Read
referee_statusThe Referee’s view: Merge queue wait codes, the stall alarm and Needs you codes, each stage’s cards by number and tier with the cards that moved in or out since the last read, the stuck cards and queue items with a reason code, and whether this Computer may act as the Referee. Numbers and codes only, never titles.Read
referee_notes_readThe Referee’s handover on this Computer (at most 32 KiB), only while this Computer holds the Referee instruction.Read
referee_notes_writeReplaces the Referee’s notes whole, under the same condition. Over 32 KiB is refused. The notes stay on this Computer and the call is not audited.Local
referee_logEvery Referee tool call on this Computer in the last 30 days, newest first. Local only.Read
referee_queue_reorderMoves one Merge queue item one place up or down as the Referee, at the queue revision referee_status reported.Act
referee_answerAnswers a Needs you card’s current Question as the Referee with one of the Question’s own lettered options, never free text, plus one citation: a file under docs/direction/, docs/adr/ or docs/<area>/adr/ that this Computer checks is on main (card, comment and pull request text is never a citation), with your own gh, under every Autonomy preset, Careful included (an answer is not a merge): a paused Autonomy posts nothing, a Hold is always refused, and so is a Question its Step did not tag [plan]. The comment starts “Answered by the Referee.”; the service keeps no text.Act
referee_parkParks a blocked Planning or Ready card in Needs you as the Referee, with your own gh: one fixed comment and one label write. Never a claimed card, and never while Autonomy is paused.Act
referee_releaseMoves a card the Referee parked back to Ready once its blockers close, only under a park the service recorded.Act
referee_criterion_checkTicks one exit criterion of a Feature as the Referee, with your own gh: one edit that changes only that box, and one fixed comment citing the merged pull request and the criterion’s proof. It never closes the Feature; a person does.Act
referee_queue_holdHolds back one automatic Merge queue item as the Referee: it keeps its place and takes no turn until it is returned. Never an item a person moved or the running turn, and never while Autonomy is paused.Act
referee_queue_returnReturns a Merge queue item the Referee held back, so it takes its turns again in its place.Act
referee_retryRetries a Needs you card’s current Dev Loop stop as the Referee, as a Board Retry does, with your own gh: one fixed comment and one label write back to Ready. A card gets two retries in all and two Referee retries a day.Act
referee_raise_tierRaises an open card’s risk tier as the Referee, with your own gh: one label write. It only raises, never lowers.Act
referee_unparkRemoves an open card’s parked label as the Referee, with your own gh, so a release may move it again. Only under an instruction signed for closed-list version 2.Act
referee_clear_holdClears a Needs you card’s run-again hold once as the Referee, with your own gh: one Approved answer to the hold and one label write back to Ready (Planning after a re-plan hold), so the card runs again. A hold is cleared once. Only under an instruction signed for closed-list version 2.Act
attach_repositoryAttaches a linked repository, as trailside repo attach does: a fresh clone, or an existing one.Act
recipe_previewA committed Recipe’s commands, timeouts and digest, as trailside repo trust shows them. Saves nothing.Read
trust_recipetrailside repo trust, only for the digest recipe_preview showed.Act
revoke_recipe_trusttrailside repo trust --revoke.Act
swap_accounttrailside agents use: puts a signed-in account first for new Steps.Act
notice_dismissHides one website notice for you only, by its kind, subject and fingerprint from notices_list, until what it warns about changes; restore shows it again. It changes nothing behind the notice and is recorded on the audit log by Trailside itself.Act
queue_pausetrailside disconnect: this Computer stops taking new work; accepted work finishes.Act
computer_revokeRevokes another Computer of the Workspace, as an Admin does on the Computers page, from a Computer whose Account Holder is an Admin. confirm_name must be its current name from computers_list; never this Computer.Act

Read tools change nothing, except that referee_status keeps the stage of each card it read on this Computer, to say next time what moved. Act tools take validated arguments, never a shell or free-form command. Each runs one existing CLI operation, except referee_queue_reorder: it is a Referee action with no CLI command, and asks Trailside to move the item as the Workspace’s Referee (see Who approves). computer_revoke has no CLI command either: it asks Trailside to revoke another Computer. referee_queue_hold and referee_queue_return are Referee actions on the Merge queue in the same way. referee_answer, referee_park, referee_release, referee_criterion_check, referee_retry and referee_raise_tier are Referee actions too: Trailside registers each, then this Computer writes it on GitHub with your own gh. referee_notes_write changes only this Computer’s Referee notes: they never leave this Computer and are deleted when the Referee is turned off here.

It also serves two prompts. referee is the Referee Skill that the Workspace’s referee Workflow pins, fetched fresh each time and served only while referee_status says this Computer may act as the Referee. In Claude Code it appears as /mcp__trailside__referee. plan plans a Feature with you: your agent reads board_cards, asks until the goal is clear, drafts one Feature with its exit criteria and a few small cards, and files them with your own gh as planning cards, never ready, only after you agree. In Claude Code it appears as /mcp__trailside__plan.

What it can’t do

Clients can’t:

  • Connect or reconnect this Computer: type trailside connect in a terminal;
  • pair or unpair it;
  • sign an agent in: use trailside agents sign-in, or the website’s sign-in;
  • answer anything on the Board, except that referee_answer answers a card’s Question within Autonomy as the Referee (never a Hold), referee_park and referee_release park and release a blocked card, and referee_criterion_check ticks one Feature exit criterion.
  • close a Feature: once every exit criterion is checked, the Referee reports it ready to close, and a person closes it.

Local Off (trailside disconnect) and unpairing still win.

Any program that can start trailside mcp as you has the same authority as your terminal. Keep Claude Code’s per-call approval on for the act tools.

Who approves

There is no separate MCP permission to turn on. Your MCP client’s approval of each tool call is the gate, and no website confirmation is asked. Act tools that run a CLI operation have exactly the authority this CLI has on this Computer.

Read tools
  • Status, setup and agent accounts
  • Computers, Needs you and active runs
  • Recipes and the Referee’s view
Change nothing.
Act tools
  • Attach a repository
  • Trust or revoke a Recipe
  • Use another agent account
  • Stop taking new work
  • Revoke another Computer, as an Admin
  • Reorder the Merge queue as the Referee
  • Answer, park or release a card as the Referee
Each call needs your MCP client’s approval.

referee_queue_reorder is a Referee action, not a CLI operation. It works only when this Computer holds the Referee instruction, that instruction covers the repository, no person moved the item or the one it would pass, and Autonomy isn’t paused. referee_status shows whether this Computer may act as the Referee; otherwise nothing moves and the result gives a reason code.

referee_queue_hold and referee_queue_return are Referee actions on the Merge queue under the same conditions: a hold is only of an automatic item no person moved that holds no running turn, and a return only of an item the Referee held.

referee_answer is a Referee action, not a CLI operation, and so are referee_park, referee_release, referee_criterion_check, referee_retry, referee_raise_tier, referee_unpark and referee_clear_hold. Each works only when this Computer holds the Referee instruction, it covers the repository and Autonomy isn’t paused, as this Computer’s own copy of Autonomy says, whatever the service says. An answer is never to a Hold and only at a tier that doesn’t ask a person; a park is only of an unclaimed, blocked Planning or Ready card; a release is only of a card the Referee parked, once its blockers close; under an instruction signed for closed-list version 2, a park only labels an unclaimed backlog, Planning or Ready card parked and takes its column away, an un-park removes that label, and a release moves a backlog card whose blockers all closed to Planning, never a parked one; a run-again hold is cleared once, and only this Computer’s own record of the clear restarts the card; a criterion check is only of an unchecked criterion of an open Feature, bound to the body the Referee read, once a pull request merged into the default branch delivered it and its named proof is there; a retry is only of the card’s current technical stop, within its limits; a tier raise only raises. Trailside records each with its ID, the client kind and the outcome, never text, before this Computer writes it on GitHub, and the call is in the Referee connector log.

Every act tool call that runs a CLI operation is recorded on the Workspace’s audit log (Settings → Audit log) as “Via MCP” with the tool, its arguments (never a local folder or an agent account label) and its outcome. A started record must reach Trailside before the act runs, so no act runs unaudited, except queue_pause, which always works, offline included.

referee_queue_reorder is not recorded as “Via MCP”. When a reorder is authorized and reaches Trailside, Trailside records it, moved or refused for a reason it checks, with the action’s ID, the client kind and the outcome, never text, and it appears on the audit log as workspace.merge_queue.referee_action. A request Trailside refuses as unauthorized is not recorded. This Computer’s Referee connector log, which referee_log reads, also keeps each call, including one refused on this Computer, on a best effort basis: if writing to it fails, the call still returns its result.

computer_revoke is not a CLI operation: it asks Trailside to revoke another Computer of the Workspace with the same effects as an Admin’s revoke on the Computers page, its Runs that never started failing and its Runs in progress ending as unknown. It works only from a Computer whose Account Holder is a Workspace Admin who can see that Computer, never on this Computer (trailside unpair does that), and only when confirm_name is the Computer’s current name, so show the person the name from computers_list first. Revoking one already revoked returns its receipt. It is recorded as “Via MCP” like the other act tools, and the revoke itself appears on the audit log as revoked via MCP, by this Computer acting for you.

recipe_preview shows the Recipe’s digest, every setup and check command and its timeout, and saves nothing. trust_recipe saves trust only for that exact digest, so allowing the preview never allows saving trust. A Recipe that changed in between is refused. Setup and checks run repository code on this Computer, as they do after a terminal trust.

Example session

An example of Claude Code using the Trailside tools. The cards and answers are made up.

TerminalExample, not a real session
$ claude
> What needs me on the Board?
  board_needs_you()
  #1209 Add dark mode (ui, T1) has a question for you.
  #1207 Add sitemap generation (ui, T1) waits for your review.

> Trust the Recipe for acme/web.
  recipe_preview(repository: "acme/web")
  Setup: pnpm install. Check: pnpm test. Trust these commands?

> Yes.
  Claude Code asks you to allow trust_recipe.
  trust_recipe(repository: "acme/web", confirm_digest: "3f9c…")
  Trusted on this Computer, and recorded on the audit log as Via MCP.

> Answer the question on #1209.
  I can’t answer anything on the Board. Answer it there.

Troubleshooting

You seeTry this
Not pairedThis computer isn’t paired yet. Follow Install.
Nothing was done“Nothing was done: an MCP act runs only once the Workspace audit log has recorded it.” The act could not be recorded (the Workspace could not be reached, or it refused the record), so it did not run. Try again when it can be recorded. queue_pause always works.
After an updateRestart it after an update: quit and reopen Claude Code or Claude Desktop.
Updating on WindowsAn idle server holds no install lock, but on Windows close it (or quit Claude) before updating Trailside.
Not found in Claude DesktopUse the full path of the executable in claude_desktop_config.json if trailside is not on Claude Desktop’s PATH.
Referee prompt refusedThe referee prompt is served only while this Computer may act as the Referee. referee_status says why not.
Not allowedConnecting, pairing, agent sign-in and Board answers aren’t available over MCP. Use a terminal on the computer, or the Board.