AI assistants

Guide

How to let an AI assistant read and write a notebook through burl-mcp, what it can and cannot do there, and how you keep control. For people who already have a notebook and an assistant that supports MCP (the Model Context Protocol, the standard way assistants such as Claude Code call outside tools).

Connect an assistant to a notebook

You point the assistant's MCP configuration at burl-mcp followed by the path of one .burl file. With Claude Code, one command registers it for your user:

claude mcp add burl -s user -- burl-mcp /path/to/notes.burl

Any other MCP client takes the same two pieces, a command and an argument. In a client that reads a .mcp.json file the entry looks like this:

{
  "mcpServers": {
    "burl": {
      "command": "burl-mcp",
      "args": ["/path/to/notes.burl"]
    }
  }
}

burl-mcp ships as its own package. The Linux installer includes it. The macOS release zip includes it too, and /Applications/burl.app/Contents/MacOS/install-cli links it onto your PATH. With Nix it is nix profile install 'git+https://git.sr.ht/~ninjapanzer/burl#burl-mcp'; see the README's Install section. The client starts burl-mcp itself, so nothing listens on a port and there is nothing to start or stop by hand.

The notebook is fixed by that configuration. An assistant cannot ask the server to open a different file. If the path does not exist, burl-mcp refuses to start and suggests burl-backend create PATH or creating the notebook in burl first. To work in two notebooks, register two servers under two names.

burl-mcp --version prints the installed version. After you upgrade burl, restart the assistant's MCP server so it picks up the new build.

Add --as NAME after the path to name the assistant. Its writes and remarks then carry that name; without it they read "burl-mcp on ".

Which files an assistant can reach

The assistant can attach a file to a note, and can create or inspect another notebook, only inside the folder that holds your .burl file. A file anywhere else, including one reached through a symlink or a .., is refused with a message naming the allowed folders. To let it use more folders, add --attach-root FOLDER after the path, once per folder. In .mcp.json, write the full path, because ~ is not expanded:

{
  "mcpServers": {
    "burl": {
      "command": "burl-mcp",
      "args": ["/path/to/notes.burl", "--attach-root", "/home/you/archive"]
    }
  }
}

Restart the assistant's MCP server after you change its arguments.

Use the notebook while burl has it open

You can keep burl open on the same file while the assistant works. Burl shows the assistant's writes within a frame, and the footer's saved time moves as it saves.

The assistant edits by line, not by replacing whole notes, so your typing and its edits merge. When it changes a line you are editing at that moment, your version stays and a mark appears in the gutter beside the line. The footer chip shows N marked lines. Hover the mark to see both versions and click it to keep yours or take theirs. Resolve a write conflict walks through it.

The assistant's server also keeps the notebook small. Once it has saved and then gone two minutes without a request, it compacts the notebook if enough old versions have piled up: it clears out the earlier states burl no longer keeps and shrinks the file. It waits while burl has the notebook open for editing, or while another program is writing to it. A request that arrives during a compaction is answered when it ends, and a second assistant that writes meanwhile is told to try again in a few seconds.

What an assistant can do

The assistant gets a tool for each of these:

Your client lists the exact tools and their descriptions when it connects; the list changes between releases, so it is not repeated here.

Reintegrating a copy with an assistant

An assistant that can run shell commands can drain a copy back into your notebook and settle what conflicts, which is useful when you are debugging a merge together. It does that with burl-backend, not with the MCP tools:

burl-backend report notes.burl copy.burl     # what the drain would do, writing nothing
burl-backend merge notes.burl copy.burl      # apply it; exits 2 if conflicts were queued
burl-backend conflicts notes.burl            # base, mine and theirs for each queued conflict
burl-backend resolve notes.burl ID theirs    # or mine

Through the MCP tools alone, an assistant only reports: it can say what a drain would do and list the conflicts a past drain left, and it cannot apply a drain or answer a conflict. So an assistant without a shell leaves the drain to you, in burl or with the same commands. The full set of commands is in burl-backend(1), and Reintegrate a copy walks through the steps.

What an assistant cannot do

Write guidance for an assistant

Guidance is a set of rules attached to a note, for any assistant that works in that note or below it. The rules apply to every descendant, travel inside the .burl file, and have no effect until someone accepts them on this machine.

To write guidance, open the note and find GUIDANCE in the context column. Press [ show ] to open an empty box and type the rules. [ hide ] closes the box. Guidance is shown on demand; nothing is remembered when you leave the note.

The assistant reads the guidance that governs a note before it works there. Guidance on a note's ancestors applies too. If any of it is not yet accepted, the assistant gets none of the guidance and is told which note is blocked, because a partial set of rules would be a different set.

An assistant can also write guidance, but doing so never accepts it. Every change to the text invalidates your earlier acceptance, so rules an assistant wrote for itself stay inert until you read and accept them.

Accept guidance

When a note you are viewing has guidance this machine has not accepted, a strip appears at the bottom of the window: this machine has not accepted "<title>"'s guidance. Press Show to accept to display the rules, read them, then press Accept guidance. Not now dismisses the strip for that note.

Guidance on an ancestor is accepted where it lives. GUIDANCE in the context column lists the ancestors that carry their own guidance, marked accepted or not; clicking one takes you to it.

Acceptance is also available from the command line, which is how you handle a note without opening burl:

burl-backend guidance notes.burl NOTE show
burl-backend guidance notes.burl NOTE accept

NOTE is a note's id or stable id. See stable ids. show prints every level of the chain, outermost first. The other verbs are unaccept, stop, unstop, enable and disable. stop makes a note the end of the chain, so its descendants inherit nothing from above it.

Turn guidance off for a file

A notebook you received from someone else can carry guidance that wants to instruct your assistant. In Settings (F10 > Settings, or Ctrl/Cmd+,) a row near the middle reads Guidance in force or Guidance not in force, with a Turn off or Turn on button. With guidance off, the file's guidance is present but the assistant is not given it. The row reads No guidance in this file when there is none to decide about. From the command line, the same switch is burl-backend guidance notes.burl NOTE disable and enable.

Ask and answer questions

An assistant can put a question in a note. It appears as a heading with a list of choices under it, and you answer by clicking a choice or typing in the short field. Pick-one questions allow one answer; pick-any questions allow several; an Other field takes free text. The answer is stored as plain markdown in the note. Remarks and questions covers the controls.

The assistant can read the answers back at any time. When it is Claude Code, burl-mcp also messages the session that asked once you answer, so an idle session wakes up. It also sends one message when the question is closed as stale. That happens when you or another assistant closes it, or when its note is archived. This works only while that session and its burl-mcp process are still running, and burl-mcp prints the session it will message on its error stream when it starts.

Questions this page answers