# Waymarq MCP server

Waymarq as a tool your AI assistant can use directly. Ask "what should I work on?" in Claude Code,
Claude Desktop, Cursor or a ChatGPT connector, and it reads your actual plan — then keeps it up to
date as you work, without you switching windows to do it.

Remote HTTP transport, so **there is nothing to install**. A URL and a token is the whole setup.

## Connecting

```
https://waymarq.co.uk/mcp
```

**OAuth is not switched on for this instance yet.** Connect with a bearer token, below.
### Use a bearer token

Add the server with your token as a header:

```bash
claude mcp add --transport http waymarq https://waymarq.co.uk/mcp --header "Authorization: Bearer YOUR_TOKEN"
```

Generate it under **Organisation settings → API** and pick the **Coding agent** preset.

For a connection the whole team relies on, use an **organisation token** rather than a personal one.
A personal token is deleted with its owner's account, which is a poor way to discover somebody has
left.

**Claude Code:**

```bash
claude mcp add --transport http waymarq https://waymarq.co.uk/mcp --header "Authorization: Bearer YOUR_TOKEN"
```

**Claude Desktop, Cursor, and anything else that takes a remote MCP server:** add an HTTP server
pointed at that URL with an `Authorization: Bearer YOUR_TOKEN` header. The exact form differs per
client; the URL and the header do not.

## The tools

Nineteen, deliberately — see [why](#why-nineteen-and-not-fifty-six) below.

| Tool | |
|---|---|
| `list_projects` | The projects you can reach. Start here. |
| `get_project` | One project's whole plan — phases in order with their ids, tasks under each. Narrow it with `phase` or `status`. |
| `next_tasks` | What to pick up: started work first, then priority, skipping anything blocked. |
| `get_task` | One task in full, with its specification, test plan and comments. |
| `search` | Find anything by name or phrase when you don't have a reference. |
| `update_task_status` | Move a task to `in_progress`, `review` or `done`. |
| `comment_on_task` | Record a decision, a blocker, something worth knowing later. |
| `log_time` | Log effort — `"1h 30m"`, `"45m"`, `"1d 2h"`. |
| `create_task` | Add work that genuinely wasn't in the plan. |
| `update_task` | Correct a task in place — its specification, title, estimate, priority, who it is waiting on, or which phase it sits in. |
| `create_phase` | Add a stage of work for tasks that have nowhere sensible to go. |
| `attach_file` | Put a small file on a task — a log excerpt, a screenshot, a short report. |
| `read_document` | One project document in full — requirements, how a thing works, a decision. `get_project` lists what exists. |
| `write_document` | Write or replace a document. The previous version is kept. |
| `create_tasks` | A whole phase of tasks in one call, in the order you give them. |
| `add_checklist` | Acceptance criteria or verification steps on a task, with their items. |
| `tick_checklist_item` | Tick one off as you actually satisfy it. |
| `create_project` | Start a new project. Ask first. |

### Writing a plan

Use `create_tasks`, not `create_task` in a loop. One at a time costs a round trip each, and issuing
them in parallel loses the order — position is otherwise assigned from whichever write lands last,
so the plan arrives shuffled. One call takes the whole phase and keeps the order you wrote it in.

An entry can depend on one created earlier in the same call, written as `"#0"`, `"#1"`. The id does
not exist yet when the entry naming it is written, so an index is the only way to say *after the
one above*. All or nothing: one bad entry writes none of them, because half a plan is worse than
none — somebody reads it as the whole thing.

Set `default_billable_status` on the project rather than `billable_status` on forty tasks. On
anything nobody is being invoiced for, the whole plan otherwise arrives looking chargeable, and
that only surfaces later in a report about money.

### Linking the plan to the code

`update_task` takes `branch`, `commit_sha` and `pull_request_url`. Set the branch when you pick the
task up and the rest as they exist. They show on the task page, so somebody can read a task and
find the code, or read a commit and find what it was for — which is the whole point of planning in
one place and writing in another.

### Fixing a task, and changing the plan

These are different, and the server says so up front.

**Correcting a task is welcome.** A specification that turns out to be written on a premise that
doesn't hold is worse than no specification, because it reads as a confident instruction to build
the wrong thing and people stop at the spec. Arguing with it in a comment doesn't undo that, so
`update_task` replaces it. Only the fields you send change — an edit to a title can't take a page of
specification with it — and the reply tells you what it replaced, so a bad edit is visible in the
response that caused it rather than discovered later.

**Reorganising the plan is not the same thing.** Adding a phase or refiling tasks into a different
one changes the shape of what somebody is showing a client, so the tool descriptions ask for
agreement first rather than leaving it to general good manners.

A task can only move between phases of the same project: its reference (`WR-12`) is minted from its
project's counter and its dependencies point at siblings there, so carrying it elsewhere would leave
a reference belonging to a project that never issued it. Subtasks follow their parent, and can't be
moved out from under it.

### Attaching files, and why the limit is so low

`attach_file` takes the file's bytes base64-encoded, which means the file travels *through your
own context* on the way here — this server runs on waymarq.co.uk and cannot read your disk, so
there is nowhere else for the bytes to come from. A 5MB screenshot is about 6.7MB of base64,
several times any usable context window, so the tool caps at 2MB decoded and will tell you to use
the CLI instead of quietly accepting something silly.

For anything you actually have on disk:

```bash
waymarq attach W-127 screenshot.png server.log
```

That streams from the filesystem, handles up to 20MB per file, takes several at once, and costs you
no context at all. It is the better answer nearly every time; `attach_file` exists for the case
where you generated the content yourself and it was never a file.

Fetching a URL server-side was considered and left out. It would lift the size limit, but it means
pointing a multi-tenant server at an arbitrary address on request, and doing that safely is a real
piece of work (redirects, DNS rebinding, private address space) in exchange for a case nobody has.

### Why nineteen and not fifty-six

The REST API has an endpoint per resource, because that is what a REST API is for. Mapping those
one-to-one onto MCP tools is the standard way to build an MCP server badly: every tool definition is
spent from the model's context before it has read a word of your actual work, and a long list of
near-identical options is exactly how a model picks the wrong one.

So these are shaped around what somebody asks for — *what should I do next*, *mark that done*, *how
long did that take* — rather than around the data model. Anything rarer stays behind
[the REST API](https://waymarq.co.uk/api-docs), which is still there and still complete.

The list grew from twelve when agents started setting projects up from scratch rather than only
working through one: documents, checklists, bulk task writing and project creation are all things
an agent reaches for in that first hour. Everything else that arrived with them became an argument
on a tool that already existed — prerequisites, billing status and code links on `update_task`,
documents listed by `get_project`, checklists shown by `get_task` — which is the test for whether
something deserves a definition of its own: not whether the capability is new, but whether you
would go looking for a separate tool to do it.

## What it will and won't do

Tasks are named by reference — `W-127`, any case — because that is what appears in your commit
messages and your conversations.

The server tells the model, up front, that three things are yours to decide: **don't mark work done
that isn't finished** (on a billable task that is the signal it can be invoiced), **don't add or
restructure tasks without agreement**, and **don't invent an estimate** — leaving it out is an
honest answer, a confident guess is not.

Everything a tool does goes through the same code the web app uses. A status change writes the same
audit row, notifies the same watchers, and shows up in the same Activity tab as one made by hand.
There is no separate path with its own rules.

## Permissions

A bearer token's abilities apply here exactly as they do over REST:

- Read tools need `read`
- Write tools need `write`
- A token without an ability gets a `403` naming what was missing

An OAuth connection carries a fixed set instead — read and write — because there is no page in
front of the person to explain a choice.

**MCP is JSON-RPC over POST**, so the HTTP method says nothing about intent — reading a project and
closing a task are both a `POST` to the same URL. The ability required is decided by the tool being
called, not the verb.

Access is checked on every lookup rather than trusted from the arguments: an id belonging to another
organisation is an entirely ordinary thing for a model to generate, so it is treated as one.

## Choosing between this and the alternatives

**Use MCP** when a person is talking to an AI assistant and wants it to know about their work.

**Use the [CLI](https://www.npmjs.com/package/@waymarq/cli)** when something needs to run a command
— an agent without MCP support, a CI job, a git hook, or you at a terminal.

**Use the [REST API](https://waymarq.co.uk/api-docs)** when you're building software against
Waymarq, or need the full surface: clients, quotes, statements, reports.

**Use a [git connection](https://waymarq.co.uk/integrations)** when you want the tracker to keep
itself up to date with no cooperation at all — commits and merged pull requests move tasks on their
own.

They compose. A repository with a `.waymarq.json`, a git connection and an MCP server configured
gets all three, and they agree with each other because they all go through the same services.

## Telling your agent it can use this

Run `npx @waymarq/cli init` in the repository. Alongside the binding file it writes an `AGENTS.md`
and a Claude skill that tell whatever opens the repository next that these tools exist and which
project they point at — so a fresh session starts oriented instead of asking.
