Skip to content
Docs

The two MCP servers Quay gives your agent

Every agent panel gets two Model Context Protocol servers. They let an agent open a page, put a command in front of you, hand a tangent to a second agent and talk to it, work through your Next list, read your project's notes, and keep notes of its own to read back later. This page is what they do, and what they will not do.

Checked against Quay v0.26.1. If this page and the app disagree, the app is right, and I would like to hear about it.

What they never do

These are properties of the tools, not promises about how an agent behaves. There is no argument that turns any of them off.

Nothing runs.
The shell tool types a command and leaves it at the prompt. No Quay tool runs one. Pressing Return is yours.
Nothing signs in.
No tool authenticates, sends a credential, or touches your Keychain. Your sessions stay yours.
You confirm what is yours.
A new agent panel, a Next item, retiring one, and a workstream's brief all arrive prefilled and editable, and nothing happens until you accept. For the last three the call returns once you have been asked, so the agent never learns your answer and cannot keep retrying until it likes it.
Reading a page takes consent.
An agent can put a page on your screen freely. Reading one back is a separate decision, and it is always yours, localhost included.

quay-browser

This one drives a browser panel. It is stockPlaywright MCP, pinned at 0.0.80, pointed at a Chrome DevTools Protocol endpoint Quay opens on loopback: a random high port with a token good for one panel, bound only while that panel is armed. The tools are Playwright's own, and its docs cover them. The pin is deliberate. 0.0.80 renamed one of the arguments, and letting the version float would break skills written against these tools without warning.

Quay's part is the boundary around it: which panel those tools reach, and who decided they could.

What purpose decides

When an agent calls panel_open_browser, one function settles what actually happens. There are two outcomes, and neither arms the panel.

PurposeOriginWhat Quay doesAgent can read it
displayAny originOpens in your browser session, unarmed. The agent is told it cannot read the page.No
driveAny origin, localhost includedOpens unarmed. The agent is told to ask you to arm it from the panel's toolbar.Once you arm it

Purpose changes what the agent is told, not what it can do. A drive panel still waits for you, and the agent knows to ask rather than retrying.

Arming

Arming points an agent's browser tools at one panel. You do it from that panel's toolbar, with the pointer icon. Until you do, the tools have nothing to connect to, and an agent that tries is told to ask you rather than handed an error it can learn nothing from.

Localhost is not an exception

Earlier versions armed a loopback page on their own, so an agent could check its work against your dev server without a click. Since v0.18.2 they do not. A URL's host is not a credential boundary: a page on localhost can still load resources that carry your signed-in sessions elsewhere. So every panel an agent drives, your dev server included, is one you armed yourself, one panel at a time.

Arming is never saved

It cannot be written to disk, and a test enforces that. Browser panels come back when Quay reopens, still signed in, so an armed flag that survived a restart would hand an agent a page you never re-approved. Arming ends:

  • when you disarm the panel;
  • when the panel closes;
  • when Quay quits;
  • when you switch identity, since a different cookie jar is a different consent.

One agent drives one page. Arming a second panel for the same agent disarms the first and closes its endpoint, so an agent never holds two live views at once.

quay-panels

The second server opens panels, proposes work, keeps notes, and passes messages between agents. Seventeen tools. The sentence every agent reads when it starts ends: it can create, propose, record and recall its own work; it never signs in as you and never runs a command.

Each entry is marked with what the call does. Eight only read and two open a panel. Four propose: they put a prefilled, editable confirmation in front of you, and nothing changes until you accept. Three write without asking: panel_context, panel_send and memory_capture. The split follows one rule: a tool that writes your intent proposes, and a tool that records the agent's own work, its whereabouts or its own words, writes.

Panels

What is open in this project, opening more, and telling Quay where the agent is working.

panel_list

Reads only

Lists the panels open in this project.

Returns each panel's id, kind, title, URL, and which agent drives it. For agent panels it adds whether each one is running, its checkout (the main one, or a worktree's path and branch), and its relation to the caller: parent, child or sibling. Only the caller's own project is listed. Agents are told to call it before opening a browser panel, since one may already be open.

No arguments.

panel_open_browser

Opens a panel

Opens a page, either to show you or to read.

Either way the panel opens unarmed: the agent can put a page in front of you, but reading it back waits until you arm it. Opening a second page reuses the panel the agent already opened instead of stacking up new ones.

url
requiredAn http(s) URL.
purpose
requireddisplay: you look at it, and the agent is told it cannot read it. drive: the agent means to read it back, and is told to ask you to arm the panel. Localhost is no exception.

panel_open_shell

Opens a panel

Types a command into a shell and stops.

The command lands at the prompt and sits there. You run it, edit it first, or delete it. It is meant for things an agent cannot hold open for you, like a dev server.

command
optionalOne line, no newlines. Typed, never run. Leave it out for an empty shell.

panel_open_agent

Proposes · you confirm

Proposes a second agent for a tangent.

The agent writes the brief itself, because the brief is what the new session starts from. You see it, can edit it and the project it lands in, and confirm before the panel exists. The call returns as soon as you have been asked. Quay then tells the asking agent, in its inbox, whether the panel started (with the new panel's id, so the two can message each other), was declined, or failed. When the new panel closes, its handoff card arrives there too.

brief
requiredThe tangent in the agent's own words: what it is and why it matters.
placement
requiredworktree for an isolated checkout of the chosen project, checkout for its main checkout. Quay still resolves it and you still confirm.
agent
optionalOptional agent id. Defaults to the one calling.
target_project
optionalAn existing project's id, exact name, or absolute path. Defaults to the caller's project. It only prefills the project picker; you can change it.

panel_context

Writes without asking

Tells Quay which checkout the agent is working in.

Agents call it at the start of every turn and whenever their working directory changes, such as on entering a worktree. The agent sends a path and nothing else about it. Quay checks the path against a fresh list of the project's worktrees and reads the branch, uncommitted changes and diff itself, so an agent cannot claim a branch it is not on. Nor is a report an override: if the agent's own transcript later shows a different directory, the fresher evidence wins.

cwd
requiredThe absolute path the agent is working in. A path outside the project, or one that does not exist, is refused.
title
optionalOne short line, at most 80 characters, saying what it is doing. Shown on the panel until you rename it.

Notes and project instructions

Two kinds of writing that are yours rather than the agents': the notes you keep in docs/notes, and the instructions Quay holds for a project.

notes_search

Reads only

Searches the notes you keep in docs/notes.

Your durable Markdown: how things were set up, fixes worth keeping, decisions written down on purpose. Every word of the query must appear in a note's title, tags or body. Returns a handle, the title, tags and the line that matched, never a whole note. It always reads the main checkout's notes, even when the agent is working in a worktree.

query
optionalWords that must all appear. Leave it out to list the newest notes.
limit
optionalHow many notes to return. Ten by default, fifty at most.

notes_read

Reads only

Reads one note in full.

The whole note, front matter included, with its path. Agents are told to read the one or two that matter, not every result.

note
requiredA handle from notes_search.

project_read_context

Reads only

Reads the instructions Quay holds for this project.

For a workstream, a project that shares its parent's folder but keeps its own instructions, that means its name, its parent project and its private brief. The brief is read from disk at the time of the call, so edits made since the agent started are included. It returns only the calling panel's own project and never lists a parent's other workstreams.

No arguments.

project_save_context

Proposes · you confirm

Proposes a new private brief for a workstream.

The agent passes the complete brief, which replaces the current one. You see it in a sheet, can edit it, and decide whether to save; nothing is written until you do, and the agent is not told what you chose. Only a workstream has a private brief, so the call is refused in any other project. It is also refused while you are still deciding on an earlier proposal, and above 256 KB.

content
requiredThe complete new brief, in Markdown.

Messaging other agents

Agents in the same project can write to each other, and a forked agent can write to the panel that started it. Quay delivers the message and leaves the answer to the other agent.

panel_send

Writes without asking

Sends a message to another agent panel.

Addressed with a panel id from panel_list, or with “parent” from a forked panel. It returns at once and does not wait for a reply; any answer arrives in the sender's inbox in the other agent's own time. Quay sets the sender from the connection, so an agent cannot sign a message as another panel. The receiving agent is told the text is data from another agent, not instructions from you.

to
requiredA panel id from panel_list, or “parent”. Only a running agent panel in the same project, or the caller's direct parent or child, can be reached.
body
requiredThe message, at most 32 KB.
in_reply_to
optionalThe id of an inbox message this answers.

panel_inbox

Reads only

Reads the messages sent to this agent.

Returns unread messages and marks them read. Word back about a proposed agent panel arrives here too: whether it started, was declined or failed, and its handoff card when it closes. What it returns is framed as data from another agent, not instructions from you. To answer, the agent calls panel_send with in_reply_to set.

No arguments.

What Quay types into another agent's terminal

A message's text never reaches the other agent's terminal. Typed text carries your authority, so nothing an agent wrote is typed. To wake an idle agent, Quay types one fixed notice built only from things it knows itself: a [Quay] tag, a message count, a short panel id and the agent's id. Never a title, never the body, and with control characters stripped. The agent then reads the body through panel_inbox, framed as data rather than your instructions.

The notice goes only into a panel that is idle or done, never over a prompt you are halfway through writing, and never within ten seconds of your last keystroke. After five notices with no input from you, Quay stops waking the panel. The messages still arrive; only the notices stop.

Quay Memory

Three of the seventeen tools cover Quay Memory: the notes agents keep about their own sessions, so a new session starts out knowing what the last one learned instead of working it out again. Your own notes in docs/notes are a different thing, read withnotes_search.

Why memory_capture writes without asking

Your Next list and a workstream's brief are your intent, so the tools that change them propose.memory_capture saves straight away, because a memory card is an agent reporting what it just did, and Quay already saves one unconfirmed when a session ends. Two things keep that safe. A newer card supersedes an older one on screen while the older one stays in history, so nothing is lost. And writing a card does not mark the agent as waiting on you, so a session that is still running cannot look finished.

memory_capture

Writes without asking

Writes down what the session worked out. Saves immediately.

Meant for the moment something gets decided, ruled out, or discovered, rather than as an end-of-session log. A new card replaces the thread's previous one instead of adding to it, so the agent writes the whole picture each time and the old cards stay in history.

title
requiredThe card's headline, usually the objective.
objective
optionalWhat this session is trying to do.
status
optionalWhere it stands right now.
next
optionalThe exact next action. Left out rather than invented, because a new session is handed it word for word.
decisions
optionalKey choices, one per line.
gotchas
optionalTraps the next session should know about.
touched
optionalFiles changed, one per line.
nothing
optionalUsed instead of the other fields when the session did no real work and has nothing to hand over.

memory_search

Reads only

Searches what earlier sessions here figured out.

A question in plain words rather than a grep: “where did we decide how account migration works”. Returns a handle, a title, and the excerpt that matched, never whole cards. Agents are told to check here before re-deciding something or re-investigating a trap.

query
requiredThe question, in the agent's own words.
limit
optionalHow many sessions to return. Five by default, twenty at most.
repo
optionalAnother repo to search instead of this one, by name. Name one that does not exist and Quay lists the ones that do. A workstream's cards are visible only from inside that workstream, and this cannot reach them.

memory_read

Reads only

Reads one card in full.

The whole note a session wrote: objective, status, decisions, gotchas, files touched. The search excerpt exists so an agent can pick the one or two that matter instead of pulling all of them.

session_id
requiredA handle from memory_search. A card outside the caller's scope is refused in the same words as one that does not exist.

What it refuses

Some calls are turned down by design. Each one answers with a sentence rather than a protocol error, because an agent told “method not found” learns nothing and tries again, while an agent told where the boundary is can do something else. Usually that means asking you.

panel_close

“The user closes their own panels — ask them to close it rather than closing it for them.”

Target.createTarget, Target.closeTarget, Browser.close

“This endpoint is one Quay panel; open a new panel yourself.”

One answer for every reason

Tools that take an id or a path are scoped to the calling panel's project, and each one refuses in a single wording. A made-up id and another project's real one get the same sentence. Two different refusals would let an agent find out, one guess at a time, what exists outside its own project, which is exactly what the scoping holds back.

next_remove with an id not in this project's open list

“No open Next item in this project has that id. Call next_list for the ids that do.”

panel_context with a path outside the project, or one that does not exist

“That directory is not inside this panel's project (or does not exist), so Quay will not attribute the panel to it. Send the absolute path of a directory inside the project or one of its worktrees.”

panel_send to a panel that is not running, or not reachable

“No live agent panel you can message has that address. Call panel_list for the panels you can reach.”

Setup

There is none. Both servers are set up per panel when the agent starts: Quay mints a token good for that one panel and hands it to Claude Code or Codex in the form each expects. Nothing to install, nothing to add to a config file, and no token that outlives the panel it was made for. Agents started outside Quay have neither server, because neither exists until a panel does.

← All docs